Skip to content

Prerequisite

The structures a house must own before the type appears on its build list.

Specification
Applies to
AircraftTypeBuildingTypeInfantryTypeUnitType
File
rules.ini
Section
[<ObjectType ID>]
Value
list of BuildingTypes
When omitted
(empty)

Every entry must be satisfied at once. An entry naming a BuildingType requires at least one live structure of exactly that type; the tally counts a structure from the moment it is placed rather than when its buildup finishes, and keeps counting one that has been switched off.

Seven reserved names stand for a group instead, each satisfied by owning anything on the matching rules list: POWER, FACTORY, BARRACKS, RADAR, TECH, GDIFACTORY and NODFACTORY. Prerequisites maps them to their lists and covers the separate rule an entry naming an upgrade follows.

rules.ini
[MYTANK] ; example UnitType
Prerequisite=FACTORY,MYRADAR
; FACTORY: any structure on the PrerequisiteFactory list
; MYRADAR: example radar BuildingType, required by its own ID

Names are matched without regard to case; an entry matching neither a group name nor a BuildingType ID is dropped, and only the first 127 characters of the value are read. A computer house is not put through this test when it produces — its base planning runs its own check over the same key when deciding what to place.

See alsoproduction