Changes
Jump to navigation
Jump to search
no edit summary
* Opcode: '''0x59'''
* Short name: '''DLITM'''
* Long name: Delete Item
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x59
! width="50" | ''B1 / B2''
! width="40" | ''T''
! 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 ''A'' is set as a constant value.
* '''const UShort''' ''T'': [[FF7/Field/Script/Item ID|Type of item]] to delete, or source address to retrieve item type from.
* '''const UByte''' ''A'': Amount of item to remove, or source address to retrieve item quantity from.
==== Description ====
Removes a quantity of an item from the inventory. Either the item is removed explicitly with values, in which case ''B1'' and ''B2'' are zero, or the item type and quantity are retrieved from memory. In this case, bank ''B1'' and address ''T'' retrieve the item type, whilst bank ''B2'' and address ''A'' retrieve the quantity to remove.
* Short name: '''DLITM'''
* Long name: Delete Item
==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0x59
! width="50" | ''B1 / B2''
! width="40" | ''T''
! 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 ''A'' is set as a constant value.
* '''const UShort''' ''T'': [[FF7/Field/Script/Item ID|Type of item]] to delete, or source address to retrieve item type from.
* '''const UByte''' ''A'': Amount of item to remove, or source address to retrieve item quantity from.
==== Description ====
Removes a quantity of an item from the inventory. Either the item is removed explicitly with values, in which case ''B1'' and ''B2'' are zero, or the item type and quantity are retrieved from memory. In this case, bank ''B1'' and address ''T'' retrieve the item type, whilst bank ''B2'' and address ''A'' retrieve the quantity to remove.