Dummy battler for battle mechanics?

Is it possible to create an invisible dummy battler that doesn't have to be defeated in order for the battle to end?

I want to use it to create battle mechanics. This would auto-battle with rhyme and reason to it's behavior inflicting states on itself. Then common events could check the states on the battler in order to create different battle mechanics

Adding a invisible member to the party would make it show up on the party screen and it's behavior would be random from auto-battle

On the other hand, and adding it to enemy troops would mean it would need to be defeated in order for the battle to end. So how can i add an invisible battler without running into any of these issues?

Edit: Wait, if it instantly defeated itself when all other enemies were gone, maybe it could be added to the enemy troop? Ok, how do i make it instantly defeat itself when all other enemies are gone?

I've moved this thread to MV Support. Thank you.

I would do option d none of the above. The closest I've come to this is to create an actor and use that for the stats of this dummy battler, then use force action as a troop event to tell it what to do. The only disadvantage is you will have to have it either go at start of turn or at end of turn (end of turn is best if you want it to do damaging moves, start of turn will feel too cheap from what I've seen and heard from my testers).

The interesting thing is, force action, at least for actors, doesn't check if the actor is in the party at all, and still does the command just fine even if they are not in the party. Though I've only used it on Yanfly's Battle Engine so not sure if that will still prove true with plain ACE (and I have no idea if it will work in MV as I don't use MV), so you may have to test it some.
If it uses skills, it can inflict states on itself. States on enemies can be used to influence thier behavior. Skills can also call common events. Common events can make script calls. With script calls, you can make a battle system

That's my train of logic at least. So how do i make it so it intstantly defeats itself when all other enemies are defeated?

Edit: Also, i think using a event to force a battler not in the party to do an action is a bit clunky

Original thread: https://forums.rpgmakerweb.com/threads/dummy-battler-for-battle-mechanics.113057/