ID:148120
 
var/Night = 0
world
New()
NightDay()

proc/NightDay()
if(Night == 0)
if(Hour > 5 && Zone == "pm")
for(var/area/Shadow4/S in world)
S:icon_state = "Shadow"
Night = 1
spawn(1) NightDay()
else if(Night == 1)
if(Hour > 5 && Zone == "am")
for(var/area/Shadow4/S in world)
S:icon_state = "Shadow2"
Night = 2
spawn(1) NightDay()
... so what about this? What do you need?
In response to Unknown Person
Oops, forgot to add the text. Well all i have to say is it doesn't work, no errors,warnings,runtimes just doesn't work.
Any ideas on whats wrong?
In response to Crashed
I think night should be a global var.
In response to The mothball
Is it not?
Crashed wrote:
var/Night = 0
world
New()
NightDay()

It should be:

var/Night = 0
world
...()
New()
NightDay()
In response to SSj2-Mystic
Totally wrong.
Someone else was close, but I think they meant:


world
New()
..()
NightDay()


they put ...(), which, as far as I know, does nothing and will probobly give you an error.

Airjoe