Difference between revisions of "GetTileUnit"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with "= {E7} {{IE_E7}} = {{IE_E7_ex}} Stores the Unit Address of the Unit present at the specified map coordinates. Returns 0 on fail. You can use this instruction to verify that...")
 
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
{{IE_E7_ex}}
 
{{IE_E7_ex}}
  
Stores the Unit Address of the Unit present at the specified map coordinates. Returns 0 on fail.
+
Stores the Unit Address of the Unit present at the specified map coordinates into Variable 0. Returns 0 on fail.
  
 
You can use this instruction to verify that a tile is unoccupied before performing mid-battle coordinate specific instructions.
 
You can use this instruction to verify that a tile is unoccupied before performing mid-battle coordinate specific instructions.

Latest revision as of 18:21, 29 September 2021

{E7} GetTileUnit

GetTileUnit(+XXX,+YYY,xEL)

Stores the Unit Address of the Unit present at the specified map coordinates into Variable 0. Returns 0 on fail.

You can use this instruction to verify that a tile is unoccupied before performing mid-battle coordinate specific instructions.


See also: {E8} LoadTileData{E9} SaveTileData


X Coordinate : Byte (unsigned)

X Coordinate of the tile.


Y Coordinate : Byte (unsigned)

Y Coordinate of the tile.


Elevation : Byte (hex)

  • x00: Not Elevated
  • x01: Elevated