Difference between revisions of "FF7/Field/Script/Opcodes/47 MPd"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
 
m (4 revisions imported)
 
(3 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
! width="40" | ''B''
 
! width="40" | ''B''
 
! width="40" | ''P''
 
! width="40" | ''P''
! width="40" | ''V''
+
! width="80" | ''V''
 
|}
 
|}
  
Line 14: Line 14:
  
 
* '''const UByte''' ''B'': Bank to retrieve value for decreasing, or zero if the amount is specified by a constant in ''V''.
 
* '''const UByte''' ''B'': Bank to retrieve value for decreasing, or zero if the amount is specified by a constant in ''V''.
* '''const UByte''' ''P'': Party member to whose MP will decrease (0 to 2).
+
* '''const UByte''' ''P'': Party member whose MP will decrease (0 to 2).
 
* '''const UShort''' ''V'': Value to decrease MP by, or address to retrieve value from if ''B'' is non-zero.
 
* '''const UShort''' ''V'': Value to decrease MP by, or address to retrieve value from if ''B'' is non-zero.
  

Latest revision as of 05:16, 23 May 2019

  • Opcode: 0x47
  • Short name: MPd
  • Long name: MP Down

Memory layout

0x47 B P V

Arguments

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

Description

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