GotoSelect¶
If the confirmation handling needs to move to target selection (which happens from SetItem), a method called GotoSelect is involved receiving a boolean called overridemax which prepares the state for GetChoiceInput to handle this.
private void GotoSelect(bool overridemax)
Here is the logic of that method depending on the itemarea (nothing happens if it's not among them):
SingleAlly
¶
maxoptions
is set to the length ofplayerdata
- currentaction is set to
SelectPlayer
SingleEnemy
¶
- If overridemax is false,
maxoptions
is set to the length ofavailabletargets
- currentaction is set to
SelectEnemy
AllEnemies
¶
option
is set to 0maxoptions
is set to 1- currentaction is set to
SelectEnemy
AllParty
¶
option
is set tocurrentturn
maxoptions
is set to 1- currentaction is set to
SelectPlayer
All
¶
option
is set to 0maxoptions
is set to 1- currentaction is set to
SelectEnemy