Script Reference Items

additem (character ; item ; inventory) //Beginner

Used for : Characters, Items.

Parameters :

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

Description :

Adds an item to an inventory. If "group items" is active same items will be stacked. Instead of a charactername you can also use "off" to add an item to the off-inventory. The off-inventory is not bound to a character and will be used when no character is focused. Optionally you can use 5 different inventories per character. You can switch between the inventories with showinventory.

Instead of an itemname you can also use "givelink". This means the last item that activated a givelink scriptcommand will be used.

[Variabels] can be used as parameters. "Self" can be used instead of a charactername to choose the currently focused character.