MV HELP | Cancel party commandWindow Support

We were trying to remove the party command window from the game, but initially it works, but if the live actor with the lowest index dies and you try to go back, the window reappears. This is why I am looking for a way to completely remove it from my system. You can see the code we use below.
Spoiler: Code
(function() {
var _Window_Selectable_Process_Cancel = Window_Selectable.prototype.processCancel;
Window_ActorCommand.prototype.processCancel = function () {
if (BattleManager._actorIndex <= 0) {
return;
}
_Window_Selectable_Process_Cancel.call(this);
};
})();
What are you exactly trying to do?
Are you trying to take off the menu or just the command skill or status?
I'm looking to completely remove the window in which Run / Fight appears from my game. It is completely unconscionable to me. and then put the The Flee command in the command Windows of the actors.
I think you can just use this instead:
JavaScript:
Scene_Battle.prototype.startPartyCommandSelection = function() { this.commandFight(); };
I.e. instead of showing the party command window, just proceed as if the player chose "Attack".
I think you can just use this instead:
JavaScript:
Scene_Battle.prototype.startPartyCommandSelection = function() { this.commandFight(); };
I.e. instead of showing the party command window, just proceed as if the player chose "Attack".
A good choice, Thanks for it.
But the menu does not disappears,
If you press the cancel button, it returns to this, I don't want this window in my game ..., can't it be removed directly from my Core?
A good choice, Thanks for it.
But the menu does not disappears,
If you press the cancel button, it returns to this, I don't want this window in my game ..., can't it be removed directly from my Core?
For me the fix I suggested works both at the start of each turn and when cancelling the first movable actor's action assignment. I tested and could not get the game to show the party command window at any time.
  1. Did you remember to save your project to apply Plugin Manager changes before testing?
  2. Are you using other plugins that affect the party command window?
Note that if you remove the window from the scene then you should also remove all references to that window. That will require you to alter several methods in the core scripts, preferably via overrides in a plugin: try searching the Scene_Battle code for _partyCommandWindow (it might also be referenced elsewhere). More overrides might be needed if you're using other plugins.
Yes, I must review everything calmly, there are several plugins. Thanks for the help, I tried it on another and it worked, so it must be some other plugin interfering. YOU SAVE ME!!!

Original thread: https://forums.rpgmakerweb.com/threads/help-cancel-party-commandwindow-support.134872/