Quote: (+notblue) i have never met this blue fellow in ...
blade2k » articles & tutorials

jump to:
Tutorials » Game Creation » RPG Maker 2000

Random Weather


Reading Article
Author: AP-Soft
Posted on 08/02/2004
print :: back to list

S

tart by making a common event. Make it Parallel Process and run by a switch (this way you can turn it off when you go inside of somewhere)

Here's the code:

Label 1# (Create Label Command)
Change Variable: [####:Weather]Set Random (1 to 6)
If Var(####:Weather)=4
Change Weather Condition: Rain, Low
Wait 60.0sec
Change Weather Condition: Rain, Med
Wait 60.0sec
Wait 60.0sec
Wait 60.0sec
Change Weather Condition: Rain, Low
Wait 60.0sec
Change Weather Condition: None
Goto Label 1#
:ELSE CASE
Wait 60.0sec
Wait 60.0sec
Wait 60.0sec
Wait 60.0sec
Wait 60.0sec
Goto Label 1#
:END CASE


Basically, this makes a 1 in 6 chance of rain.