- Joined
- Aug 9, 2017
- Messages
- 122
- Reaction score
- 86
- First Language
- English
- Primarily Uses
- RMMV
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
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!
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!