area
New()
..()
spawn(5)
day()
proc
day()
layer = 6
while(src)
luminosity = 1
sleep(10)
var/Rand = rand(1,10)
if(Rand<=8)
overlays += 'Moon.dmi'
global.moon += 1
sleep(10)
overlays -= 'Moon.dmi'
global.moon -= 1
else
luminosity = 0
sleep(10)
..()
//
// The above is from Area and the next piece is from mob
//
New()
..()
spawn(5)
werewolf()
werewolf()
if(global.moon==1)
usr.icon_state = "werewolf"
When the moon is 1 the character is supposed to become a werwolf, planned on making this more complex but ran into this little wall. The variable moon doesn't seem to change and i'm not sure why, i defined it under world as a global variable, so i'm really not sure what to do at this point.
help would be appreciated.... is this problem impossible to fix?
global not needed. if var is
world/var
moon
or
var
moon
dot and anything before dot not needed.