<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://hlkitwiki.wolflair.com//index.php?action=history&amp;feed=atom&amp;title=EndCombat_Script</id>
	<title>EndCombat Script - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://hlkitwiki.wolflair.com//index.php?action=history&amp;feed=atom&amp;title=EndCombat_Script"/>
	<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=EndCombat_Script&amp;action=history"/>
	<updated>2026-05-05T18:11:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://hlkitwiki.wolflair.com//index.php?title=EndCombat_Script&amp;diff=2986&amp;oldid=prev</id>
		<title>Rob: Created page with &#039;{{context|Kit Reference|Script Types}}  ==Technical Details==  :{| class=&quot;scripttable&quot; |class=&quot;leftnormal&quot;|Initial Context: |Pick |- |Alternate Context: |None |-...&#039;</title>
		<link rel="alternate" type="text/html" href="https://hlkitwiki.wolflair.com//index.php?title=EndCombat_Script&amp;diff=2986&amp;oldid=prev"/>
		<updated>2009-05-12T08:18:20Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;{{context|Kit Reference|Script Types}}  ==Technical Details==  :{| class=&amp;quot;scripttable&amp;quot; |class=&amp;quot;leftnormal&amp;quot;|Initial Context: |&lt;a href=&quot;/index.php?title=Pick_Context&quot; title=&quot;Pick Context&quot;&gt;Pick&lt;/a&gt; |- |Alternate Context: |None |-...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{context|Kit Reference|Script Types}}&lt;br /&gt;
&lt;br /&gt;
==Technical Details==&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;scripttable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|Initial Context:&lt;br /&gt;
|[[Pick Context|Pick]]&lt;br /&gt;
|-&lt;br /&gt;
|Alternate Context:&lt;br /&gt;
|None&lt;br /&gt;
|-&lt;br /&gt;
|Fields Finalized?&lt;br /&gt;
|No&lt;br /&gt;
|-&lt;br /&gt;
|Where Used:&lt;br /&gt;
|[[Behavior Element (Data)|Definition File]]&lt;br /&gt;
|-&lt;br /&gt;
|Procedure Use:&lt;br /&gt;
|&amp;quot;endcombat&amp;quot; type, &amp;quot;pick&amp;quot; context&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The EndCombat script utilizes the following special symbols:&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;infotable&amp;quot;&lt;br /&gt;
|class=&amp;quot;leftnormal&amp;quot;|isfirst&lt;br /&gt;
|(Number) Entry: Non-zero if this script is being invoked for the first actor in the portfolio.&amp;lt;br&amp;gt;&lt;br /&gt;
Exit: Ignored.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
The EndCombat script is the counterpart of the NewCombat script and is invoked whenever the user triggers the end of a combat within the Tactical Console. When combat is ended, this script is applied to each actor. Like its counterpart, the EndCombat script starts with the &amp;quot;actor&amp;quot; pick of an actor in the combat as its initial context. It is invoked for all actors in the combat (non-combatants are ignored). This allows the author to reset state for each actor after combat completes.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
In various game systems, there is the notion of &amp;quot;waiting&amp;quot; or &amp;quot;holding an action&amp;quot;. This state will persist for each actor after combat ends, so it can be reset at the end of combat instead of at the start.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
herofield[acAbandon].value = 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rob</name></author>
	</entry>
</feed>