Osiris/API/StartDefaultDialog

From Divinity Engine Wiki
Revision as of 11:33, 1 November 2018 by Tinkerer (talk | contribs) (Documented StartDefaultDialog)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • query StartDefaultDialog([in](CHARACTERGUID)_Character, [in](CHARACTERGUID)_Player, [out](STRING)_Dialog, [out](INTEGER)_Automated)
Description

Tries to start the dialog assigned to _Character with _Character as first speaker and _Player as second speaker.

Return Values
  • Success/Failure: Fails if _Character or _Player are invalid, if no default dialog has been assigned to Character or it does not exist, or for any of the reasons that StartDialog_Internal may fail.
  • _Dialog: The name of the default dialog assigned to _Character.
  • _Automated: 1 if the returned dialog is an automated dialog, 0 if it is an interactive one.
Notes
  • The Shared mod automatically tries to start a character's default dialog if you click on them and no DB_Dialogs was defined for them and no other dialog was started for them in any other way.
  • _Player can also be another NPC if the dialog is automated.
See Also