Battle: Timer Ends, Force Action

I'd like to know how it is possible to force an action in the battle scene when the timer ends. In my project, it simply aborts the battle when the timer hits zero, instead of doing anything I have on the troop event commands.

In the troop event pages:

Page one starts the timer at turn 0.

In page two, there is
conditional branch > Timer 0 min 0 sec or less > control timer stop > Force Action (the enemy's skill here)
Post a pic and someone might be able to help much easier.
try this:
find the Game_Timer class.
you'll see it has the function "update"
find the call to that function: "$game_timer.update"
it should be in Scene_Battle, in the function "update" (update, of Scene, not of Timer)
you'll see there is $game_troop.update, and $game_timer.update.
$game_timer.update should be above $game_troop.update, that's why it cuts the battle before your event has time to run.
flip them over, so that the troop update runs first.

if that doesn't solve your problem, you'll have to make a bigger modification, or get creative with the eventing.
I don't see how to fix it with just a simple patch.

Original thread: https://forums.rpgmakerweb.com/threads/battle-timer-ends-force-action.81911/