delitem

Script Reference Items

delitem (character ; item ; inventory) //Beginner

Used for : Characters, Items.

Parameters :

- character - Name or a character in your game.
- item - Name of an item.
- inventory - Optional : Inventory 1-5

Description :

Deletes an item from an inventory. Instead of a charactername you can also enter "off". The off-inventory is not bound to a character and will be used when no character is focused. Optionally you can choose between 5 inventories every character can have. The default inventory is the first. To switch between these inventories use showinventory.

Instead of an itemname you can use "givelink". This will select the last item that called a givelink command.

[Variabels] can be used as parameters. "Self" can be used as a character to select the currently focused character.