Difference between revisions of "EVENT TYPE DIALOGUE"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) (formatting) |
BryanDerksen (Talk | contribs) m (remove redundant categories) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{event | {{event | ||
+ | |sourcefile=script.ldf | ||
|when= An object tries to initiate dialog with the object receiving the event, either by clicking or by scripting | |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) | |from= engine (clicking on object to talk) or scripts (manually sending this event) | ||
|to= creatures, placeables | |to= creatures, placeables | ||
+ | |tocategory1=creature | ||
+ | |tocategory2=placeable | ||
+ | |sortkey=DIALOGUE | ||
|creatorname = oInitiator | |creatorname = oInitiator | ||
|creatordesc= Initiating object | |creatordesc= Initiating object | ||
Line 8: | Line 12: | ||
|string0desc= Dialog to initiate, "" to use default object dialog | |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;
}
{
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;
}