Gw Temp

Menu

Tutorial - 'Day/Night System with Random Weather' by Baron_Osiris

An item about RPGMaker 2000 posted on

Blurb

It's not just any day/night tutorial, but it also includes random rainfall!

Body

Be warned I had to code a lot and I am just going to write it out, since it's quite large I am not explaining it. It uses extremely simple commands and if you deserve to use RM2k3 you should understand it, lol. Well here goes then!

Ok I had to put these together because of some of the features this has. The main one when it changed from light to dark when it rains and the switches that are required. So here is your code - Beware there may be some bugs but I had no known problems(may want to readjusts times since I am using small time limits for testing purposes!)

I won't be using the <> since everyone knows where they go :P

- You should put this code into a common event called Day/Night!
- The Common Event has to be a Parallel Process and has to be called on a map by an Event Tile(make an event tile and add the code - Call Event: Day/Night)
- Also make the variables: day, night, dusk, dawn, and weather.

Switch Operation: [0001:day] ON
Wait: 60.0 Sec
Tint Screen: (R100,G070,B040,S120), 30.0 Sec (Wait)
Switch Operation: [0001:day] OFF
Switch Operation: [0002:dusk] ON
Wait: 60.0 Sec
Tint Screen: (R020,G040,B080,S120), 30.0 Sec (Wait)
Switch Operation: [0004:dusk] OFF
Switch Operation: [0002:night] ON
Wait: 60.0 Sec
Tint Screen: (R080,G080,B100,S100), 30.0 Sec (Wait)
Switch Operation: [0002:night] OFF
Switch Operation: [0002:dawn] ON
Wait: 60.0 Sec
Tint Screen: (R100,G100,B100,S100), 30.0 Sec (Wait)
Switch Operation: [0003:dawn] OFF
Switch Operation: [0001:day] ON

- This next bit of code goes into the common event Random Rain
- The Common Event has to be a Parallel Process and has to be called on a map by an Event Tile(make an event tile and add the code - Call Event: Random Rain)

Wait: 60.0 Sec
Variable Oper: [0001:weather] Set, Rnd [0-7]

Branch if Var [0001:weather] is 1
Weather Effects: Rain, Weak
Branch if Switch [0002:night] is OFF
Tint Screen: (R020,G040,B080,S120), 30.0 Sec (Wait)

: Else Handler

: End
Wait 10.0 Sec
Weather Effects: Rain, Medium
Wait 10.0 Sec
Weather Effects: Rain, Strong
Wait 60.0 Sec
Weather Effects: Rain, Medium
Wait 10.0 Sec
Weather Effects: Rain, Weak
Wait 10.0 Sec
Branch if Switch [0002:dawn] is ON
Tint Screen: (R080,G080,B100,S100), 30.0 Sec (Wait)

: End
Branch if Switch [0002:day] is ON
Tint Screen: (R100,G100,B100,S100), 30.0 Sec (Wait)

: End
Branch if Switch [0002:dusk] is ON
Tint Screen: (R100,G070,B040,S120), 30.0 Sec (Wait)

: End
: End

Branch if Var [0001:weather] is 2
Weather Effects: Rain, Weak
Branch if Switch [0002:night] is OFF
Tint Screen: (R020,G040,B080,S120), 30.0 Sec (Wait)

: Else Handler

: End
Wait 10.0 Sec
Weather Effects: Rain, Medium
Wait 10.0 Sec
Weather Effects: Rain, Strong
Wait 60.0 Sec
Wait 60.0 Sec
Weather Effects: Rain, Medium
Wait 10.0 Sec
Weather Effects: Rain, Weak
Wait 10.0 Sec
Branch if Switch [0002:dawn] is ON
Tint Screen: (R080,G080,B100,S100), 30.0 Sec (Wait)

: End
Branch if Switch [0002:day] is ON
Tint Screen: (R100,G100,B100,S100), 30.0 Sec (Wait)

: End
Branch if Switch [0002:dusk] is ON
Tint Screen: (R100,G070,B040,S120), 30.0 Sec (Wait)

: End
: End

Branch if Var [0001:weather] is 3
Weather Effects: Rain, Weak
Branch if Switch [0002:night] is OFF
Tint Screen: (R020,G040,B080,S120), 30.0 Sec (Wait)

: Else Handler

: End
Wait 10.0 Sec
Weather Effects: Rain, Medium
Wait 10.0 Sec
Weather Effects: Rain, Strong
Wait 60.0 Sec
Wait 60.0 Sec
Wait 60.0 Sec
Wait 60.0 Sec
Weather Effects: Rain, Medium
Wait 10.0 Sec
Weather Effects: Rain, Weak
Wait 10.0 Sec
Branch if Switch [0002:dawn] is ON
Tint Screen: (R080,G080,B100,S100), 30.0 Sec (Wait)

: End
Branch if Switch [0002:day] is ON
Tint Screen: (R100,G100,B100,S100), 30.0 Sec (Wait)

: End
Branch if Switch [0002:dusk] is ON
Tint Screen: (R100,G070,B040,S120), 30.0 Sec (Wait)

: End
: End

Branch if Var [0001:weather] is 4

:End

Branch if Var [0001:weather] is 5

:End

Branch if Var [0001:weather] is 6

:End


That should be all the coding you will need for this entire thing. As I said before there may be mistakes - I thought this code up in about 2 hours and I am writing this tutorial at 11:49 PM...

If someone wants to they take use this tut(give me credit) and make it a LOT more noob friendly, I was just really excited about this code since it's only my second tutorial, and I wanted to release it to you guys.

I really hope someone likes this code. It may help someone who is need of a quick day/night system with a random rain system intertwined into it(if you understand the code you will know what I mean).

Thanks MUCH!,
Baron_Osiris