Difference between revisions of "Osiris/API/ItemToInventory"

From Divinity Engine Wiki
Jump to: navigation, search
m (link ItemTemplateAddTo)
m
Line 2: Line 2:
 
* call '''ItemToInventory'''(''(ITEMGUID)'''''_Item''',''(GUIDSTRING)'''''_TargetObject''',''(INTEGER)'''''_Amount''')
 
* call '''ItemToInventory'''(''(ITEMGUID)'''''_Item''',''(GUIDSTRING)'''''_TargetObject''',''(INTEGER)'''''_Amount''')
 
===== Description =====
 
===== Description =====
Transfers '''_Amount''' instances of '''_Item''' to '''_TargetObject'''. '''_TargetObject''' can either be a character or a container object. This item, or stack of items, must already exist in the game world. You cannot specify a root template as '''_Item'''.
+
Transfers '''_Amount''' instances of '''_Item''' to '''_TargetObject'''. '''_TargetObject''' can either be a character or a container object. This item, or stack of items, must already exist in the game world. You cannot specify a root template as '''_Item''' (use [[Osiris/API/ItemTemplateAddTo|ItemTemplateAddTo]] instead in that case).
 
===== Notes =====
 
===== Notes =====
 
* /
 
* /

Revision as of 15:38, 8 October 2017

Full Definition(s)
  • call ItemToInventory((ITEMGUID)_Item,(GUIDSTRING)_TargetObject,(INTEGER)_Amount)
Description

Transfers _Amount instances of _Item to _TargetObject. _TargetObject can either be a character or a container object. This item, or stack of items, must already exist in the game world. You cannot specify a root template as _Item (use ItemTemplateAddTo instead in that case).

Notes
  • /
See Also