Anonymous

Changes

From Final Fantasy Inside

FF7/Field/Script/Opcodes/75 PXYZI

No change in size, 05:17, 23 May 2019
m
5 revisions imported
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0xC10x75
! width="50" | ''B1 / B2''
! width="50" | ''B3 / B4''
! width="40" | ''P''
! width="8040" | ''X''! width="8040" | ''Y''! width="8040" | ''Z''! width="8040" | ''I''
|}
* '''const Bit[4]''' ''B3'': Bank to store ''Z''.
* '''const Bit[4]''' ''B4'': Bank to store ''I''.
* '''const ByteUByte''' ''P'': Party member to retrieve data from; range is 0 to 2.* '''const ShortUByte''' ''X'': Address to store the X-coordinate of the party member.* '''const ShortUByte''' ''Y'': Address to store the Y-coordinate of the party member.* '''const ShortUByte''' ''Z'': Address to store the Z-coordinate of the party member.* '''const UShortUByte''' ''I'': Address to store the ID of the walkmesh triangle the party member is standing on.
==== Description ====
Retrieves the coordinates of the party member specified by ''P''. If an invalid party member ID is specified, zeros are stored in the four addresses.