Difference between revisions of "AddItem"
no edit summary
imported>JOG (You can use reference-variables for ObjectID !) |
imported>JOG |
||
Line 1: | Line 1: | ||
Adds ''Count'' items of object ''ObjectID'' to the calling container's inventory. | |||
'''Syntax:''' | |||
AddItem ''ObjectID'', ''Count'' | AddItem ''ObjectID'', ''Count'' | ||
'''Examples:''' | |||
AddItem MyObject, 1 | AddItem MyObject, 1 | ||
Line 18: | Line 16: | ||
player.additem MyItem Count | player.additem MyItem Count | ||
'''Notes:''' | |||
* You can use a [[Variable_types:_reference_variables|reference variable]] as ''ObjectID'' and a [[Variable_types:_shortint|short]] variable for ''count''. | * You can use a [[Variable_types:_reference_variables|reference variable]] as ''ObjectID'' and a [[Variable_types:_shortint|short]] variable for ''count''. | ||
Line 47: | Line 45: | ||
[[AddItem_Reference|List of functions that use AddItem]] | ==See Also== | ||
[[RemoveItem]] | |||
[[AddItem_Reference|List of functions that use AddItem]] | |||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: Object Functions]] | [[Category: Object Functions]] |