Difference between revisions of "EVENT TYPE COMBAT END"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (|sourcefile=events_h)
m (remove redundant category)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
|sourcefile=events_h
 
|sourcefile=events_h
 
|from=
 
|from=
|to=
+
|to=[[creature]]s
 +
|tocategory1=creature
 +
|sortkey=COMBAT_END
 
}}
 
}}
[[Category:Event types|COMBAT_END]]
+
 
 +
[[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.

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.