![]() |
Room dimness
How can I make a room a little bit dim? Or to where I can change the dimness in the NPC Script? I am working on a thing and I forgot how to do it. It has been such a long time.
|
Change the backpal of the room.
|
And how would I come along to doing this?
|
Wait, got it. Nevermind, thanks.
|
backpals are bad =/ use effects (seteffect)
|
Lol! Backpals are good! Here's an idea:
if (playerchats&&strequals(#c,Setbackpal dusk1.png)) setbackpal dusk1.png; and add it for each of the backpals you want. Or you can try: if (playerchats&&strcontains(#c,setbackpal)) setbackpal #c; and set the string length to minus 11. ---Shifter |
Quote:
|
Quote:
|
Quote:
|
I prefere seteffect:
NPC Code: Since you want to make the room darker lets use black. NPC Code: The red, green, and blue have been replaced by zeros because using a RGB coloring system 0 red, 0 green, and 0 blue is black. Now for the alpha, the alpha is the degree of intensity the color is put out. 0 being the most and 1 being the least. This means you vary the level of darkness with decimals between them. NPC Code: This makes the level completely visible and it your starting point. Now to make it half between dark and light you would change the alpha to 0.50. NPC Code: Now just adjust the alpha to your specifications and enjoy. This is //#CLIENTSIDE. |
Quote:
It's only outdated for day-night purposes. |
Quote:
|
Quote:
|
Quote:
Stefan is just being greedy;) |
well I am preety sure alot of that crap dosent work for me :) so backpals are tasty enough :)
|
If you use seteffect to make the level dim, you can't use lighting for the level. This, more often then not, defeats the purpose of having the level dim(to emphasize the lights).
|
Quote:
NPC Code: Should work. Haven't tried it because personally i don't like back pals because they cause lag :( |
Quote:
USING SETEFFECT DIMS EVERYTHING!!! (sprites, webgifs, and other things) To exclude things from being emphazied by seteffect you use the wonderful command called 'drawaslight'!!!! |
Sorry, I'm not a scripter. I didn't know that. I just figured that logically, the purpose of backpals was to be the sole room dimmer.
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 06:22 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.