Osiris/Shared/DB Dialogs: Difference between revisions

From Divinity Engine Wiki
Jump to navigation Jump to search
m (Specify this is for non-automated dialogs, replace reference to DialogStartRequested with PROC_GLOBAL_DialogStartRequested, mention Proc_StartDialog, link DB_AD_Dialog)
mNo edit summary
Line 19: Line 19:
* Helper [[Osiris/Shared/PROC_GLOBAL_DialogStartRequested|PROC_GLOBAL_DialogStartRequested]]
* Helper [[Osiris/Shared/PROC_GLOBAL_DialogStartRequested|PROC_GLOBAL_DialogStartRequested]]
* Helper [[Osiris/Shared/PROC_GLOBAL_DialogStartRequested_AfterGenerics|PROC_GLOBAL_DialogStartRequested_AfterGenerics]]
* Helper [[Osiris/Shared/PROC_GLOBAL_DialogStartRequested_AfterGenerics|PROC_GLOBAL_DialogStartRequested_AfterGenerics]]
* Helper [[Osiris/Shared/Proc_StartDialog|Proc_StartDialog]]
* Helper [[Osiris/Shared/ProcRemoveAllDialogEntriesForSpeaker|ProcRemoveAllDialogEntriesForSpeaker]]
* Helper [[Osiris/Shared/ProcRemoveAllDialogEntriesForSpeaker|ProcRemoveAllDialogEntriesForSpeaker]]
   
   
[[Category:Osiris Shared Mod Helpers]]
[[Category:Osiris Shared Mod Helpers]]

Revision as of 19:11, 17 October 2017

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 non-automated dialog with the name _Dialog should be started when when PROC_GLOBAL_DialogStartRequested gets called for any of the specified NPCs, and 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.
  • Any dialog can also be started directly from Osiris with Proc_StartDialog.
  • See Dialog editor for information about creating dialogs.
See Also