Is there a script snippet to check what actor is currently having their turn during a battle ?
[HELP]Return Current Battle Actor
RPG Maker MZ SupportCan make an adjustment to TLB's code from your last thread:
Short explaination: This is one way I know of in determining the current turn of a party member because when they are able to select attack, etc, their action state will change to "inputting" otherwise it'll be "undecided".
JavaScript:
function getCurrentMemberTurn() {
return $gameParty.members().filter(member => member._actionState === "inputting")[0]?.index();
}
Short explaination: This is one way I know of in determining the current turn of a party member because when they are able to select attack, etc, their action state will change to "inputting" otherwise it'll be "undecided".
Original thread: https://forums.rpgmakerweb.com/threads/help-return-current-battle-actor.140377/