Difference between revisions of "EVENT TYPE COMBAT END"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (sort key)
m (remove redundant category)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
*<b>Sent When:</b> a creature doesn't perceive any more hostiles.
+
{{Needs review}}
*<b>Sent From:</b>
+
{{event
*<b>Sent To:</b>
+
|when=a creature doesn't perceive any more hostiles.
 +
|sourcefile=events_h
 +
|from=
 +
|to=[[creature]]s
 +
|tocategory1=creature
 +
|sortkey=COMBAT_END
 +
}}
  
Parameters:
+
[[creature_core]] handles this event. It checks if the creature is set to surrender (local int SURR_SURRENDER_ENABLED) and initiates dialogue if it is. It then uses the [[Rubber_GoHome]] function to send the creature back to its home location.
 
+
[[Category:Event types|COMBAT_END]]
+

Latest revision as of 00:48, 12 February 2010

The documentation on this page is incomplete, obsolete, or otherwise in need of a thorough review. The current content may provide a good starting point for this, but do not rely on its accuracy when using it to design content.

Source:
events_h
Sent when:
a creature doesn't perceive any more hostiles.
Sent from:
Sent to:
creatures
Parameters:
None.

Usage

case EVENT_TYPE_COMBAT_END:
{

// insert event-handling code here

break;
}
creature_core handles this event. It checks if the creature is set to surrender (local int SURR_SURRENDER_ENABLED) and initiates dialogue if it is. It then uses the Rubber_GoHome function to send the creature back to its home location.