ResetUnitCalculations

From Final Fantasy Hacktics Wiki
(Redirected from Event Instruction 15)
Jump to navigation Jump to search

{15} ResetUnitCalculations

ResetUnitCalculations()

Wipes the damage, status and other temporary calculations on all units on the field, allowing Effects to never display any damage/healing numbers when called with {18} Effect.

Note: Currently bugged. Resets a ton of other stats as well, including non-temporary ones. It's more reliable to zero out the Battle Stat that determines the Attack Type, though this has to be done to each individual unit.

Wiping the stat on one unit

UnitAddress(x??,x70)
ZERO(x0071)
SaveAddress(x71,x01B1,x70,001)

Wiping the stat on all units at once

SET(x0000,x0014)
LUI(x0070,x8019)
ADD(x0070,x08CC)
ZERO(x0071)
BackTarget(x01)
SaveAddress(x71,x01B1,x70,001)
If()
SUB(x0000,x0001)
ADD(x0070,x01C0)
JumpBack(x01)
EndIf()

See also: {18} Effect