Gw Temp

Menu

Tutorial - 'Day, Afternoon and Night - Rm2k' by Guest

An item about RPGMaker 2000 posted on

Blurb

How to use variables to allow your game the flow of time.

Body

This tutorial will explain how to do day, afternoon, and night.... OK email me if you have any problems or write in the comment box(email: jomo96@hotmail.com)Ok lets get started...

Make a event anywhere where you want to start the timer. Like the place where you first start would be a good place to put it... Ok.

Event condition:Autostart, below hero, and whatever.
Two pages.

Coding: First Page

TimerOperation:Creat 2m.00s.(you can change it)
Change Switch:[????Evening]On
TimerOperation:StartTmr
Change Switch[????setupdone]On

Coding: Second Page

Event condition: Switch[????setupdone]On, below hero, anything besides autostart.

Make new a common event
Set it to parallel process, Then have the switch box checked and put the switch called [????Evening]

Coding:

Fork optn:timer 0.m00.s less
Set screen tone: (to what color you think evening looks like)
Show Message: Its evening...(optional)
TimerOperation:Creat 2m.00s.(you can change it)
Change Switch:[????Night]On
TimerOperation:StartTmr
Change Switch:[????Evening]Off

:End Case

Make Another Common event same thing as the last one but instead of the [????Evening] Switch have it be the [????Night]Switch

Coding:

Fork optn:timer 0.m00.s less
Set screen tone: (to what color you think Night looks like)
Show Message: Its Night...(optional)
TimerOperation:Creat 2m.00s.(you can change it)
Change Switch:[????Day]On
TimerOperation:StartTmr
Change Switch:[????Night]Off

:End Case


Ok your almost done

Make yet another common event have the conditions the same as last time except change the switch and replace it with [????Day]

Coding

Fork optn:timer 0.m00.s less
Set screen tone: (to what color you think Day looks like)
Show Message: Its Morning...(optional)
TimerOperation:Creat 2m.00s.(you can change it)
Change Switch:[????Evening]On
TimerOperation:StartTmr
Change Switch:[????Day]Off

:End Case

And thats it Hopefully it works for you... If it doesnt i will try to look into it.You can also toy with it meaning when you it gets to morning you could have it eat or something... Or teleport somewhere.. Well thats all I have to say. It would probably help for a harvest moon type game