Other great resources: Official JS API docs, Scripting Forum
baseType
A constant defining what sort of bases players start with in the current game.
How is the Base Type set?
The base type is chosen when starting a new Skirmish or Multiplayer game:
If you are creating Challenge Games, use the "Bases" property in your ini file to set the Bases property to one of the "bases values" shown below.
Icon | Bases value | baseType value |
|---|---|---|
1 | ||
2 | ||
3 |
What effect does it have?
With the default game rules, the base type setting will determine:
Starting power for each player (same for all players)
Number of technologies gifted to each player (same for all players)
Which map-defined buildings will be removed (different for INSANE AIs and Scavenger faction)
AI players set to "Insane" difficultly level will not lose as many structures as other AI or human players.
Scavenger bases are not affected by the base type setting, they are controlled by the scavengers setting.
Using it in your scripts
Because the base type setting affects starting structures, power and research, AI scripts should adapt to the starting conditions caused by different base types. For example, build orders and initial unit production should take advantage of pre-placed buildings and available droid components.