Difference between revisions of "EVENT TYPE DIALOGUE"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(split out of event)
 
(formatting)
Line 1: Line 1:
*<b>Sent When:</b> An object tries to initiate dialog with the object receiving the event, either by clicking or by scripting
+
{{event
*<b>Sent From:</b> engine (clicking on object to talk) or scripts (manually sending this event)
+
|when= An object tries to initiate dialog with the object receiving the event, either by clicking or by scripting
*<b>Sent To:</b> creatures, placeables
+
|from= engine (clicking on object to talk) or scripts (manually sending this event)
 
+
|to= creatures, placeables
Parameters:
+
|creatorname = oInitiator
*<b>Creator:</b> Initiating object
+
|creatordesc= Initiating object
*<b>String 0:</b> Dialog to initiate, "" to use default object dialog
+
|string0name= sDialog
 +
|string0desc= Dialog to initiate, "" to use default object dialog
 +
}}
  
 
[[Category:Event types|DIALOGUE]]
 
[[Category:Event types|DIALOGUE]]
 
[[Category:Conversations]]
 
[[Category:Conversations]]

Revision as of 17:41, 24 July 2009

Source:
[Undocumented]
Sent when:
An object tries to initiate dialog with the object receiving the event, either by clicking or by scripting
Sent from:
engine (clicking on object to talk) or scripts (manually sending this event)
Sent to:
creatures, placeables
Parameters:
  • Creator: Initiating object
  • String 0: Dialog to initiate, "" to use default object dialog

Usage

case EVENT_TYPE_DIALOGUE:
{
object oInitiator = GetEventCreator(ev); // Initiating object
string sDialog = GetEventString(ev, 0); // Dialog to initiate, "" to use default object dialog

// insert event-handling code here

break;
}