Conditionals

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

Event Conditionals

Instruction Name Example
{01} Var= Template:EC 01 ex
{02} Var>= Template:EC 02 ex
{03} Var<= Template:EC 03 ex
{04} Present Template:EC 04 ex
{05} UnitHP>= Template:EC 05 ex
{06} UnitHP<= Template:EC 06 ex
{07} UnitHP%> Template:EC 07 ex
{08} UnitHP%<= Template:EC 08 ex
{09} UnitMP>= Template:EC 09 ex
{0A} UnitMP<= Template:EC 0A ex
{0B} ActiveTurn Template:EC 0B ex
{0D} MCEquip Template:EC 0D ex
{0E} Gil>= Template:EC 0E ex
{0F} Gil<= Template:EC 0F ex
{10} Date>= Template:EC 10 ex
{11} Date<= Template:EC 11 ex
{12} Casualties>= Template:EC 12 ex
{13} Casualties<= Template:EC 13 ex
{16} Victory Template:EC 16 ex
{18} UnitOnTile Template:EC 18 ex
{19} LoadEvent Template:EC 19 ex
{25} AllyOnTile Template:EC 25 ex

New Instructions

These instructions require the Event Instruction Upgrade hack.

New Instruction Name Example
{14} HasStatus HasStatus(xID,xST)
{15} MissingStatus MissingStatus(xID,xST)
{1C} SetVar Template:EC 1C ex
{21} UnitsInRange>= UnitsInRange>=(xTM,xID,CNT,MIX,MIY,MAX,MAY)
{22} UnitsInRange<= UnitsInRange<=(xTM,xID,CNT,MIX,MIY,MAX,MAY)
{23} UnitDistance>= UnitDistance>=(xID,xID,DST)
{24} UnitDistance<= UnitDistance<=(xID,xID,DST)
{26} TurnCount>= TurnCount>=(xID,CNT)
{27} TurnCount<= TurnCount<=(xID,CNT)


World Conditionals

Instruction Name Example
{01} Var= Template:WC 01 ex
{02} Var>= Template:WC 02 ex
{03} Var<= Template:WC 03 ex
{04} HasUnit Template:WC 04 ex
{0E} Gil>= Template:WC 0E ex
{0F} Gil<= Template:WC 0F ex
{10} Date>= Template:WC 10 ex
{11} Date<= Template:WC 11 ex
{12} Casualties>= Template:WC 12 ex
{13} Casualties<= Template:WC 13 ex
{19} LoadEvent Template:WC 19 ex
{1A} Choice Template:WC 1A ex
{1C} SetVar Template:WC 1C ex
{1D} Text Template:WC 1D ex
{1E} DDEntry Template:WC 1E ex
{1F} SetVar2 Template:WC 1F ex
{20} DrawPath Template:WC 20 ex
{21} ErasePath Template:WC 21 ex
{22} DrawLocation Template:WC 22 ex
{23} EraseLocation Template:WC 23 ex
{24} FocusLocation Template:WC 24 ex
{25} MCBrave>= Template:WC 25 ex
{26} MCBrave<= Template:WC 26 ex
{27} MCFaith>= Template:WC 27 ex
{28} MCFaith<= Template:WC 28 ex