- 98
- Posts
- 20
- Years
- Age 30
- Are you a spy? I'm at Seattle, catching DEOXYS
- Seen Jan 18, 2007
This thread could be for how to do Day/Night, Random Rain, and other things like making phones, and how to make a party system. I thought this may be useful because I never saw any Tutorials section, and I think there should be one, for newbies like me :D ! Anyways, if there is a thread already about this kind of thing, just lock this thread. I hope this is a good idea, but it's probably not. Oh well, if you want to know some tutorials, come here!
Oh, and here's Day/Night coding for RM2K, with Random Rain!
- 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
Hope this helps! This code was made in 2 hours, by a Gaming World member.
Anyway, post here if you would like to make Tutorials or comment on them.
~Tetris
Oh, and here's Day/Night coding for RM2K, with Random Rain!
- 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
Hope this helps! This code was made in 2 hours, by a Gaming World member.
Anyway, post here if you would like to make Tutorials or comment on them.
~Tetris