Difference between revisions of "EVENT TYPE COMBAT END"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(formatting)
m (remove redundant category)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Needs review}}
 
{{Needs review}}
 
 
{{event
 
{{event
 
|when=a creature doesn't perceive any more hostiles.
 
|when=a creature doesn't perceive any more hostiles.
 +
|sourcefile=events_h
 
|from=
 
|from=
|to=
+
|to=[[creature]]s
|creatorname=
+
|tocategory1=creature
|creatordesc=
+
|sortkey=COMBAT_END
|int0name=
+
|int0desc=
+
|int1name=
+
|int1desc=
+
|int2name=
+
|int2desc=
+
|float0name=
+
|float0desc=
+
|float1name=
+
|float1desc=
+
|float2name=
+
|float2desc=
+
|string0name=
+
|string0desc=
+
|string1name=
+
|string1desc=
+
|string2name=
+
|string2desc=
+
|object0name=
+
|object0desc=
+
|object1name=
+
|object1desc=
+
|object2name=
+
|object2desc=
+
 
}}
 
}}
[[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.