timed game event

I'm trying to create a mini game where the character has a set amount of time to do something.

when time is up, the character is sent back to the beginning.

How can I get a countdown feature like this happening?

Can I find a script for it or is it more simple than I thought?

I'm fairly new to this.
Alright, this is actually quite simple. Make a conditional branch and one of the options for conditions is a timer. Just remember to include in the event that the timer shuts off after reaching "0" or it will stay in the top right of your screen.

I'd need more detail to help beyond that though.
I set it as a conditional branch and instead of counting down the 10 seconds I set it to, it went right to the "else" text.

the control timer is counting down but nothing happens
Strange... Take a screenshot of the event page and I'll see what I can come up with, and it'll help anyone else trying to help too.

*EDIT

Wait a minute, did you set the "Control Timer" before the conditional branch?

I'm very sorry I forgot to mention it before.
That I did.

control timer and then conditional branch
Still no good? Hmm... The ONLY other thing I can think of without actually seeing the event page is setting the conditional branch to "or less" instead of "or more".

You said 10 seconds, right?

This is what I  have:

untitled.png
Hey guys. The problem with your logic is that there is an else to the condition at all. You need to use a conditional that checks ONLY if the timer is zero. This is because the event is cycling through all of the commands every frame, which is 60 times per frame. (assuming it's a parallel process. It is a Parallel Process right? It should be.) If there is an else to the condition, it will automatically start that because the timer is not yet at zero.

edit:

for good eventing practice, add a wait time between each cycle, perhaps wait 5 frames. This will keep the lag to a minimum, so it only goes through the process every 5 frames.

I also forgot to mention, with how you've set it up, it will keep setting the timer to 10 seconds every frame. To keep everything on one page, put the conditional in a loop along with the wait 5 frames command.

Within the condition that checks if the Timer is 0, add a "Break Loop". Then put the rest of the actions after the loop.
This is the one I used:

untitled2.PNGuntitled.PNG

Original thread: https://forums.rpgmakerweb.com/threads/timed-game-event.18627/