Add Flee to Actor Battle Command And Remove Party Commands

Hey everyone, I am looking for a plugin I can use to totally remove the Party Battle Commands (Attack, Escape) and simply add Escape to each Party Member's battle menu instead.

Perhaps this can be done without a script but I'm not sure how.

I've attached a screenshot of the major plugins I am using, including all the battle ones.

Any help would be much appreciated. If there is already a plugin that can do this, please let me know!
Here's a relatively small Plugin that should have both requirements met. You can choose whether or not to have the Escape command by changing the "Add Escape Command" parameter. You can either copy the code into a new text file and name it "SkipPartyMenu.js", or download the file attached to this post. I have not checked its compatibility with other Plugins.

Code:
/*:
* @plugindesc Skips the fight/escape menu at the start of each turn.
* @author Zevia
*
* @help This plugin will cause the party menu where you choose fight or escape
* to be skipped at the start of each turn. The Escape command will be moved
* to the end of the command menu. The Escape command can be removed altogether
* by changing the "Add Escape Command" parameter in the configuration.
*
* @param isEscapeEnabled
* @text Add Escape Command
* @type boolean
* @desc Whether the Escape command will be added to the actor's command list or not
* @default true
*
* @param shouldDisablePartyMenu
* @text Disable Party Menu
* @type boolean
* @desc Prevent the User from going back to the Fight/Escape menu by hitting the escape key.
* @default true
*/

(function(module) {
    'use strict';

    module.Zevia = module.Zevia || {};
    var SkipPartyMenu = module.Zevia.SkipPartyMenu = {};
    var ESCAPE_SYMBOL = 'escape';
    var parameters = PluginManager.parameters('SkipPartyMenu');
    var isEscapeEnabled = !!parameters.isEscapeEnabled.match(/true/i);
    var shouldDisablePartyMenu = !!parameters.shouldDisablePartyMenu.match(/true/i);

    SkipPartyMenu.shouldPreventCancelMenu = function() {
        return shouldDisablePartyMenu &&
            (
                BattleManager._actorIndex < 1 ||
                (BattleManager.isSTB && BattleManager.isSTB()) ||
                (BattleManager.isATB && BattleManager.isATB())
            );
    };

    SkipPartyMenu.startBattlerInput = BattleManager.startInput;
    BattleManager.startInput = function() {
        SkipPartyMenu.startBattlerInput.call(this);
        if (BattleManager.isSTB && BattleManager.isSTB()) { return; }

        BattleManager.selectNextCommand();
    };

    SkipPartyMenu.createActorCommandWindow = Scene_Battle.prototype.createActorCommandWindow;
    Scene_Battle.prototype.createActorCommandWindow = function() {
        SkipPartyMenu.createActorCommandWindow.call(this);
        if (!isEscapeEnabled) { return; }

        this._actorCommandWindow.setHandler(ESCAPE_SYMBOL, function() {
            BattleManager.actor()._actionState = '';
            if (!BattleManager.processEscape() && BattleManager.isATB && BattleManager.isATB()) {
                BattleManager._phase = 'atb';
                SceneManager._scene._actorCommandWindow.deactivate();
            }
        });
    };

    SkipPartyMenu.changeInputWindow = Scene_Battle.prototype.changeInputWindow;
    Scene_Battle.prototype.changeInputWindow = function() {
        if (!shouldDisablePartyMenu) {
            SkipPartyMenu.changeInputWindow.call(this);
            return;
        }

        if (BattleManager.isInputting()) {
            if (!BattleManager.actor()) {
                BattleManager._actorIndex = 0;
                BattleManager.actor().setActionState('inputting');
            }
            this.startActorCommandSelection();
        } else {
            this.endCommandSelection();
        }
    };

    SkipPartyMenu.makeCommandList = Window_ActorCommand.prototype.makeCommandList;
    Window_ActorCommand.prototype.makeCommandList = function() {
        SkipPartyMenu.makeCommandList.call(this);
        if (this._actor && isEscapeEnabled) {
            this.addCommand(TextManager.escape, ESCAPE_SYMBOL, BattleManager.canEscape());
        }
    };

    SkipPartyMenu.processCancel = Window_ActorCommand.prototype.processCancel;
    Window_ActorCommand.prototype.processCancel = function() {
        if (SkipPartyMenu.shouldPreventCancelMenu()) { return; }
        SkipPartyMenu.processCancel.call(this);
    };
})(window);
This is amazing! Thank you so much for working on this! It does indeed add the Escape function to the actor battle command now!

However, is there a way you would be able to make it so that the Party Commands are removed entirely? As in, the player can't hit ESC get to them? Though this plugin skips the Attack or Escape party options, they are still accessible. I just want the actor commands to be the only ones possible in combat.
Edited my previous post with a new version of the Plugin that should now give you the option to disable accessing the Party Command Menu by hitting the escape key. By default, the Party Command Menu is completely disabled, but you can change the parameter in the Plugin options to false to re-enable the ability to access it with the escape key.

Turned out to be a bit more involved than I was expecting, since I couldn't just disable the cancel listener since it's also used to cycle to previous Actors if you change your mind about your input.

Let me know if you come across any other issues.
Yes, this is perfect! Thank you so so much for taking the time to work on this!

EDIT: Okay, so actually there is one last problem I am running into - if I remove other party members, the player will never get a turn in combat at all if one party member is the only one in battle.
In a new project with only the SkipPartyMenu installed, I'm not having the same issue, so it's most likely an issue related to another Plugin. We can confirm if you create a new project, then make SkipPartyMenu the only Plugin. Does it still prevent you from taking a turn with only one party member in that scenario?

If not, I can try installing some of the YEP Battle Plugins you have listed in your screenshot and seeing if I'm able to reproduce the problem.

EDIT: As discussed in private messages, the issue is a compatibility problem with Yanfly's Standard Turn Battle Plugin. I've modified the SkipPartyMenu Plugin to have a compatibility fix for Yanfly's system and edited my post with the new version.
Thanks so much again for helping with this! Everything has been running super smoothly since the compatibility update for Yanfly's plugin! 🙂
I was looking for this. Thank you so much.
Hi,

there still seems to be a Problem. As soon as there is more than one Party member in the Party, when its the second actors turn the menu can be accecsed again.
​
I'm not able to reproduce that issue. When you check the parameters for the Plugin, is "Disable Party Menu" set to false?

If not, then it's likely another compatibility issue with a different Plugin. If you start a new project and just have SkipPartyMenu in it, are you able to reproduce the issue? If so, can you please provide your reproduction steps?
Anyone notice an issue with Yanfly's ATB system. When the escape attempt fails, it freezes on the next actor with an empty gauge. (And thank you! 😀 )
Hi Zevia,

no "Disable Party Menu " is set to true. But just o be sure i tried both true and false.

I created a new Project and added all the Plugins i am using step by step.

Turns out ist the Yanfly STB that is causing the Problem. As i mentioned before as soon as there is more than one member in the Party. When it is the second actors turn u can go Right back to the party command window, or depending on the positon of the Plugin go back to the first actors commands.

After trying out some more i can confirm that this only occurs when ist actor 2-3 s turn. Works perfectly with actor 1.
Anyone notice an issue with Yanfly's ATB system. When the escape attempt fails, it freezes on the next actor with an empty gauge. (And thank you! 😀 )

I've modified the Plugin to be compatible with Yanfly's ATB system. You can get the modified version in my original post with it.

One note is that Yanfly no longer supports the ATB, CTB, or STB systems and it took me a couple frustrating hours to figure out what I needed to do because it involved setting the BattleManager's phase to a custom phase that only exists in the ATB system, as well as unintuitively needing to deactivate the Actor Command Window.

You should be cautious using these battle system Plugins moving forward since the original developer officially has dropped support for them, specifically citing that specialized battle systems tend to throw lots of wrenches into the mix when it comes to compatibility with other Plugins because of how much they overhaul the default system.

EDIT:
Turns out ist the Yanfly STB that is causing the Problem. As i mentioned before as soon as there is more than one member in the Party. When it is the second actors turn u can go Right back to the party command window, or depending on the positon of the Plugin go back to the first actors commands.

I've edited the Plugin to include an additional compatibility fix for Yanfly ATB and STB so that disabling the party menu should work appropriately.
Hi Zevia,

awesome it works. Thank you so much. 🙂
Thank you! Sounds like a harrowing experience, so I appreciate it! I'm currently a little leery using ATB in it's unsupported state, have Olivia's OTB on standby in any case. But no issues so far (I think)
@Zevia
Hi, is it possible to have the chance to move even the "Formation" command, from party battle commands to the Actor Commands?
@Zevia That beautiful little plugin you made was exactly what I was looking for too, solved my turn skipping, party menu and escape function problems all in one fell swoop. I was having trouble finding a simple solution to these battle command issues. Thank you for your work on this, very much appreciated.

Skerrcrow, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/add-flee-to-actor-battle-command-and-remove-party-commands.104403/