AddItem
Jump to navigation
Jump to search
Description[edit | edit source]
AddItem Adds Count items of object ObjectID to the calling container's inventory. It has two required parameters (the object to add and the quantity) and one optional parameter (whether to display a message on screen).
Syntax[edit | edit source]
[ActorID|ContainerID.]AddItem ObjectID, Count, MessageHiddenFlag
Examples[edit | edit source]
buddyref.additem FoodMead 11
Buddy now has 11 Meads
player.additem FoodMead 10
The player now has 10 Meads and message displays like normal
player.additem FoodMead 10 1
The player now has 10 Meads and no message would be displayed when these items are added
Notes[edit | edit source]
- You can use a FormList as the item parameter - in this case, the function adds the count for each item in the list.
See Also[edit | edit source]
Reference[edit | edit source]
None provided.