Changes
From Final Fantasy Inside
no edit summary
* Opcode: '''0x5C'''
* Short name: '''DMTRA'''
* Long name: Delete Materia
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x5C
! width="50" | ''B1 / B2''
! width="50" | ''B3 / B4''
! width="40" | ''T''
! width="120" | ''AP''
! width="40" | ''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'': [[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''' ''A'': Amount to delete.
==== Description ====
Deletes a quantity of materia with the given type and AP.
* Short name: '''DMTRA'''
* Long name: Delete Materia
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x5C
! width="50" | ''B1 / B2''
! width="50" | ''B3 / B4''
! width="40" | ''T''
! width="120" | ''AP''
! width="40" | ''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'': [[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''' ''A'': Amount to delete.
==== Description ====
Deletes a quantity of materia with the given type and AP.