Changes
Jump to navigation
Jump to search
Created page with "* Opcode: '''0x5C''' * Short name: '''DMTRA''' * Long name: Delete Materia ==== Memory layout ==== {| style="border: 1px solid black; border-collapse: collapse" border="1"..."
* Long name: Delete Materia
==== Memory layout ==== {| style="border: 1px solid black; border-collapse: collapse" border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x5C
! width="50" | ''B1 / B2''
|}
==== Arguments ====
* '''const Bit[4]''' ''B1''<nowiki>: Source bank 1, or zero if </nowiki>''T'' 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''<nowiki>: Source bank 3, or zero if this unit of </nowiki>''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''<nowiki>: </nowiki>[[FF7/Field/Script/Materia IDMateria_ID|Type of materia]] to remove, or source address 1.* '''const UByte[3]''' ''AP''<nowiki>: Amount of AP the deleted materia must have, or source addresses 2, 3 and 4.</nowiki>* '''const UByte''' ''A''<nowiki>: Amount to delete.</nowiki>
==== 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 [[FF7/Debug RoomsDebug_Rooms|Debug Rooms]].