Difference between revisions of "FF7/Field/Script/Opcodes/73 PGTDR"

From QhimmWiki
Jump to navigation Jump to search
Qhimm>Synergy Blades
 
ffrtt>BukTop
m (4 revisions imported)
 
(6 intermediate revisions by 2 users not shown)
Line 6: Line 6:
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x73
! width="40" | 0x73
! width="50" | ''B1 / B2''
! width="40" | ''B''
! width="40" | ''P''
! width="40" | ''P''
! width="40" | ''D''
! width="40" | ''D''
Line 13: Line 13:
==== Arguments ====
==== Arguments ====


* '''const Bit[4]''' ''B1'': Bank to retrieve party member ID, or zero if ''P'' is specified as a literal.
* '''const UByte''' ''B'': Bank to store direction.
* '''const Bit[4]''' ''B2'': Bank to store direction.
* '''const UByte''' ''P'': Party member ID, from 0 to 2.
* '''const UByte''' ''P'': Party member ID, from 0 to 2, or address to retrieve this value, if ''B1'' is non-zero.
* '''const UByte''' ''D'': Address to store direction.
* '''const UByte''' ''D'': Address to store direction.


==== Description ====
==== Description ====


Fetches the orientation of the party member specified by ''P'' on the field, into the bank and address specified by ''B1'' and ''D''.
Fetches the orientation of the party member specified by ''P'' on the field, into the bank and address specified by ''B'' and ''D''.

Latest revision as of 04:17, 23 May 2019

  • Opcode: 0x73
  • Short name: PGTDR
  • Long name: Get Party Member Direction

Memory layout

0x73 B P D

Arguments

  • const UByte B: Bank to store direction.
  • const UByte P: Party member ID, from 0 to 2.
  • const UByte D: Address to store direction.

Description

Fetches the orientation of the party member specified by P on the field, into the bank and address specified by B and D.