Difference between revisions of "Osiris/API/SetHasDialog"
From Divinity Engine Wiki
m |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
* call '''SetHasDialog'''(''(GUIDSTRING)'''''_Speaker''',(''INTEGER'')'''_Dialog''') | * call '''SetHasDialog'''(''(GUIDSTRING)'''''_Speaker''',(''INTEGER'')'''_Dialog''') | ||
===== Description ===== | ===== Description ===== | ||
− | If '''_Dialog '''is '''1''', defines that '''_Speaker''' can accept dialog requests. I.e., a player can click on the object and a | + | If '''_Dialog '''is '''1''', defines that '''_Speaker''' can accept dialog requests. I.e., a player can click on the object and a [[Osiris/API/DialogStartRequested|DialogStartRequested]] event will be sent to Osiris. Specifying '''0''' for '''_Dialog''' disables dialog requests. |
===== Notes ===== | ===== Notes ===== | ||
− | * If you define a dialog through the '''DB_Dialogs''' database, dialog requests are | + | * If you define a dialog through the '''DB_Dialogs''' database, dialog requests are automatically enabled for the defined speaker(s). |
===== See Also ===== | ===== See Also ===== | ||
* [[Osiris/API/DialogStartRequested|DialogStartRequested]] | * [[Osiris/API/DialogStartRequested|DialogStartRequested]] | ||
Line 10: | Line 10: | ||
* Helper [[Osiris/Shared/PROC GLOBAL DialogStartRequested|PROC GLOBAL DialogStartRequested]] | * Helper [[Osiris/Shared/PROC GLOBAL DialogStartRequested|PROC GLOBAL DialogStartRequested]] | ||
− | [[Category:Osiris Calls]] | + | [[Category:Osiris Calls|SetHasDialog]] |
Latest revision as of 10:43, 19 August 2018
Full Definition(s)
- call SetHasDialog((GUIDSTRING)_Speaker,(INTEGER)_Dialog)
Description
If _Dialog is 1, defines that _Speaker can accept dialog requests. I.e., a player can click on the object and a DialogStartRequested event will be sent to Osiris. Specifying 0 for _Dialog disables dialog requests.
Notes
- If you define a dialog through the DB_Dialogs database, dialog requests are automatically enabled for the defined speaker(s).
See Also
- DialogStartRequested
- Helper DB_Dialogs
- Helper PROC GLOBAL DialogStartRequested