Difference between revisions of "ResetUnitCalculations"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(→‎{15} {{IE_15}}: Detailed the commands that zero out the Battle Stat that causes units to display numbers on Effects.)
Line 5: Line 5:
 
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 [[Event_Instruction_18|{18} {{IE_18}}]].
 
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 [[Event_Instruction_18|{18} {{IE_18}}]].
  
Note: Currently bugged. Resets a ton of other stats as well, including non-temporary ones.
+
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:
 +
 
 +
<code>UnitAddress(x??,x70)<br>
 +
ZERO(x0071)<br>
 +
SaveAddress(x71,x01B1,x70,001)</code>
  
 
See also: [[Event_Instruction_18|{18} {{IE_18}}]]
 
See also: [[Event_Instruction_18|{18} {{IE_18}}]]

Revision as of 21:52, 24 April 2022

{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:

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

See also: {18} Effect