ID:163051
 
playing with a weather demo, trying to get weather on a timer like night and day is in the same demo.
 
proc
daycycle()
lit = 1 - lit
if(lit)
overlays -= 'black50.dmi'
overlays += 'black25.dmi'
sleep(3)
overlays -= 'black25.dmi'
else
overlays += 'black25.dmi'
sleep(3)
overlays -= 'black25.dmi'
overlays += 'black50.dmi'
spawn(500) daycycle()
proc
weathercycle()
lit = 1 - lit
if(lit)
overlays -= 'snow.dmi'
overlays += 'rain.dmi'
sleep(3)
overlays -= 'rain.dmi'
else
overlays += 'rain.dmi'
sleep(3)
overlays -= 'rain.dmi'
overlays += 'snow.dmi'
spawn(500) weathercycle()


world
area = /area/outside // make outside the default area

New() // When the world begins
..() // do the regular things
for(var/area/outside/O in world) // Look for outside areas
spawn() O.daycycle() // begin the daycycle
spawn() O.weathercycle()

after spawn() O.weathercycle() inconsistent indentation
and the 2nd proc same error.