Help with a Countdown Puzzle

Hi all!

So I'm trying to make a puzzle for game jam game that's based off the D&D Countdown Puzzle

I'm stuck at basically the last part and then it should be fine from there. Basically, I can't get it to do the events during the countdown AND reset at the same time. I've searched other threads and vids which got me this far but now I am stumped.
I can either get the events during the countdown to go off but not the reset or get the rest to work but not the events.

References I used to get this far: Issues with Timers , Making Countdown Timers , Super Simple Puzzles

This is my Countdown timer event set up. The event EV012/the gray stone is my countdown timer and controls the events. Basically I am trying to get threats to appear on the map as the count goes down. The events are the "clear" squares which switch to bats during the countdown. I initially tried different ways of getting the one event to reset itself which didn't work. I tried creating an event that would just reset the Countdown but it will not do anything during the countdown. I've tried switching around above and below characters.

Any help is appreciated. Thanks!
Spoiler: screenshots
1634541001090.png

1634541061842.png

1634541099266.png

1634541151645.png
the best way personally to control timers (if visible) is to use a variable.
a variable timer that is the same as total of the timer you have.

in the event in parallel process you have around this.

variable x -=1 (remove 1 variable from timer)
if variable x <= 720 (timer 12 seconds)
show text/image of 12 seconds left
else
if variable x < 360 (6 seconds)
show text/image of 6 seconds
else
maybe more?
end
end
end

in the other event next to it in parallel

if timer = 00.00.00 or lower
variable x = 0
switch stop of the timer if used
end
you want to stop the entire timer and reset the player if failed,
able to reset it.
you might require to use a selfswitch for the other event to be off
in this event as well, you can search how to do it.

variable number is a example, so for 20 seconds, use 20x60 = 1200.
use this variable also in your puzzle where the timer start otherwise,
it stops the timer as well 🙂

I use this example half from my side game which is timer based.
but I hope you understand how to set up the timer to make it work
better in your case which is also more controlled.
@ShadowDragon So I am trying to understand I'll screenshot what I have. Do I need both the timer and the variable? Or are you saying I would just make a timer purely with variables?


Spoiler: screenshots - is this correct?
1634616429575.png
1634616506404.png

Original thread: https://forums.rpgmakerweb.com/threads/help-with-a-countdown-puzzle.141338/