AddUnit

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

{45} AddUnit

AddUnit(xID,x00,xDR)

Adds a unit to the event that is not currently loaded.

This instruction can be either placed inside a {49} AddUnitStart/{4A} AddUnitEnd block, or have it followed by {4B} WaitAddUnitEnd to make sure the event proceeds normally.


See also: {44} Draw{47} AddGhostUnit{49} AddUnitStart{4A} AddUnitEnd{4B} WaitAddUnitEnd


Unit ID : Byte (hex)

ID of the unit specified in the ENTD.


x00 : Byte (hex)

This value is always set to x00 in the original game; it probably doesn't have a function.


Drawing : Byte (hex)

  • x00: Draw immediately
  • x01: Hold in memory (use {44} Draw later)