Gw Temp
Menu
Tutorial - 'Time system' by Seth_Supo
An item about RPGMaker 2000 posted on
Blurb
How to create a working chronological (daily) system for your game!
Body
Ok, this is my first tutorial, EVER. And like that wasn't enough, I'm only 12 years old and come from Sweden >_
This is how my time system(without day/night) works:
Go to the database, go to Common Events, and create an event named Time or something. Change the options to 'parallel process'.
Just copy this stuff and you should be fine.
wait: 0.4s.
variable Change:[####: Seconds] + 1
fork options: if variable[####:seconds]=60
variable change:[####:Second] set 0
variable change:[####:Minute] + 1
end case
fork options: if variable[####: minute]=60
variable change:[####: minute] set 0
variable change:[####: hour] + 1
end case
fork options: if variable[####: hour]=24
variable change:[####: hour] set 0
variable change:[####: day] + 1
end case
fork options: if variable[####: day]=30
variable change:[####: day] set 0
variable change:[####: month] + 1
end case
fork options: if variable[####: month]=12
variable change:[####: month] set 0
variable change:[####: year] + 1
Now, the player maybe want to know what day it is, monday, tuesday... Or the player maybe want to know what year or month it is:
Create a new common event, named Month or something... You must have a hero called Month, or whatever you want... Change the options to 'parallel process'.
fork options: if variable[####: month]= 1
change hero Month's name to January
end case
And so on for every month... But when the year is supposed to start over, write like this:
fork options: if variable[####:month]=13
variable change:[####: month] set 1
end case
Now for days:
Create a new common event called Days... You must have a hero called Day, or something like that atleast... It's your choice... Change the options to 'parallel process'.
fork options: if variable[####: day]= 1
change hero Day's name to Monday
end case
Then the player must be able to look at a clock, write like this then:
Create an item called Clock.... Classify it as a switch item, and choose the switch ####: clock.
Create a new common event called Clock.
Change the options to 'parallel process'.
Fill the appearance Conditions switch, and choose the switch ####: Clock.
Now, the coding:
Message: The time is: \v[Hour]:\v[Minute]:\v[Second] Day: \v[Day]:\n[Hero Month] Year: \v[Year]
Change switch ####: Clock off.
That's it! Hope it works well!