Changes

Jump to navigation Jump to search

FF7/Field/Script/Opcodes/42 MPRA2

1,018 bytes added, 03:31, 8 September 2006
no edit summary
* Opcode: '''0x42'''
* Short name: '''MPRA2'''
* Long name: Message Parameter (16-bit)

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x42
! width="40" | ''B''
! width="40" | ''W''
! width="40" | ''I''
! width="80" | ''V''
|}

==== Arguments ====

* '''const UByte''' ''B'': Bank to retrieve value from, or zero if using a literal value.
* '''const UByte''' ''W'': [[FF7/Field/Script/Opcodes/50 WINDOW|WINDOW]] ID for this parameter.
* '''const UByte''' ''I'': ID of the "[[FF7/Field/Variable Dialog|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 [[FF7/Field/Script/Opcodes/41 MPARA|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.

Navigation menu