Skip to content

Script

The Script whose team missions a team of this type carries out.

Specification
Applies to
TeamType
File
ai.ini or map file
Section
[<ObjectType ID>]
Value
class
When omitted
none

Each team built from this TeamType is given its own running copy of the named Script and works down its mission list one line at a time; when the list runs out, the team is deleted. Because the copy is per team, several teams of the same type run the same script independently.

ai.ini or map file
[MyRaidTeam] ; example TeamType
Name=Raid team
House=Nod
TaskForce=MyRaidForce ; defined under [TaskForces]
Script=MyRaidScript ; defined under [ScriptTypes]

The value is matched against the registered ScriptType IDs. <none> and none clear the reference outright, and a name that no [ScriptTypes] entry registers is not an error: a fresh ScriptType is registered under that name with no missions in it. A typo therefore produces an empty script rather than a missing one, and a team given an empty script is deleted the first time it tries to advance. A Reinforcement (team) is the exception: rather than let an empty script through, it writes an attack-waypoint mission into the ScriptType itself, permanently, for every later team of that type.