Difference between revisions of "AddItem"

37 bytes removed ,  13:52, 6 June 2006
no edit summary
imported>JOG
(You can use reference-variables for ObjectID !)
imported>JOG
Line 1: Line 1:
=='''Description'''==
Adds ''Count'' items of object ''ObjectID'' to the calling container's inventory.


Adds ''Count'' items of object ''ObjectID'' to the calling container's inventory.


<br>
'''Syntax:'''
=='''Syntax'''==
  AddItem ''ObjectID'', ''Count''  
  AddItem ''ObjectID'', ''Count''  


<br>
 
=='''Examples'''==
'''Examples:'''
  AddItem MyObject, 1
  AddItem MyObject, 1


Line 18: Line 16:
  player.additem MyItem Count
  player.additem MyItem Count


<br>
 
=='''Notes'''==
'''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:




==Reference==


[[AddItem_Reference|List of functions that use AddItem]] (wiki)
==See Also==
[[RemoveItem]]
 
[[AddItem_Reference|List of functions that use AddItem]]




[[Category: Functions]]
[[Category: Functions]]
[[Category: Object Functions]]
[[Category: Object Functions]]
Anonymous user