-------- Events --------
Select an event to see a description.
Abort()
Occurs when execution is about to stop.
ConfigChanged()
Occurs when the configuration data has changed.
ConfigEdit()
Occurs when the configuration is about to be modified by the user.
This event is mostly used to push data into the current configuration before it can be exported.
Continue()
Occurs when the execution is about to resume.
Fire(Sender)
Occurs when a unit is about to fire a missile to its target.
Sender: the unit firing the missile.
Impact(Range, Sender, Target, Weapon)
Occurs when a missile hit the ground or hit its target.
Range: Distance from the impact location of the missile.
Sender: The unit originator of the missile.
Target: The unit affected by the explosion of the missile.
Weapon: The weapon used by the attacking unit to fire the missile.
NewMap()
Occurs each time a new map is created with the script generation option.
NewTurn(TurnCount)
Occurs when a new turn has started.
TurnCount: The current turn number.
Pause()
Occurs when execution has been suspended.
Run()
Occurs just before the execution starts.
SelectAttacker(TeamUnits, ActionCount)
Occurs whenever the current action designates a team. This team must in turn choose one or several attacking units. This only occurs in Turn-Based run modes.
TeamUnits: the attacking team.
ActionCount: Tells how many times the team already attacked during the current action.
SelectTarget(Unit, Targets)
Occurs whenever a unit must choose a target and the configuration requires this choice to be done in the script.
Unit: The attacking unit, ready to send a missile.
Targets: A list of units reachable by the attacker with its current weapon.
Sequence(TurnCount)
Allows custom actions to be launched by the configuration script.
TurnCount: The current turn number.
UnitEliminated(Unit)
Indicates that a unit has been eliminated.
Unit: The unit just eliminated from the scene.
UnitGaugeChange(Unit, gIndex)
Occurs whenever a unit gauge changes. Exception: This event is not fired when the option "Do not raise events for normal gauge evolution" is checked.
Unit: The unit whose gauge has changed.
gIndex: The index of the gauge.
.