changing weather mid mission
just for reference a method to dynamicaly change the weather during a mission
here from sunny to either foggy or rain then to clear
irandom [attack],$1,$2
if
sameint [attack],$1
then
GameTime [gt]
ifall
sameint [processed],$0
greater [gt],20
then
Weather "mgrain"
setint [processed],$1
endif
endif
if
sameint [attack],$2
then
GameTime [gt]
ifall
sameint [processed],$0
greater [gt],20
then
Weather "mgfog"
setint [processed],$1
endif
endif
irandom [attack2],$1,$2
if
sameint [attack2],$1
then
GameTime [gt]
ifall
sameint [processed2],$0
greater [gt],200
then
Weather "mgsun"
setint [processed],$1
endif
endif
if
sameint [attack2],$2
then
GameTime [gt]
ifall
sameint [processed2],$0
greater [gt],200
then
Weather "mgsun"
setint [processed2],$1
endif
endif
can be done either the half arsed SH3 way ie weather changes after a set period of time no matter where you are on the map..OR
it can be done properly with weather changes occuring at set locations
so a fog bank can be programmed to appear at a certain location and return to clear or similar once you leave the area...
shed loads of work yet but the code and concept works..
__________________
the world's tinyiest sh3 supermod-
and other SH3/SH2 stuff
http://www.ebort2.co.uk/
The best lack all conviction, while the worst
Are full of passionate intensity.
W.B.Yeats
|