SetMaxOptions¶
This method sets maxoptions, availabletargets and the vineicons meterials (greyscale if the choice is available, but disabled).
maxoptionis set to 3 (gives access to attack, skills and items options)- If flag 15 is true (after combat tutorial),
maxoptionis incremented (gives access to the stategies option) - If flag 16 is true (Leif is able to fight in battle),
maxoptionis incremented (gives access to the turn relay option) - SetTargets is called
- If
choivevineexists andcurrentturnisn't negative (a player is selected for acting), the materials of thevineiconsare updated to MainManager.grayscaleif the choice is disabled or MainManager.spritedefaultunityif 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 theplayerdataofcurrentturn(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 theplayerdataofcurrentturn(enabled otherwise):vineicons[4](turn relay) option is disabled if there's only oneplayerdataor any of the following are true about theplayerdataofcurrentturn(enabled otherwise):- Its
haspassedis true (a relay from this player party member already happened in the same main turn) - Its
locktriis true (relay is disabled) - It has the Taunted
- Its
vineoptionis set tomaxoption