The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: Kruler on June 26, 2007, 02:27:27 PM

Title: Need help with timer...
Post by: Kruler on June 26, 2007, 02:27:27 PM
Hey guys , iam using RPG maker 2003 , and i'd like for some help  :)
I made an event , now , i want the hero to get 2 items in 5 minutes , and bring it to this event,
if he will faild, i can guess i can set a switch or somthing that will lead to game over or etc...
but iam having problem seting the timer is self in the event.

???
Title: Re: Need help with timer...
Post by: Reives on June 28, 2007, 04:22:26 AM
I don't really use RM2003, but I suspect the mechanics to be the same, so I will try to explain in XP terms.

1. Start the timer with an event, then turn that event off by using switch.

2. In another event, set up a parallel processing event that checks the items with conditional branches. (Conditional branch: If item 1 is present, then if item 2 is also present, turn on a switch or w/e you do when you get them both).

3. In the same event, do a conditional branch at the end, checking the timer: if timer == 5 min, then turn on the loosing switch or simply activate game over.

Make sure to turn that parallel processing event off with switch when the checking of both items is positive. :)
Title: Re: Need help with timer...
Post by: MasterLink on June 29, 2007, 10:12:56 PM
I've never tried the timer myself, but no time like the present to learn how! I think i'll use it at some point in my game...

I would think that you would set the timer, and make sure to have an else case...
Next make a swith for the two items, so that when you get them a switch is turned on. Maybe 2 switches would work, one for each item. Then in the else case...if that is an option (I'm not at my computer to look at the timer settings, but when i look next i'll re post here) make it so that when the switch/switches is/are flipped the timer will turn off.

Then if the switches aren't flipped make the event for the Game over screen to come up when the timer runs out...

That's the best i can do to help right now. When i'm actually at my computer next, I'll see how it works, and if I explained anything wrong, i'll repost...

Hope this post helps... :blizj: