a question about timers

Hello everyone. I've been considering adding this feature:

A 5-minute timer starts. Every time a minute passes, a scene occurs (for example, a textbox appears saying, "Only 4 minutes left!").

However, I've encountered a problem. I noticed that there isn't an option for "if timer is EQUAL to"; there are only options for greater or lesser. This means that every time the timer is "equal to or less than 4 minutes," all the messages are displayed simultaneously.

I wanted to manage this using a single event. Is that possible? How would you approach it?

Is there a built-in way to accomplish this with RPG Maker features, or do I need to use a plugin or a script?
Just use the Else checkmark in your Conditional Branches.

If Timer <= 1
- Else If Timer <= 2
- - Else If Timer <= 3
etc.
Just use the Else checkmark in your Conditional Branches.

If Timer <= 1
- Else If Timer <= 2
- - Else If Timer <= 3
etc.
Oh, okay, thanks! Currently, it's set as a parallel event, and as soon as the condition 'If Timer <= 3' is met, the textbox displaying 'Only 3 minutes left!' keeps popping up.

How can I ensure that each message is displayed only once?
Try changing <= to ==
Like we discussed earlier, by putting a Wait command so that the parallel event doesn't run every frame.

You can also not use the timer at all, and instead increment a variable.
Wait 60
Control Variables -> thing +1
Conditional Branch -> thing == 60
- Show Text 4 minutes left

@AquaEcho There is no == for Conditional Branch Timer checks.
Well then you'd have to change it to the script call equivalent. All these arbitrary limitations are why I have script calls everywhere
Like we discussed earlier, by putting a Wait command so that the parallel event doesn't run every frame.

You can also not use the timer at all, and instead increment a variable.
Wait 60
Control Variables -> thing +1
Conditional Branch -> thing == 60
- Show Text 4 minutes left

@AquaEcho There is no == for Conditional Branch Timer checks.
Huh, at this point maybe this is the best solution. I like the numbers on the screen though, I guess I can try to run the timer without having events related to it

Well then you'd have to change it to the script call equivalent. All these arbitrary limitations are why I have script calls everywhere
Unfortunately I can't code yet haha would be useful though.
You can try
If: Script: $gameTimer.seconds() == 4
You would still need to incorporate a Wait command, otherwise seconds == 4 will be true for 60 iterations of the event. (also, 4 minutes would be 240 seconds)

So you can do Wait 360 and the built-in conditions or Wait 60 and the script call.
To prevent a message to be displayed more than once, you can have the message in a conditional branch that checks whether a switch is on or not. And once the message is sent, the switch turns on.
Would need a switch for every message, except the last one or it really depends how the event works. lol
You can also have the timer check turn on a switch, have a separate event do the "announcement" and "selfswitch a" itself so it doesnt repeat and continue.
I would still recommend adding waits on the parallel to not hog memory up with the checks.
thank you all for your suggestions, I really appreciate it!
In the end I'm using the script AquaEcho wrote because it works exactly how I imagined. Still have to put a "stop timer" and "start timer"at the beginning and end of the message when it's longer

Original thread: https://forums.rpgmakerweb.com/threads/a-question-about-timers.165833/