Benched Fighters-tcg style script request

Im here to request

Benched Fighters.

Its just like pokemon and tcg games.

lets say your max party members are 4, when you get in battle one is active and the other are disabled. i dont want to grey them out just hide them completely until a hero dies or you switch and pick the next active party member. the current members hp and stats will hide as if hes gone away from battle.

I would like this for the enemies too, after one dies the next appears to fight.
long awaited bump
I happened to be scripting for a hypothetical monster battler game, so I actually made this before I saw this topic. It seems pretty close to what you want. It requires Yanfly's Party System, mind you. It's used for switching party members. I'm probably going to update it with more features and fine tuning in the future maybe, but it might be functional enough for your testing purposes. Set an enemy to "Appear halfway" and they will appear after other enemies die. It is sequential so it's one after the other.

Spoiler
(function () {    alias_BattleManager_checkBattleEnd = BattleManager.checkBattleEnd;    BattleManager.checkBattleEnd = function () {        var hasExtra = false;        var hasExtraEnemy = false;        if ($gameParty.isAllDead()) {            var i = 0;            // check if there are any reserve party members that aren't dead            while (hasExtra === false && i < $gameParty.allMembers().length) {                if (!$gameParty.allMembers().isDead()) {                    hasExtra = true;                }                i++;            }            if (hasExtra) {                SceneManager.push(Scene_Party);                return false;            }        }        else if ($gameTroop.isAllDead()) {            var i = 0;            while (i < $gameTroop.members().length && !hasExtraEnemy) {                if ($gameTroop.members().isHidden()) {                    hasExtraEnemy = true;                }                else {                    i++;                }            }            if (hasExtraEnemy) {                $gameTroop.members().appear();                $gameTroop.makeUniqueNames();                return false;            }        }        return alias_BattleManager_checkBattleEnd.call(this);    };})();
Terms of Use: Credit me
Wow well that solves everything for me, thanks! ill keep following you to see any updates. 🙂
I happened to be scripting for a hypothetical monster battler game, so I actually made this before I saw this topic. It seems pretty close to what you want. It requires Yanfly's Party System, mind you. It's used for switching party members. I'm probably going to update it with more features and fine tuning in the future maybe, but it might be functional enough for your testing purposes. Set an enemy to "Appear halfway" and they will appear after other enemies die. It is sequential so it's one after the other.


Hidden Content


Terms of Use: Credit me

Hey  they updated rmmv a couple times and i think it might have broke your script. i tried this on a new project with yanflys party system it might be broken now :/


It definitely shows any normal enemy, but an enemy on appear halfway is considered dead i guess. for example 4 enemies appearing halfway and the battle is victorious automatically.
Hey  they updated rmmv a couple times and i think it might have broke your script. i tried this on a new project with yanflys party system it might be broken now :/


It definitely shows any normal enemy, but an enemy on appear halfway is considered dead i guess. for example 4 enemies appearing halfway and the battle is victorious automatically.

I'm not able to reproduce your error. Steam updated so I assume I have the latest updates. I started a new project and had no issues, including with Yanfly's Party System turned on (on its latest version). Try turning other plugins off and updating all of your plugins until you can isolate the problem. If it helps, here is the script again with better formatting:


Script

Original thread: https://forums.rpgmakerweb.com/threads/benched-fighters-tcg-style-script-request.52217/