Timer mechanic in battle

My problem is that I am trying to make battle where if you don't defeat enemy in certain time . Then game is over but here is what problem I am encountering first of all timer aborts battle but I used Sumrndmdde timer upgrade for it and now my problem is with eventing
Capture.png

I know what I did and it just start over whole event and set timer to 10 seconds again
You can use a switch to determine whether the timer is set or not, so it won't reset the timer over and over again. Also don't forget to turn the switch off at the start of the battle or after the battle.
Basically like this https://prnt.sc/lvppfj
@DrDhoom I tried but it didn't work i set up event same as your one
Here's ScreenShot
Cannpture.PNG

It did nothing after timer ends
The event only run once because the page span is Turn, it will only called once per turn basically. If you change the span to Moment, all inputs will be locked out since the event will run continuously.
Global common event or custom page condition plugin might solve the problem, but I don't know if such plugin exist.

Original thread: https://forums.rpgmakerweb.com/threads/timer-mechanic-in-battle.103339/