Time Bomb idea not working

Trying to force an action during battle after a set time has passed. I can get the timer to show and an action will happen when the timer hits 0... but not the action I need.

For some reason, despite my enemy character (named "Fuse" in this case) being set to Force Action a skill called "Nuclear", all that happens is the player characters flee and the battle ends. What's supposed to happen is the "Nuclear" skill is to wipe out the player party after enough time has passed (for testing purposes, I had it set to 30 seconds here), which for some reason gets completely ignored. I think the battle ending is a fail-safe?

I'm not entirely sure what I'm missing here. How do I get this specific action to trigger properly? This is all I have set up for the event:
1727924380868.png
1 - you have some logical errors
2 - the timer won't do what you want by default

Look at your event and follow the event commands down. The very first thing it does is start the timer at 30 seconds. The next line asks if the timer is at 0 seconds - logically, that can never possibly be true because you just set it to 30.

Second error is your condition is of turn end. So even if you correctly made two events, one that started the timer at the beginning of the battle (turn 0) and a separate one that checked whether the timer had run out, you'd only be checking it at the end of each turn, not exactly when the timer runs out.

The last bit is what you already discovered - MV has the built in functionality that if the timer runs out during battle, it ends that battle.

You can get rid of that if you like by copying the below into a text editor, saving as a *.js file, and including it as a plugin:
Code:
Game_Timer.prototype.onExpire = function() {};

But that leaves the rest of the logical stuff for you to correct before this scenario will work the way you want.
1 - you have some logical errors
2 - the timer won't do what you want by default

Look at your event and follow the event commands down. The very first thing it does is start the timer at 30 seconds. The next line asks if the timer is at 0 seconds - logically, that can never possibly be true because you just set it to 30.
So does the timer need to be it's own event? I tried starting it prior to the battle and removed it from the troop's Battle Event, but that ended up doing the same thing.

Second error is your condition is of turn end. So even if you correctly made two events, one that started the timer at the beginning of the battle (turn 0) and a separate one that checked whether the timer had run out, you'd only be checking it at the end of each turn, not exactly when the timer runs out.
I'd like the timer to be passive, if possible, so that Fuse will cast Nuclear regardless of what is currently happening. Or at the least, at the end of the turn or whenever the earliest opportunity to use the skill is.

I suppose a different question would be, is there an alternative way to force a battle action after a set period of time has passed?
Fuse will cast Nuclear regardless of what is currently happening. Or at the least, at the end of the turn or whenever the earliest opportunity to use the skill is.
If you installed the code I gave you and corrected the event logic, the action should happen at the end of the turn after the timer ends.

I suppose a different question would be, is there an alternative way to force a battle action after a set period of time has passed?
There are some number of timer plugins with various functionality that should pop right up on a Google - you could read through them, see what they offer.
If you installed the code I gave you and corrected the event logic, the action should happen at the end of the turn after the timer ends.
Apologies, I responded to your answer before installing the code. It does work, though! There are currently no other battle-related timers in the game, so I hope that doesn't mess with other field timer events ^_^;
There are some number of timer plugins with various functionality that should pop right up on a Google - you could read through them, see what they offer.
I Googled "RPG Maker MV Force Action not working", which might not have been a broad enough query, I suppose 😛
It did lead me to a few other topics on this forum, but I didn't quite find the answer I was looking for.

Regardless, the problem is solved. Thank you!
I Googled "RPG Maker MV Force Action not working", which might not have been a broad enough query, I suppose 😛
I don't understand. That...wouldn't have anything to do with timer plugins, which is what I said you would look for if you needed additional timer functionality.

But okay, glad it's doing what you want.
I don't understand. That...wouldn't have anything to do with timer plugins, which is what I said you would look for if you needed additional timer functionality.

But okay, glad it's doing what you want.
Sorry, I meant I was trying to find out why the event itself wasn't working prior to this conversation. I wasn't looking for any plugins specifically, I was wondering if the engine had the ability to do this innately. Turns out, it does not.

Original thread: https://forums.rpgmakerweb.com/threads/time-bomb-idea-not-working.172329/