Difference between revisions of "AddUnit"
Jump to navigation
Jump to search
(Created page with "= {45} {{IE_45}} = {{IE_45_ex}} {{IE_45_desc}} This instruction can be either placed inside a {49} {{IE_49}}/{4A} {{IE_4A}}...") |
m (Xifanie moved page Event Instruction 45 to AddUnit) |
(No difference)
|
Latest revision as of 14:31, 22 February 2021
{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)