AddItem

DescriptionEdit

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).

SyntaxEdit

[ActorID|ContainerID.]AddItem ObjectID, Count, MessageHiddenFlag

ExamplesEdit

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

NotesEdit

  • You can use a FormList as the item parameter - in this case, the function adds the count for each item in the list.

See AlsoEdit

ReferenceEdit

None provided.

Papyrus VersionEdit

ObjectReference.AddItem (Papyrus)