Osiris/API/ItemTemplateAddTo: Difference between revisions

From Divinity Engine Wiki
Jump to navigation Jump to search
(Document ItemTemplateAddTo)
 
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
* call '''ItemTemplateAddTo'''(''(STRING)'''''_ItemTemplate''', ''(GUIDSTRING)'''''_Object''',''(INTEGER)'''''_Count''', (INTEGER)_ShowNotification)
* call '''ItemTemplateAddTo'''(''(STRING)'''''_ItemTemplate''', ''(GUIDSTRING)'''''_Object''',''(INTEGER)'''''_Count''', (INTEGER)_ShowNotification)
===== Description =====
===== Description =====
Adds '''_Count''' instances of the root template '''_ItemTemplate''' to '''_Object'''. '''_TargetObject''' can either be a character or a container object. If '''_ShowNotification''' is '''1''' and '''_Object''' is a player, an animation of the item's icon moving towards the player icon in the player list will be shown.
Adds '''_Count''' instances of the root template '''_ItemTemplate''' to '''_Object'''. '''_Object''' can either be a character or a container object. If '''_ShowNotification''' is '''1''' and '''_Object''' is a player, an animation of the item's icon moving towards the player icon in the player list will be shown.
===== Notes =====
===== Notes =====
* /
* /
===== See Also =====
===== See Also =====
* [[Osiris/API/GetTemplate|GetTemplate]]
* [[Osiris/API/ItemAddedToCharacter|ItemAddedToCharacter]]
* [[Osiris/API/ItemToInventory|ItemToInventory]]
* Helper [[Osiris/Shared/DB_GiveTemplateFromNpcToPlayerDialogEvent|DB_GiveTemplateFromNpcToPlayerDialogEvent]]
* Helper [[Osiris/Shared/DB_GiveTemplateFromNpcToPlayerDialogEvent|DB_GiveTemplateFromNpcToPlayerDialogEvent]]
* Helper [[Osiris/Shared/DB_GiveTemplateFromPlayerDialogEvent|DB_GiveTemplateFromPlayerDialogEvent]]
* Helper [[Osiris/Shared/DB_GiveTemplateFromPlayerDialogEvent|DB_GiveTemplateFromPlayerDialogEvent]]
   
   
[[Category:Osiris Calls]]
[[Category:Osiris Calls|ItemTemplateAddTo]]

Latest revision as of 09:52, 19 August 2018

Full Definition(s)
  • call ItemTemplateAddTo((STRING)_ItemTemplate, (GUIDSTRING)_Object,(INTEGER)_Count, (INTEGER)_ShowNotification)
Description

Adds _Count instances of the root template _ItemTemplate to _Object. _Object can either be a character or a container object. If _ShowNotification is 1 and _Object is a player, an animation of the item's icon moving towards the player icon in the player list will be shown.

Notes
  • /
See Also