Skip to content

Scripts

Mapping

Registers ordered team-mission lists containing up to fifty mission and argument pairs.

Format
Kind
Record
File
AI.INI, AIFS.INI, map file
Registered in
[ScriptTypes]
Section
[<Script ID>]
Record form
<slot>=<mission>,<argument>

Fields

#FieldAccepted valueRequired
1MissionTeam mission indexYes
2ArgumentInteger interpreted by the selected missionYes

[ScriptTypes] values name the Script sections to load. Each Script section accepts numbered mission lines 0 through 49.

OpenTS loads AI.INI, then AIFS.INI when Firestorm is enabled, then the map-local definitions.

AI.INI, AIFS.INI, or map file
[ScriptTypes]
0=MyAttackScript
[MyAttackScript]
Name=Attack nearest target
0=0,0

Lines load in slot order and pack together, so gaps in the numbered slots collapse. The selected team mission defines the meaning of its argument.

Accepted settings

1 of 1

KeyDescriptionValueWhen omitted
Name[<ObjectType ID>]The display name of a type definition, a scenario, a multiplayer map, or a musical score.stringComputed

Source files

Linked at revision 59fae722af8c.