Removeitemat¶
Remove an Item by its inventory type and its index in that inventory which may come from ItemList's listoption
.
Syntax¶
(1) (Remove the item at ItemList's listoption
)
|removeitemat,type|
(2)
|removeitemat,type,index|
Parameters¶
type
: int¶
The inventory type of the Item to remove. This must be a valid inventory type or an exception will be thrown. The valid values are 0 for standard items, 1 for key items and 2 for stored items.
index
: int | v
int | var
int | opt
¶
The index to remove the item at or a flagvar slot containing it. The int form must be a valid index in the type
inventory type array or an exception will be thrown. The v
/var
prefix means the int porition is a flagvar slot containing the index and it must be a valid one or an exception will be thrown. opt
is equivalent to syntax (1) which will use ItemList's listoption
instead.
Remarks¶
If the ItemList is in multi selection, this command does nothing.
Using syntax (1) implies that an ItemList has been confirmed in single selection and this command is used as handler.