ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Difference between revisions of "PrerequisiteOverride"

From ModEnc
Jump to: navigation, search
m (Cross-categories, wee)
Line 2: Line 2:
  
 
PrerequisiteOverride stores a list of BuildingType prerequisites.
 
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.
+
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:
 
For example:
Line 16: Line 16:
 
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.
 
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.
  
 +
It should be noted that unlike Prerequisite, PrerequisiteOverride CANNOT have a Prerequisite Group value. PrerequisiteOverride only accepts a list of actual BuildingTypes.
  
Important note: unlike Prerequisite, PrerequisiteOverride CANNOT have a Prerequisite Group value.
+
You can easily grant extra units to sides that don't normally have them with this tag. Indeed even in the unmodded game, SEALs are granted by the Pentagon pieces, Yuri Clones by the Kremlin and Chronolegionnaires  by the Smithsonian. Since this is so easy though, tech trees can get mixed and players build units to which their country doesn't normally own. Just be warned; It can and has led to [[NCO]] bug issues.
 
 
 
 
PrerequisiteOverride only accepts a list of actual BuildingTypes.
 
 
 
  
 
See also: [[Prerequisite]], [[PrerequisiteGroups]]
 
See also: [[Prerequisite]], [[PrerequisiteGroups]]

Revision as of 10:07, 9 February 2006

Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
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.

It should be noted that unlike Prerequisite, PrerequisiteOverride CANNOT have a Prerequisite Group value. PrerequisiteOverride only accepts a list of actual BuildingTypes.

You can easily grant extra units to sides that don't normally have them with this tag. Indeed even in the unmodded game, SEALs are granted by the Pentagon pieces, Yuri Clones by the Kremlin and Chronolegionnaires by the Smithsonian. Since this is so easy though, tech trees can get mixed and players build units to which their country doesn't normally own. Just be warned; It can and has led to NCO bug issues.

See also: Prerequisite, PrerequisiteGroups