Submit Your Article Guild Wars 2 Forum RPG Maker VX.com
 
RPG Maker
 

 Username:
 Password:
   Not a member? Register!



Home > Tutorials > RPG Maker 2003 > Game Clock for RPG MAKER 2003

Game Clock for RPG MAKER 2003


GAME CLOCK FOR RPG MAKER 2003

This is my own guide. I make no apologies if it parallels with any other guide.

START

The only drawback is that the clock will not count down with the message open unless you insert a number graphic, that is another story though

I put my clock in the signpost for every village, town, city ect. It shows the name of the place and then game time.

Here is how:


Make 3 variables (in my case 4 for the day) name it SECONDS, MINUTES, HOURS (and days if you want it)

Go to:

Common Event

Name a new section as Game Clock
Trigger: parallel process

Enter the script below:

Wait: 1.0 Sec
Variable Operation [***: Seconds] + 1
Branch if var [***: Seconds] is 60 or more
Variable Operation [***: Seconds] Set, 0
Variable Operation [***: Minutes] + 1

END

Branch if Var [***: Minutes] is 60 or more
Variable operation [***: Minutes] Set, 0
Variable Operation [***: Hours] + 1

END

Branch if var [***: Hours] is 24 or more
Variable [***: Days] Set, 0
Variable Operation [***: Days] + 1

END

Branch if var [***: Days] is 31 or more
Variable Operation [***: Days] Set, 0

I included days here. If you just want seconds, minutes and hours, then leave out the days section and change the BOLD section to:

Branch if Var [***: Hours] is 100 or more
variable Operation [***: Hours] Set, 0.

This will restart the whole clock if you go over 100 hours of game play to reset mode as it were from the beginning.

The clock will tick away as soon as you start the game.

NOW:

Complete the section below:

Go to Database, choose items.

Make a new item, call it game clock if you wish.

Type: Switch

SELECT FIELD ONLY

Number of uses: one only

Make a new switch called 'game clock'

NOW:

Make a new common event.

Call it 'trigger game clock'

Trigger: parallel process

Trigger switch: use the same switch that you created with your newly created item. In this case 'game clock'

In the event section, double click to bring up the event command list

On tab 1 use MESSAGE DISPLAY OPTIONS

Next use the MESSAGE from tab 1

Doube click on the message command to enter your variables for seconds, minutes hours ect.

To make a variable appear in a message use the code as follows: \v[Enter variable no]

e.g

Enter all three second, minute, hour variables here, plus days or months if you wish if done previously

Game Time:

\v[0012] Days \v[0011] Hours \v[0010] Minutes \v[0009] Seconds



Make sure you click APPLY, then OK.

Now go to your map of where you want it to appear.

Select a event location on your squared map

EVENT EDITOR:
TRIGGER: ACTION KEY
Choose a graphic

For example. Every signpost graphic can be used to show towns name then game clock.

Go to tab 3, select CALL EVENT. Then choose: trigger game clock from common event, make sure you choose your second new created common event, not the clock script itself ok)

FINISHED.


Details
Tutorial: Game Clock for RPG MAKER 2003
Date Listed: Tue, 19 Jan 2010 03:59:18 -0500
Author: vaporate23
Total Hits: 2406


Embed
Short URL:

HTML:

BB Code:



RPG RPG Revolution
RPG RPG Revolution is your #1 stop for game development and console RPG games, as well as those created by people like you. Link to us to support us, so we may grow to be better website community for you.

RPG RPG Revolution is an Privacy Policy and Legal