Yanfly battle status window plugin - Actor switching help

Status
Not open for further replies.

Drifter92

Regular
Regular
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

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!
 

Tonedawg181

Tonedawg Gaming
Regular
Joined
Oct 21, 2016
Messages
79
Reaction score
35
First Language
English
Primarily Uses
RMMV
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 ?
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
10,580
Reaction score
6,958
First Language
Dutch
Primarily Uses
RMXP

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.
 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Last day in Florida and then we head home. It was a fun, relaxing trip with just the wifey poo. Still managed to make some progress on my Game Jam project though.
On NEOLITHIC's 2nd Steam Anniversary, we walk on the path of Gabe's blessing. :p
GabeNFaithEN.jpg
What might the petitdevil be thinking right now?
1702054100193.png
And did you leave all your love and comments on the advent calendars today already?
So my babbling about doors and light-blocking makes sense, take a look at a finished lightmap. (Also I cannot take a low enough quality picture to actually get the forums to upload it.)

Forum statistics

Threads
136,842
Messages
1,270,659
Members
180,605
Latest member
LumaTactas
Top