FF7/Field/Script/Opcodes/42 MPRA2

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Revision as of 05:16, 23 May 2019 by BukTop (talk | contribs) (2 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • Opcode: 0x42
  • Short name: MPRA2
  • Long name: Message Parameter (16-bit)

Memory layout

0x42 B W I V

Arguments

  • const UByte B: Bank to retrieve value from, or zero if using a literal value.
  • const UByte W: WINDOW ID for this parameter.
  • const UByte I: ID of the "Variable" dialog code that this value will replace.
  • const UShort V: Value to insert into dialog, or address of value, if B is non-zero.

Description

Similar to MPARA, but allows a constant value of greater than one byte to be supplied. This does not apply if B is non-zero, as the address the value is retrieved from must be in the range 0 to 0xFF.