Gw Temp

Menu

Tutorial - 'Clock' by rpgspace

An item about RPGMaker 2000 posted on

Blurb

How to create a clock system for your game

Body

Just follow my coding and you will have a full blown clock system in your game.


First make a commen event and call it whatever you want. Make it a parrelel process. No event conditons.
Make 6 variables and call them:

Seconds
Minutes
Hours
Days
Months
Years.

Okay now for the coding :
Wait 1.0 secs
Change variable (####seconds)+1
Fork option(Var. ####seconds)-61
Change variable (####minutes)+1
Change variable (####Seconds)Set,0
()
End Case
Fork option(Var. ####Minutes)-61
Change variable(####Hours)+1
Change variable(####Minutes)set,0
()
End Case
Fork option(Var. ####Hours)-25
Change Variable(####Days)+1
Change Variable(####Hours)set,0
()
End Case
Fork option(Var.###Days)-30
Change Variable(####Months)+1
Change Variable(####Days)set,0
()
End Case
Fork option(Var.####Months)-13
Change Variable(####Years)+1
Change Variable(####Months)set,0
()
End Case
Okay That was the hard part, now I put mine in an item So I'll tell you how:
Make an item called watch or whatever, then make the item a switch item, and check the checkbox and name the switch clock or whatever.
Then Make an event on a map that is autostart and event condition is switch clock is on.
In the evetns place put this in:
Show message:You have been playing for \v[?] years, \v[?] months, \v[?] days, \v[?] Hours, \v[?]minutes, and \v[?] seconds.
Change switch [####Clock]-off

The ? in the \v[?] is the number variable.

And copy and paste this event in every map of yours and you have a watch, I would suggest that you give it to the hero in the beggining, but that's just me