Jump to content

PrerequisiteOverride

From ModEnc²
Revision as of 17:22, 6 July 2005 by 195.92.168.165 (talk) (sorry)
Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: PrerequisiteOverride
File(s): rules.ini/rulesmd.ini
Values: list of Strings (BuildingTypes)
Special Values: none
Default: empty string (no BuildingType)
Applicable to: All unit types (Infantry/Vehicle/Building/Aircraft)


PrerequisiteOverride stores a list of BuildingType prerequisites. If any one of the entries in the list is owned by a player then the player is allowed to begin building the unit that has the PrerequisiteOverride flag.

For example:

  • [THEMPARK]
  • Prerequisite=GAREFN,POWER
  • PrerequisiteOverride=GATECH

A player can build the "THEMPARK" if they have satisfied one of the following conditions:

  1. They own at least one Allied Ore Refinery and at least one building from the PrerequisitePower= group.
  2. They own at least one Allied Battle Lab.

The PrerequisiteOverride allows the player to build the "THEMPARK" without having to own an Ore Refinery or Power Plant, as long as they own a Battle Lab.


Important note: unlike Prerequisite, PrerequisiteOverride CANNOT have a Prerequisite Group value.


PrerequisiteOverride only accepts a list of actual BuildingTypes.


See also: Prerequisite, PrerequisiteGroups