Difference between revisions of "EVENT TYPE DIALOGUE"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(split out of event)
 
m (remove redundant categories)
 
(4 intermediate revisions by 2 users not shown)
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)
+
|sourcefile=script.ldf
*<b>Sent To:</b> creatures, placeables
+
|when= An object tries to initiate dialog with the object receiving the event, either by clicking or by scripting
 
+
|from= engine (clicking on object to talk) or scripts (manually sending this event)
Parameters:
+
|to= creatures, placeables
*<b>Creator:</b> Initiating object
+
|tocategory1=creature
*<b>String 0:</b> Dialog to initiate, "" to use default object dialog
+
|tocategory2=placeable
 
+
|sortkey=DIALOGUE
[[Category:Event types|DIALOGUE]]
+
|creatorname = oInitiator
[[Category:Conversations]]
+
|creatordesc= Initiating object
 +
|string0name= sDialog
 +
|string0desc= Dialog to initiate, "" to use default object dialog
 +
}}

Latest revision as of 00:53, 12 February 2010

Source:
script.ldf
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;
}