Osiris/Shared/DB Dialogs

From Divinity Engine Wiki
Revision as of 16:12, 9 September 2017 by Tinkerer (talk | contribs) (ProcRemoveAllDialogEntriesForSpeaker reference)
Jump to: navigation, search
Full Definition(s)
  • DB_Dialogs((GUIDSTRING)_Npc,(STRING)_Dialog)
  • DB_Dialogs((GUIDSTRING)_Npc,(GUIDSTRING)_Npc2,(STRING)_Dialog)
  • DB_Dialogs((GUIDSTRING)_Npc,(GUIDSTRING)_Npc2,(GUIDSTRING)_Npc3,(STRING)_Dialog)
  • DB_Dialogs((GUIDSTRING)_Npc,(GUIDSTRING)_Npc2,(GUIDSTRING)_Npc3,(GUIDSTRING)_Npc4,(STRING)_Dialog)
Description

Defines that the dialog with the name _Dialog should be started when a DialogRequestStarted event is fired, with the specified NPCs as participants (in addition to the player that initiated the request; the player will be the last speaker).

Notes
  • This is the default way to assign a dialog to a character.
  • If any of the specified NPCs is not available (e.g. dead), the dialog will not start (even if some of them are available).
  • Defining such a database will call SetHasDialog to enable dialog requests for all involved NPCs.
  • Removing DB_Dialogs() entries again must be done via ProcRemoveAllDialogEntriesForSpeaker. Simply undefining the DB_Dialogs() entry is not sufficient.
See Also