Gw Temp

Menu

Tutorial - 'Thunderstorm' by LinkMaster Sab

An item about RPGMaker 2000 posted on

Blurb

An indepth look in how to create a great looking Thunderstorm on the map

Body

Tutorial for RPG MAKER 2000
Thunderstorm on the Map

Okay, this thunderstorm event coding deals with some random numbers. First things first - create a parallel processes event on the map that you wish the thunderstorm to appear. In the code, place a Weather Effect of Rain on High. Play the appropriate BGM (I chose the RTP one), and then set your screen tone to add the dark effect. Start the first cycle. This one envelopes the whole event, so that the first two lines aren't repeated every time. The first thing inside of the cycle is to set a variable to a random number between 3 and 10. This is the timing between thunder. Start a new cycle - this does the timing for us. Subtract 1 from the variable you used and then wait for 1.0 seconds. Make a Fork activate when the variable equals 0, and make it break the cycle. After the cycle, set the variable to a random number between 1 and 3. Then make three fork options - one for each possible number - and place a flash and a sound effect in each, with each varying. See the example coding to see what I mean ;).

Parallel Event CODE -
<>Call Weather Effect: Ra, Hi
<>Play BGM: SErain
<>Set Screen Tone:(R050,G050,B050,S050),1.0sec
<>CYCLE
<>Variable Ch:[XXXX:Thunderstorm] Set, Randm[3*10]
<>CYCLE
<>Variable Ch:[XXXX:Thunderstorm]-,1
<>Wait: 1.0s.
<>FORK Optn:Varbl[XXXX:Thunderstorm]-0
<>BREAK Cycle
<>
:END Case
<>
:END Cycle
<>Variable Ch:[XXXX:Thunderstorm] Set, Randm[1*3]
<>FORK Optn:Varbl[XXXX:Thunderstorm]-1
<>Flash Screen: (R31,G31,B31,V15),1.0sec
<>Play SE: Thunder7
<>
:END Case
<>FORK Optn:Varbl[XXXX:Thunderstorm]-2
<>Flash Screen: (R31,G31,B31,V25),2.0sec
<>Play SE: Thunder9
<>
:END Case
<>FORK Optn:Varbl[XXXX:Thunderstorm]-3
<>Flash Screen: (R31,G31,B31,V25),0.1sec
<>Play SE: Thunder1
<>
:END Case
<>
:END Cycle
<>

Okay, so there you have it. It's all for you to use, change, and abuse, just as long as you don't claim it as your own ;). If you have any questions, go ahead and tell me.

~ LinkMaster_Sab