A battle with waves of enemies?

So, RPGM ends a battle as soon as the last on-screen enemy is terminated, making situations where you face waves of enemies, or a boss appears after his minions are defeated an impossibility. I've crafted a workaround where I have an invisible, unnamed, and inactive enemy in the upper left corner that will still exist after the visible ones are defeated. The problem with this is it can still be selected to attack. If the player moves the cursor to that enemy, they'd probably be wondering where the cursor went, or why a character attacked thin air 😛

Is there any other way like a plugin or script to delay the ending of the battle scene after visible, active enemies are defeated?
Visu has some sort of wave battle plugin like that. Otherwise, rather than having an invisible battler, you can event around a "appear half way" enemy that spawns in at the right time. Or well.... Fade out screen, start new battle, fade in screen.
Have not tried this but wouldn’t it work if you gave the enemies immune to KO, and have a troop event trigger when the last one reaches zero hp?
@SGHarlekin I'll go investigate that plugin! XD

@wezque Yeah that sounds like it would function, but I'd still want the enemies to disappear. I guess I coudl have them 'transform' into an invisible sprite... but wouldn't they still be able to act if they weren't KO'd? I'll give it a shot anyway.
So, for another system I made before, had the battle opening and the battle after match removed, so I could run multiple battles in a row, without anyone noticing it isn't the same battle.

I used a plugin (Cae_SkipBattleIntroSimple) written for this purpose by Caethyril.

However... This will skip all battle intro's. So, if you want this to be the core of your game, then this could work. But if you want this just something to happen in a larger game, with plenty of other battle, then this is not the solution you want.
@wezque Yeah that sounds like it would function, but I'd still want the enemies to disappear. I guess I coudl have them 'transform' into an invisible sprite... but wouldn't they still be able to act if they weren't KO'd? I'll give it a shot anyway.

In the troop event trigger, when enemy HP <= 0%, you can remove the immortal state, and add KO state.
but wouldn't they still be able to act if they weren't KO'd? I'll give it a shot anyway.
As already alluded to by Testosterone, the idea is as follows:

Give the cronies "immune to KO" by default. Let's say there are three. Each time one is KO'd it will look at the HP of its fellow cronies. When there is still one standing, the "immortal" state will be removed, and the "KO" state will be added.

When the last one is brought to 0 HP, the summon of the big boss will happen first, only after which the last crony will be given "KO" state. I suspect that you might want to have an invisible enemy anyway in between to make for a more dramatic transition.

Original thread: https://forums.rpgmakerweb.com/threads/a-battle-with-waves-of-enemies.158919/