Switching actors in 1 vs 1 battle.

Hi,
Battles in my game are 1 vs 1 but you can have five guys in the party.
I can't figure out how to switch a dead actor with the next one in battle.
I've tried to do this in a different way. So I've made a loop of the battle processing with dead actors counter and swap.
But it's pretty far from perfection because it starts the battle over and over again until you win or lose your whole party. So no matter how much damage I do with the first actor, the enemy will recover for the next battle.
Is there any way to achieve actors swap in one single battle?
The best would be without any plugin.
So?
Anybody knows if it's achievable with in-battle events or some script?
SEK_AllMembersFight.js
Try this

Original thread: https://forums.rpgmakerweb.com/threads/switching-actors-in-1-vs-1-battle.124138/