Osiris/Shared/DB GiveTemplateFromNpcToPlayerDialogEvent

From Divinity Engine Wiki
Revision as of 13:37, 8 October 2017 by Tinkerer (talk | contribs) (DB_GiveTemplateFromNpcToPlayerDialogEvent documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • DB_GiveTemplateFromNpcToPlayerDialogEvent((STRING)_template, (STRING)_event, (STRING)_success,)
Description

Defining this database means that if the character/object flag _event gets set on an NPC while it is in a dialog, this NPC will attempt to transfer one instance of an item with the root template _template to the first player in that dialog. If it succeeds (= if the NPC had such an item in its inventory), the flag _success will be set on that NPC. Otherwise nothing happens.

Notes

/

See Also