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

From QhimmWiki
Jump to navigation Jump to search
Qhimm>Synergy Blades
Qhimm>Synergy Blades
m (Doesn't seem to offer bank/address for party ID as I assumed)
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, or address to retrieve this value, if ''B1'' is non-zero.
* '''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.
Line 20: Line 19:
==== 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''.

Revision as of 00:01, 15 September 2006

  • 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, or address to retrieve this value, if B1 is non-zero.
  • 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.