Difference between revisions of "FF7/Field/Script/Opcodes/45 MPu"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
m (sp)
my_wiki>Synergy Blades
m (layout)
Line 8: Line 8:
 
! width="40" | ''B''
 
! width="40" | ''B''
 
! width="40" | ''P''
 
! width="40" | ''P''
! width="40" | ''V''
+
! width="80" | ''V''
 
|}
 
|}
  

Revision as of 14:07, 6 October 2006

  • Opcode: 0x45
  • Short name: MPu
  • Long name: MP Up

Memory layout

0x45 B P V

Arguments

  • const UByte B: Bank to retrieve value for increasing, or zero if the amount is specified by a constant in V.
  • const UByte P: Party member whose MP will increase (0 to 2).
  • const UShort V: Value to increase MP by, or address to retrieve value from if B is non-zero.

Description

Increases the MP of the party member specified by P by the amount V. If B is non-zero, then the value to increase by is retrieved from bank B and address V.