Difference between revisions of "NewCombat Script"

From HLKitWiki
Jump to: navigation, search
(New page: {{context|Kit Reference|Script Types}} ==Technical Details== :{| class="scripttable" |class="leftnormal"|Initial Context: |Pick |- |Alternate Context: |None |- |Fields F...)
Line 15: Line 15:
The Integrate script utilizes the following special symbols:
The NewCombat script utilizes the following special symbols:
:{| class="infotable"
:{| class="infotable"

Revision as of 04:08, 14 December 2008

Context: HL KitKit Reference … Script Types 

Technical Details

Initial Context: Pick
Alternate Context: None
Fields Finalized? No

The NewCombat script utilizes the following special symbols:

-None- There are no special symbols for a NewCombat script.


The NewCombat script is invoked whenever the user triggers the start of a new combat within the Tactical Console. Prior to the actual transition into combat mode, this script is applied to each actor. When invoked, the NewCombat script starts with the "actor" pick of each actor in the combat as its initial context (non-combatants are ignored). This allows the author to reset state for each actor prior to the new combat.


In various game systems, there is the notion of "waiting" or "holding an action". This state will persist for each actor after combat ends, so it needs to be reset at the start of combat.

herofield[acAbandon].value = 0