Difference between revisions of "Osiris/Shared/DB AD Dialog"

From Divinity Engine Wiki
Jump to: navigation, search
m
m
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
* '''DB_AD_Dialog'''(''(GUIDSTRING)'''''_Item''',''(STRING)'''''_Dialog''')
 
* '''DB_AD_Dialog'''(''(GUIDSTRING)'''''_Item''',''(STRING)'''''_Dialog''')
 
* '''DB_AD_Dialog'''(''(GUIDSTRING)'''''_Char''',''(STRING)'''''_Dialog''')
 
* '''DB_AD_Dialog'''(''(GUIDSTRING)'''''_Char''',''(STRING)'''''_Dialog''')
* '''DB_Dialogs'''(''(GUIDSTRING)'''''_Char1''',''(GUIDSTRING)'''''_Char1''',''(STRING)'''''_Dialog''')
+
* '''DB_AD_Dialog'''(''(GUIDSTRING)'''''_Char1''',''(GUIDSTRING)'''''_Char2''',''(STRING)'''''_Dialog''')
 
===== Description =====
 
===== Description =====
In case of the item, defines that the automated dialog with the name '''_Dialog''' should be started when a player [[Osiris/API/CharacterUsedItem|uses]] '''_Item'''.
+
In case of the item, defines that the [[Dialog_editor#Automated|automated dialog]] with the name '''_Dialog''' should be started when a character [[Osiris/API/CharacterUsedItem|uses]] '''_Item'''.
  
 
In case of the characters, defines that the automated dialog with the name '''_Dialog''' should be started when [[Osiris/Shared/PROC_GLOBAL_DialogStartRequested|PROC_GLOBAL_DialogStartRequested]] gets called for any of the specified NPCs, and with the specified NPCs as participants.
 
In case of the characters, defines that the automated dialog with the name '''_Dialog''' should be started when [[Osiris/Shared/PROC_GLOBAL_DialogStartRequested|PROC_GLOBAL_DialogStartRequested]] gets called for any of the specified NPCs, and with the specified NPCs as participants.
  
In all cases, the AD will only include the objects specified in the '''DB_AD_Dialogs()''' declaration as speakers; the player is never added as a speaker.
+
In all cases, the AD will only include the objects specified in the '''DB_AD_Dialogs()''' declaration as speakers; the initiating character is never added as a speaker (unless it happens to be one of the specified objects/speakers).
 
===== Notes =====
 
===== Notes =====
* An automated dialog is a dialog whose text appears over the heads of the involved objects, that progresses automatically, and that does not involve any interactive player answers.
+
* Automated/interactive dialogs are explained on the [[Dialog_editor#Dialog_Categories|Dialog Editor]] page.
 
* Any dialog can also be started directly from Osiris with [[Osiris/Shared/Proc_StartDialog|Proc_StartDialog]].
 
* Any dialog can also be started directly from Osiris with [[Osiris/Shared/Proc_StartDialog|Proc_StartDialog]].
* See [[Dialog_editor|Dialog editor]] for information about creating dialogs.
 
 
===== See Also =====
 
===== See Also =====
 
* [[Osiris/API/CharacterUsedItem|CharacterUsedItem]]
 
* [[Osiris/API/CharacterUsedItem|CharacterUsedItem]]
Line 23: Line 22:
 
* Helper [[Osiris/Shared/ProcRemoveNPCADs|ProcRemoveNPCADs]]
 
* Helper [[Osiris/Shared/ProcRemoveNPCADs|ProcRemoveNPCADs]]
 
   
 
   
[[Category:Osiris Shared Mod Helpers]]
+
[[Category:Osiris Shared Mod Helpers|AD_Dialog]]

Latest revision as of 15:48, 19 December 2017

Full Definition(s)
  • DB_AD_Dialog((GUIDSTRING)_Item,(STRING)_Dialog)
  • DB_AD_Dialog((GUIDSTRING)_Char,(STRING)_Dialog)
  • DB_AD_Dialog((GUIDSTRING)_Char1,(GUIDSTRING)_Char2,(STRING)_Dialog)
Description

In case of the item, defines that the automated dialog with the name _Dialog should be started when a character uses _Item.

In case of the characters, defines that the automated dialog with the name _Dialog should be started when PROC_GLOBAL_DialogStartRequested gets called for any of the specified NPCs, and with the specified NPCs as participants.

In all cases, the AD will only include the objects specified in the DB_AD_Dialogs() declaration as speakers; the initiating character is never added as a speaker (unless it happens to be one of the specified objects/speakers).

Notes
  • Automated/interactive dialogs are explained on the Dialog Editor page.
  • Any dialog can also be started directly from Osiris with Proc_StartDialog.
See Also