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.
(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);
};
})();
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);
};
})();