Tick-Based Events In Turn-Based Battles?

This is possibly one of those "I may be stupid" moments where I am not realizing the obvious solution, but I'd like to create a sort of soft turn timer for a particular boss enemy where they gain 1 TP per second and use a powerful attack at the start of their turn once they have filled their gauge. To this end, I naturally need some second-long looping timer that runs in the background while the battle plays out.

I can create a simple per-second switch that runs just fine out in the overworld, but the moment I try to do the same in-battle, I lose all control, and I cannot really fathom how one is supposed to bypass the issue. Is this something I can solve easily with the tools available or is this one of those moments where I need a specific plugin for that because MV just wasn't made for that kind of thing?

(Doesn't help that I've been away from the software for a year or two now and that I'm not terribly tech-savvy to begin with. Oops.)
From what I understand, you want to create combat where if the player takes too long to make a decision, the enemy ends up firing an ability, right?

In this case, I think it is more efficient to use Ellye's ATB. Well, it already implements all this combat logic using waiting and you can create this dynamism in other ways at the same time.
If you don't want to do this randomization, the way the turn structure works, instead of using the enemy's actions you can simply create "scripted skills" where you define the damage it causes and an animation, all through common events, But it would take a lot more work to get a really good result.
Ah, I don't need the enemy to interrupt the turn order or anything. I simply want their TP bar to fill up passively over time so that when the enemy turn does start, they use a powerful ability. This is done to encourage fast decision-making. Also, this would only be for a specific fight or two, so I don't want to change the whole battle system if I don't have to (partly due to potential conflicts with other plugins -- the fewer plugins, the better).

If that is the only way, then I might do it, though.
From what I understand, you want to create combat where if the player takes too long to make a decision, the enemy ends up firing an ability, right?
the thing is that they want it for one boss. the rest of the game sounds like it should be normal. changing the entire battle system might be out of the question

@PvtRyan96
i havent tried it, but check out this plugin thatll let you run parallel common events in combat, make a CE that restores the boss' tp every 60 frames, and then flip the trigger switch on on at the start of the fight and off after
Sorry, it was my mistake. I'm not familiar with the language.

If so, this structure will work well for you. I added just one more thing, a Switch condition, so you can add the enemy's behavior of triggering the ability whenever the switch is on.

print overddrive.png
Sorry, it was my mistake. I'm not familiar with the language.

If so, this structure will work well for you. I added just one more thing, a Switch condition, so you can add the enemy's behavior of triggering the ability whenever the switch is on.

View attachment 313949

Edit: Yep, @Robro33 I made a little confusion, but I believe that with this common event it will have the desired result! Or, with the plugin you indicated. Until!
the thing is that they want it for one boss. the rest of the game sounds like it should be normal. changing the entire battle system might be out of the question

@PvtRyan96
i havent tried it, but check out this plugin thatll let you run parallel common events in combat, make a CE that restores the boss' tp every 60 frames, and then flip the trigger switch on on at the start of the fight and off after
This worked perfectly. Thank you very much. I guess it was just that the battle scene has no conception of what a parallel event is. I'd call it a missed opportunity, but I guess the fact that my issue is niche at all means it probably isn't, haha.

Anyway, thank you very much. That was a godsend. Mods can close the thread whenever.

Sorry, it was my mistake. I'm not familiar with the language.

If so, this structure will work well for you. I added just one more thing, a Switch condition, so you can add the enemy's behavior of triggering the ability whenever the switch is on.

View attachment 313949

Edit: Yep, @Robro33 I made a little confusion, but I believe that with this common event it will have the desired result! Or, with the plugin you indicated. Until!
And thank you, too. Much appreciated.
Sorry, it was my mistake. I'm not familiar with the language.
no worries, its all good

Thank you very much. I guess it was just that the battle scene has no conception of what a parallel event is. a
Pretty much, yes. By default, parallel events only work on the map scene, and troop events are ran as part of the battle scene's main loop.
so if you have a moment troop event that doesnt disable its own condition somehow, you cause an infinite loop where it will just keep running itself as it ends and the battle will be locked as it cannot progress to the next phases until the troop event is over
@Aleth728 That's not going to do what the OP wants because troop events do not run in the background like parallel events do.

That's going to make combat stop for as long as the BOOT switch is on (and since you don't turn it off inside the event, it should make combat freeze entirely).

As a side tip, when you're posting events to help other people with examples, you should change your editor's language to English to make sure they can understand which event commands you're using. You can right-click MV in your Steam library, go to Properties, and there's a drop-down menu.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/tick-based-events-in-turn-based-battles.170917/