Yanfly battle status window plugin - Actor switching help

Hi!

Im using the Yanfly plugin 'Battle status window' and there is a parameter to enable actor switching by pressing left/right keys.
I like the feature but i would like it to be disabled when you reach the last actor in your party.

So say if you have 5 actors in your party, when you have actor 5 selected you cannot press right to skip its turn.
I had a look in the plugin and i found this section

Window_ActorCommand.prototype.processHandling = function() {
if (this.isOpenAndActive() && Yanfly.Param.BSWPageUpDn) {
if (this.isHandled('pageup') && Input.isRepeated('pageup')) {
return this.processPageup();
} else if (this.isHandled('pagedown') && Input.isRepeated('pagedown')) {
return this.processPagedown();
}
}
Window_Selectable.prototype.processHandling.call(this);
if (this.isOpenAndActive() && Yanfly.Param.BSWLfRt) {
if (this.isHandled('left') && Input.isRepeated('left')) {
this.processLeft();
} else if (this.isHandled('right') && Input.isRepeated('right')) {
this.processRight();
}
}
};

Window_ActorCommand.prototype.processLeft = function() {
SoundManager.playCursor();
this.updateInputData();
this.deactivate();
this.callHandler('left');
};

Window_ActorCommand.prototype.processRight = function() {
if (SceneManager._scene.isAllowRightCommand()) {
SoundManager.playCursor();
}
this.updateInputData();
this.deactivate();
this.callHandler('right');
};

Window_ActorCommand.prototype.processCancel = function() {
var action = BattleManager.inputtingAction();
if (action) action.clear();
Window_Command.prototype.processCancel.call(this);
};

But Im not sure how id go about doing what i want to. It might not be a simple change so any ideas would be appreciated 🙂

Cheers!
bump, this would be a great addition to stop the player from accidentally skipping the last player's turn. Did you ever find the solution for this @Drifter92 ?

Tonedawg181, 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.


Please make a new thread instead.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-battle-status-window-plugin-actor-switching-help.91931/