Difference between revisions of "FF7/Field/Script/Opcodes/59 DLITM"
Jump to navigation
Jump to search
my_wiki>Synergy Blades |
m (3 revisions imported) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
! width="40" | 0x59 | ! width="40" | 0x59 | ||
! width="50" | ''B1 / B2'' | ! width="50" | ''B1 / B2'' | ||
− | ! width=" | + | ! width="80" | ''T'' |
! width="40" | ''A'' | ! width="40" | ''A'' | ||
|} | |} |
Latest revision as of 05:17, 23 May 2019
- Opcode: 0x59
- Short name: DLITM
- Long name: Delete Item
Memory layout
0x59 | B1 / B2 | T | 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: 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.