Difference between revisions of "FF7/Field/Script/Opcodes/5C DMTRA"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Synergy Blades
m (5 revisions imported)
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
* Long name: Delete Materia
 
* Long name: Delete Materia
  
==== Memory layout ====
+
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
+
 
 +
{| style="border: 1px solid black; border-collapse: collapse" border="1" cellspacing="1" cellpadding="3"
 
! width="40" | 0x5C
 
! width="40" | 0x5C
 
! width="50" | ''B1 / B2''
 
! width="50" | ''B1 / B2''
Line 13: Line 14:
 
|}
 
|}
  
==== Arguments ====
+
==== Arguments ====
  
* '''const Bit[4]''' ''B1'': Source bank 1, or zero if ''T'' is set as a constant value.
+
* '''const Bit[4]''' ''B1''<nowiki>: Source bank 1, or zero if </nowiki>''T'' is set as a constant value.
* '''const Bit[4]''' ''B2'': Source bank 2, or zero if this unit of ''AP'' is set as a constant value.
+
* '''const Bit[4]''' ''B2''<nowiki>: Source bank 2, or zero if this unit of </nowiki>''AP'' is set as a constant value.
* '''const Bit[4]''' ''B3'': Source bank 3, or zero if this unit of ''AP'' is set as a constant value.
+
* '''const Bit[4]''' ''B3''<nowiki>: Source bank 3, or zero if this unit of </nowiki>''AP'' is set as a constant value.
* '''const Bit[4]''' ''B4'': Source bank 4, or zero if this unit of ''AP'' is set as a constant value.
+
* '''const Bit[4]''' ''B4''<nowiki>: Source bank 4, or zero if this unit of </nowiki>''AP'' is set as a constant value.
* '''const UByte''' ''T'': [[FF7/Field/Script/Materia ID|Type of materia]] to remove, or source address 1.
+
* '''const UByte''' ''T''<nowiki>: </nowiki>[[FF7/Field/Script/Materia_ID|Type of materia]] to remove, or source address 1.
* '''const UByte[3]''' ''AP'': Amount of AP the deleted materia must have, or source addresses 2, 3 and 4.
+
* '''const UByte[3]''' ''AP''<nowiki>: Amount of AP the deleted materia must have, or source addresses 2, 3 and 4. </nowiki>
* '''const UByte''' ''A'': Amount to delete.
+
* '''const UByte''' ''A''<nowiki>: Amount to delete. </nowiki>
  
==== Description ====
+
==== Description ====
  
 
Deletes a quantity of materia with the given type and AP.
 
Deletes a quantity of materia with the given type and AP.
  
==== Important Note ====
+
==== Important Note ====
  
This opcode does not appear to function correctly in the PC version of the game.
+
This opcode does not appear to function correctly in the PC version of the game. In addition, it is only used once, in the [[FF7/Debug_Rooms|Debug Rooms]].

Latest revision as of 05:17, 23 May 2019

  • Opcode: 0x5C
  • Short name: DMTRA
  • Long name: Delete Materia

Memory layout

0x5C B1 / B2 B3 / B4 T AP A

Arguments

  • const Bit[4] B1: Source bank 1, or zero if T is set as a constant value.
  • const Bit[4] B2: Source bank 2, or zero if this unit of AP is set as a constant value.
  • const Bit[4] B3: Source bank 3, or zero if this unit of AP is set as a constant value.
  • const Bit[4] B4: Source bank 4, or zero if this unit of AP is set as a constant value.
  • const UByte T: Type of materia to remove, or source address 1.
  • const UByte[3] AP: Amount of AP the deleted materia must have, or source addresses 2, 3 and 4.
  • const UByte A: Amount to delete.

Description

Deletes a quantity of materia with the given type and AP.

Important Note

This opcode does not appear to function correctly in the PC version of the game. In addition, it is only used once, in the Debug Rooms.