Scripting: Game constants

This page lists the “constants” you can use for the enemy, cohort and invasion types.
They are all defined in the Tools.cs file that’s in the same folder as all scenarios.

Invasion types

Invasion typeProgram code
Raid – invaders leave if 10% of buildings are destroyedeInvasionType.kRaid
Pillagers – same as raideInvasionType.kPillagers
Invasion – conquesteInvasionType.kInvasion

Enemy factions

FactionProgram code
CarthaginiansInvasionFactions.kCarthaginian
GaulsInvasionFactions.kGaul
GermaniansInvasionFactions.kGermanian
GreeksInvasionFactions.kGreek
ParthiansInvasionFactions.kParthian
RomansInvasionFactions.kRoman

Cohort types

Cohort typeProgram code
Carthaginian
Heavy infantrysCohortDbIDs.kCarth_Hvy
Light infantrysCohortDbIDs.kCarth_Lt
CavalrysCohortDbIDs.kCarth_Cav
Missile auxiliasCohortDbIDs.kCarth_Aux
CatapultsCohortDbIDs.kCarth_Catapult
Gaul
Heavy infantrysCohortDbIDs.kGaul_Hvy
Light infantrysCohortDbIDs.kGaul_Lt
CavalrysCohortDbIDs.kGaul_Cav
Missile auxiliasCohortDbIDs.kGaul_Aux
CatapultsCohortDbIDs.kGaul_Catapult
Germanian
Heavy infantrysCohortDbIDs.kGerm_Hvy
Light infantrysCohortDbIDs.kGerm_Lt
CavalrysCohortDbIDs.kGerm_Cav
Missile auxiliasCohortDbIDs.kGerm_Aux
CatapultsCohortDbIDs.kGerm_Catapult
Battering ramsCohortDbIDs.kGerm_Ram
Greek
Heavy infantrysCohortDbIDs.kGreek_Hvy
Light infantrysCohortDbIDs.kGreek_Lt
CavalrysCohortDbIDs.kGreek_Cav
Missile auxiliasCohortDbIDs.kGreek_Aux
CatapultsCohortDbIDs.kGreek_Catapult
Parthian
Heavy infantrysCohortDbIDs.kParth_Hvy
Light infantrysCohortDbIDs.kParth_Lt
CavalrysCohortDbIDs.kParth_Cav
Missile auxiliasCohortDbIDs.kParth_Aux
CatapultsCohortDbIDs.kParth_Catapult
Roman (Caesar’s forces)
Heavy infantry“ENEMY_ROMAN” (including quotes!)
Catapult“ENEMY_ROMAN_CATAPULT” (including quotes!)

< Previous: scripting invasions | Editor Home | Next: debugging with Visual Studio >