Difference between revisions of "FF7/Field/Script/Opcodes/75 PXYZI"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
 
my_wiki>Synergy Blades
Line 9: Line 9:
 
! width="50" | ''B3 / B4''
 
! width="50" | ''B3 / B4''
 
! width="40" | ''P''
 
! width="40" | ''P''
! width="80" | ''X''
+
! width="40" | ''X''
! width="80" | ''Y''
+
! width="40" | ''Y''
! width="80" | ''Z''
+
! width="40" | ''Z''
! width="80" | ''I''
+
! width="40" | ''I''
 
|}
 
|}
  
Line 21: Line 21:
 
* '''const Bit[4]''' ''B3'': Bank to store ''Z''.
 
* '''const Bit[4]''' ''B3'': Bank to store ''Z''.
 
* '''const Bit[4]''' ''B4'': Bank to store ''I''.
 
* '''const Bit[4]''' ''B4'': Bank to store ''I''.
* '''const Byte''' ''P'': Party member to retrieve data from; range is 0 to 2.
+
* '''const UByte''' ''P'': Party member to retrieve data from; range is 0 to 2.
* '''const Short''' ''X'': Address to store the X-coordinate of the party member.
+
* '''const UByte''' ''X'': Address to store the X-coordinate of the party member.
* '''const Short''' ''Y'': Address to store the Y-coordinate of the party member.
+
* '''const UByte''' ''Y'': Address to store the Y-coordinate of the party member.
* '''const Short''' ''Z'': Address to store the Z-coordinate of the party member.
+
* '''const UByte''' ''Z'': Address to store the Z-coordinate of the party member.
 
* '''const UShort''' ''I'': Address to store the ID of the walkmesh triangle the party member is standing on.
 
* '''const UShort''' ''I'': Address to store the ID of the walkmesh triangle the party member is standing on.
  

Revision as of 21:49, 23 December 2006

  • Opcode: 0x75
  • Short name: PXYZI
  • Long name: Party Member Get Position

Memory layout

0xC1 B1 / B2 B3 / B4 P X Y Z I

Arguments

  • const Bit[4] B1: Bank to store X.
  • const Bit[4] B2: Bank to store Y.
  • const Bit[4] B3: Bank to store Z.
  • const Bit[4] B4: Bank to store I.
  • const UByte P: Party member to retrieve data from; range is 0 to 2.
  • const UByte X: Address to store the X-coordinate of the party member.
  • const UByte Y: Address to store the Y-coordinate of the party member.
  • const UByte Z: Address to store the Z-coordinate of the party member.
  • const UShort 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.