Help with timer in a battle.

Hi there. I'm making a boss who compose of two: a robot and a cable. There's two ways to destroy it, just defeating the robot by depleting its HP, or 'defeating' the cable and making the robot to enter into a self-destruction sequence.

Here's the thing, I want to use the a Timer event to, when it reaches 0, the robot does damage to the characters and dies. Characters should still hit the robot while the timer is counting down, in an attempt to turning it off by depleting its HP. Whichever way the robot dies, the players wins.

However, I can't make the timer works well. This is my code (it's in Spanish).

When Enemy (2) (the cable) reaches 0 HP, the timer starts and activates a switch that calls the next page of the event.

1654978726068.png


The other page is called by the switch its activated before. On this, a condition is set where when it reaches 1 second, the timer stops and the robot does the self-destruct attack. The page is set as 'Moment'.

1654978800828.png


The issue here is that, when the timer starts, the battle freezes and the player can't select any command to even defend themselves. The timer still counts down until it reaches 0, when the robot does its attack and dies. (Of course it's not a robot, it's just a placeholder)
1654980940652.png


Changing the page event to "Turn" let the player to select commands while the timer is counting, but the condition when reaches 0s doesn't activate.

I also tried to put an "Exit event process" in the condition's 'else', but it doesn't do anything. Same with creating a Loop that englobes the condition, and adding an Exit Loop in the 'else'. Seems to be that I should put something in the 'else' because the game is verifying when it reaches 0 constantly but there's nothing there.
the problem in all cases is the wait - the computer doesn't freeze at all, it does exactly what you told it to do: to wait until the end of the event sequence.
there is never a possibility to do something else while waiting, because that only works with a parallel process, and there are no parallel processes in battle.

in fact there is no regular time at all in battle, the only thing that counts is the turns. and you would have to decide how long until the self-destruct in turns as well, never in frames or seconds.
Uhh, that's pretty bad, seems to be that I need to redesign this boss battle then.
Or there's a plugin that can manage timers? It's weird that this kind of feature can't be used properly on battles, some RPGs have timed battles (like FF)
Or there's a plugin that can manage timers? I
yes and no

it is not enough to manage timers for this case, you have to create time in the battlesystem.
turn-based combat has no time in that sense of the word, it only counts turns.

You would have to switch your entire battlesystem to one that does support regular time before you can add such a functionality, and that might have other consequences you do not want

Original thread: https://forums.rpgmakerweb.com/threads/help-with-timer-in-a-battle.148442/