world
New()
..()
for(var/area/Weather/W in world)
spawn() W.DayCycle()
for(var/area/Weather/Hiliut/H in world)
spawn() H.HiliutWeather()
area
Weather
layer = 10
name = null
var
Day = 1
proc
DayCycle()
Day = 1 - Day
if(Day)
overlays += /obj/Weather/Night/Shadow1
sleep(100)
overlays -= /obj/Weather/Night/Shadow1
overlays += /obj/Weather/Night/Shadow2
else
overlays -= /obj/Weather/Night/Shadow1
sleep(100)
overlays += /obj/Weather/Night/Shadow1
overlays -= /obj/Weather/Night/Shadow2
spawn(20) DayCycle()
Hiliut
name = null
proc
HiliutWeather()
pick(
prob(200)
Clear(),
prob(50)
Rain()
)
Clear()
pick(
Clear300(),
Clear60(),
Clear30(),
Clear120(),
Clear500(),
)
Clear300()
sleep(300)
spawn() HiliutWeather()
Clear60()
sleep(60)
spawn() HiliutWeather()
Clear30()
sleep(30)
spawn() HiliutWeather()
Clear120()
sleep(120)
spawn() HiliutWeather()
Clear500()
sleep(500)
spawn() HiliutWeather()
Rain()
pick(
prob(100)
RainShower(),
prob(50)
RainStorm(),
prob(25)
Hurricane()
)
RainShower()
overlays += new/obj/Weather/Weather/Rain/RainShower
pick(
Shower300(),
Shower120(),
Shower600(),
Shower60(),
Shower30(),
Shower90(),
Shower260(),
Shower400(),
)
Shower300()
sleep(300)
overlays -= /obj/Weather/Weather/Rain/RainShower
spawn() HiliutWeather()
Shower120()
sleep(120)
overlays -= /obj/Weather/Weather/Rain/RainShower
spawn() HiliutWeather()
Shower600()
sleep(600)
overlays -= /obj/Weather/Weather/Rain/RainShower
spawn() HiliutWeather()
Shower60()
sleep(60)
overlays -= /obj/Weather/Weather/Rain/RainShower
spawn() HiliutWeather()
Shower30()
sleep(30)
overlays -= /obj/Weather/Weather/Rain/RainShower
spawn() HiliutWeather()
Shower90()
sleep(90)
overlays -= /obj/Weather/Weather/Rain/RainShower
spawn() HiliutWeather()
Shower260()
sleep(260)
overlays -= /obj/Weather/Weather/Rain/RainShower
spawn() HiliutWeather()
Shower400()
sleep(400)
overlays -= /obj/Weather/Weather/Rain/RainShower
spawn() HiliutWeather()
RainStorm()
overlays += new/obj/Weather/Weather/Rain/RainStorm
spawn() HiliutWeather()
Hurricane()
overlays += new/obj/Weather/Weather/Rain/RainStorm
spawn() HiliutWeather()
obj
Weather
layer = 10
Weather
Rain
RainShower
icon = 'Weather.dmi'
icon_state="RainShower"
RainStorm
icon= 'Weather.dmi'
icon_state="RainStorm"
Hurricane
Snow
SnowStorm1
icon='Weather.dmi'
icon_state="SnowStorm1"
SnowStorm2
icon='Weather.dmi'
icon_state="SnowStorm2"
SnowStrom3
icon='Weather.dmi'
icon_state="SnowStorm3"
Blizzard1
icon='Weather.dmi'
icon_state="Blizzard1"
Blizzard2
icon='Weather.dmi'
icon_state="Blizzard2"
Other
SandStorm
icon='Weather.dmi'
icon_state="SandStorm"
Fog
icon='Weather.dmi'
icon_state="Fog"
Mist
icon='Weather.dmi'
icon_state="Mist"
Night
layer = 11
Shadow1
icon='Weather.dmi'
icon_state="Shadow1"
Shadow2
icon='Weather.dmi'
icon_state="Shadow2"
when ever then thing changes to rain or snow etc
i want 3 NPC to change their locations according ot the weather
can some help me or give me any suggestions?