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¶
maxoptionsis set to the length ofplayerdata- currentaction is set to
SelectPlayer
SingleEnemy¶
- If overridemax is false,
maxoptionsis set to the length ofavailabletargets - currentaction is set to
SelectEnemy
AllEnemies¶
optionis set to 0maxoptionsis set to 1- currentaction is set to
SelectEnemy
AllParty¶
optionis set tocurrentturnmaxoptionsis set to 1- currentaction is set to
SelectPlayer
All¶
optionis set to 0maxoptionsis set to 1- currentaction is set to
SelectEnemy