Anonymous

Changes

From Final Fantasy Inside

FF7/Field/Script/Opcodes/B8 GETAXY

938 bytes added, 01:53, 13 September 2006
no edit summary
* Opcode: '''0xB8'''
* Short name: '''GETAXY'''
* Long name: Get Entity XY

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0xB8
! width="50" | ''B1 / B2''
! width="40" | ''E''
! width="40" | ''X''
! width="40" | ''Y''
|}

==== Arguments ====

* '''const Bit[4]''' ''B1'': Bank to store ''X''.
* '''const Bit[4]''' ''B2'': Bank to store ''Y''.
* '''const UByte''' ''E'': Entity ID to retrieve.
* '''const UByte''' ''X'': Address to store X-coordinate.
* '''const UByte''' ''Y'': Address to store Y-coordinate.

==== Description ====

Fetches the current X- and Y-coordinates of the entity given by ''E'' into bank ''B'', address ''A''. ''E'' is an offset into the entity list, not a visible object ID, and therefore includes non-visible entities; retrieving the co-ordinates of a non-visible entity results in unusual values being retrieved.