Osiris/Shared/DB GiveNewItemFromTemplateEvent

From Divinity Engine Wiki
Revision as of 18:10, 27 August 2017 by Tinkerer (talk | contribs) (Created page with "===== Full Definition(s) ===== * '''DB_DB_GiveNewItemFromTemplateEvent'''(''(STRING)'''''_template''',''(STRING)'''''_event''') ===== Description ===== Defining this database...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • DB_DB_GiveNewItemFromTemplateEvent((STRING)_template,(STRING)_event)
Description

Defining this database means that if the character/object flag _event gets set on a character, a new instance of the root template _template will be created and transferred to said character's inventory.

Notes
  • This is useful to create an item out of thin air and and transfer it to a character (either a player or an NPC) in a dialog.
  • Only use this with root templates of items.
  • Right-click on a root template and select Copy TypeGUID_Name_GUID to clipboard to obtain the value for the _template parameter.
See Also