Swap Party Members when All Active Members Defeated

Hi.

I am making a game with a battle system with only 2 active party members. Why? When the active party members are defeated, I want to automatically swap the party members to the next in the list. If you need any more info, please ask, and I'll do my best to explain.

The scripts I am currently using are any of the scripts used in the Luna Engine Base. That's it.

Thank you for your time.
Bump
Bump

Original thread: https://forums.rpgmakerweb.com/threads/swap-party-members-when-all-active-members-defeated.97174/