SetMaxOptions¶
This method sets maxoptions
, availabletargets
and the vineicons
meterials (greyscale if the choice is available, but disabled).
maxoption
is set to 3 (gives access to attack, skills and items options)- If flag 15 is true (after combat tutorial),
maxoption
is incremented (gives access to the stategies option) - If flag 16 is true (Leif is able to fight in battle),
maxoption
is incremented (gives access to the turn relay option) - SetTargets is called
- If
choivevine
exists andcurrentturn
isn't negative (a player is selected for acting), the materials of thevineicons
are updated to MainManager.grayscale
if the choice is disabled or MainManager.spritedefaultunity
if the choice is enabled (only applicable if the element at the index exists):vineicons[0]
(attack) option is disabled if there's noavailabletargets
, enabled otherwisevineicons[1]
(skills) option is disabled if any of the following are true about theplayerdata
ofcurrentturn
(enabled otherwise):vineicons[2]
(items) option is disabled if instance.items[0]
is empty (no standard items) or any of the following are true about theplayerdata
ofcurrentturn
(enabled otherwise):vineicons[4]
(turn relay) option is disabled if there's only oneplayerdata
or any of the following are true about theplayerdata
ofcurrentturn
(enabled otherwise):- Its
haspassed
is true (a relay from this player party member already happened in the same main turn) - Its
locktri
is true (relay is disabled) - It has the Taunted
- Its
vineoption
is set tomaxoption