Gw Temp

Menu

Tutorial - 'Day and Night' by Andiaz

An item about RPGMaker 2000 posted on

Blurb

Another day and night tutorial; this one VERY indepth from the master of stylish-ess-ness... ;_; - Andiaz!

Body

Helloes. I decided to write this tutorial quite a long time ago, just to help people with creating good day and night systems. And, yes I know GamingW already has a lot of these tutorials… but meh. Enjoy!



A few things that you’ll need to know:



1. You have to know how to work with events.



2. Some knowledge about switches and how they work.



3. It’s a plus if you can handle timer operations.



First of all we need a starting event (so that the time will start). In the first room where you start to control the hero (or on the worldmap, if you prefer that), create a new event. Don’t use any graphics and set the “Event Start Condition” to Autostart and position to “Below Hero”. Create a new action, “Timer Operations” (1st Tab) and select set from the operation box. Next to where it says Set, put in the amount of time (_______ min ____ secs) you want a day to last and click OK. Now create a new action. A new timer operation, actually, and set it on start from the operations box. Check whatever you want in the bottom (Available in battle or Display Timer or both). Then create a new action that turns a switch called “Daytime” (or whatever you would like to call it) on. And finally create another action that turns on another switch called “Time starts” (or whatever) on.



Create a second page (Event Start Condition: Push Key and position Below Hero). Make the page start when the switch “day” (or whatever) is on. Just leave this page blank after that. It should look like something like this:



PAGE 1

Event start condition: Autostart

Position: Below Hero



CODE

Timer Operations: Create 2m.00s (or what time you want, but two minutes is a nice time).

Timer Operation: StartTmr

Change Switch: [xxxx: Daytime]-ON Set

Change Switch: [xxxx: Time Starts]-ON Set



PAGE 2

Switch xxxx: “Time Starts”-ON

Event Start Condition: Push Key

Position: Below Hero

CODE





NOTHING MORE...





--From morning to evening--



In this step we’ll have to use “Common Events” (you’ll find them in the database). Select which number you want and give it a name (I used Day/Night Cycler myself). Set the Event Start Condition to Parallel Process and set the Appearance Conditions Switch to “Daytime” (or whatever you named it). Create a new action called Fork Conditions (3rd tab) and select the button next to where it says “Timer”. Fill in the blanks like this (or whatever you prefer): 1 min 0 sec. below and click OK. Oh yeah, I almost forgot. Don’t add any ELSE Case, because you won’t need it... :P



Put a new action between where it says Fork... and End Case. The action should be “Set Screentone” and use the colour you would like to use (a tip is to use Red 100%, Green 80%, Blue 0% and Chroma 100%). Set the time to 10 x 0,1Sec and don’t check Wait Until Done. Then insert a new action called something like “night 4” (or whatever) off. And finally use another switch called something like “Day 1” (or whatever) on. All of this should go between “FORK” and “END CASE”.



Set in a new fork option (another timer, actually) after “END CASE” with what time you would like to use (I used 0 min 40 secs myself). Set a new action, set screentone, (I used Red 100%, Green 60%, Blue 0% and Chroma 100%). Then change the “Day 1” switch to off and make a new switch called “Day 2” (or whatever) on.



And then, set in ANOTHER Fork option (one timer, of course) and set it to what “Time below” you want (I used 0 min 20 secs myself)



Oh, one more thing. Finally, create a new Fork Option (0 min 1secs always) and use the command “set screentone” (I used Red 90%, Green 40%, Blue 0% and Chroma 100%). Set the “Day 2” switch to off and set another switch (called something like “Day 3”) on. Phew, just one more Fork option to go now!



Make another Fork option timer (0 min 1 secs always). Set screentone to whatever you want (I used Red 0%, Green 30%, Blue 80%, and Chroma 100%) and turn the “Day 3” switch to off and make another switch called “Day 4” (or whatever) go on. Make a new action called “Clear Timer” (3rd tab). Make a new Timer Operation and set it to the same time as the time in the first event we made (the regular event, the one that I used 2 min 0 secs in Create a new Timer Operation and set it to start and check whatever you want at the bottom. Make a new switch called something (I called it “Daytime”)... and set it to ON/OFF Trigger. At last, make a new switch called something (I used the name “Nighttime”) and set this one too to ON/OFF Trigger… and this is all the stuff you need to create a day and night system from morning to evening! Here’s the code:



COMMON EVENT

Event Start Conditon: Parallell Process

Appearance Conditions Switch: xxxx: “Daytime”

CODE



Fork Optn: Timer 1m. 00s. less

Set Screen Tone: (R100,G080,B000,S100),1.0sec

Change Switch: [xxxx: Night 4 ]-OFF Set

Change Switch: [xxxx: Day 1 ]-ON Set



:END Case

Fork Optn: Timer 0m. 40s. less

Set Screen Tone: (R100,G060,B000,S100),1.0sec

Change Switch: [xxxx: Day 1 ]-OFF Set

Change Switch: [xxxx: Day 2 ]-ON Set



:END Case

Fork Optn: Timer 0m. 20s. less

Set Screen Tone:(R090,G040,B000,S100),1.0sec

Change Switch: [xxxx: Day 2 ]-OFF Set

Change Switch: [xxxx: Day 3 ]-ON Set



:END Case

Fork Optn: Timer 0m. 01s. less

Set Screen Tone:(R000,G030,B080,S100),1.0sec

Change Switch: [xxxx: Day 3 ]-OFF Set

Change Switch: [xxxx: Day 4 ]-ON Set

Clear Timer

Timer Operation:Create 2m. 00s.

Timer Operation:StartTmr

Change Switch:[xxxx: Daytime ]-ON/OFF Trigger

Change Switch:[xxxx: Nighttime ]-ON/OFF Trigger



:END Case



WELL...



--From evening to morning--



Well, you should know how to do this now. Name the event to something like “Night/Day Cycler”. Here’s the code and good luck with your game!



COMMON EVENT

Event Start Condition: Parallel Process

Appearance Conditions Switch: xxxx: “Nighttime”

CODE



Fork Optn: Timer 1m. 00s. less

Set Screen Tone:(R30,G030,B090,S100),1.0sec

Change Switch: [xxxx: Day 4 ]-OFF Set

Change Switch: [xxxx: Night 1 ]-ON Set



:END Case

Fork Optn: Timer 0m. 40s. less

Set Screen Tone:(R050,G050,B100,S100),1.0sec

Change Switch: [xxxx: Night 1 ]-OFF Set

Change Switch: [xxxx: Night 2 ]-ON Set



:END Case

Fork Optn: Timer 0m. 20s. less

Set Screen Tone:(R080,G050,B100,S100),1.0sec

Change Switch: [xxxx: Night 2 ]-OFF Set

Change Switch: [xxxx: Night 3 ]-ON Set



:END Case

Fork Optn: Timer 0m. 01s. less

Set Screen Tone:(R100,G100,B100,S100),1.0sec

Change Switch: [xxxx: Night 3 ]-OFF Set

Change Switch: [xxxx: Night 4 ]-ON Set

Clear Timer

Timer Operation:Create 2m. 00s.

Timer Operation:StartTmr

Change Switch:[xxxx: Daytime ]-ON/OFF Trigger

Change Switch:[xxxx: Nighttime ]-ON/OFF Trigger



:END Case



THE END...



I hope you guys who are reading this liked the tutorial. I could have made it even more complex, but I think this will do for now. And as I mentioned above; good luck with your game ^_^! For feedback/questions regarding this tutorial, mail me: an_dias@hotmail.com .