PrerequisiteOverride: Difference between revisions
No edit summary |
mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{flag|name=PrerequisiteOverride|files=rules.ini/rulesmd.ini|values=list of Strings (BuildingTypes) | {{flag|name=PrerequisiteOverride|files=rules.ini/rulesmd.ini|values=list of Strings (BuildingTypes)|default=empty string (no BuildingType)|types=All unit types (Infantry/Vehicle/Building/Aircraft)|ra2=yes|yr=yes|rp=yes}} | ||
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 (includes being garrisoned or mind-controlled) by a player then the player is allowed to begin building the unit that has the PrerequisiteOverride flag. | ||
For example: | For example: | ||
Line 11: | Line 11: | ||
A player can build the "THEMPARK" if they have satisfied one of the following conditions: | A player can build the "THEMPARK" if they have satisfied one of the following conditions: | ||
*They own at least one Allied Ore Refinery and at least one building from the PrerequisitePower= group. | |||
*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. | 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. | ||
Line 18: | Line 18: | ||
It should be noted that unlike Prerequisite, PrerequisiteOverride CANNOT have a Prerequisite Group value. PrerequisiteOverride only accepts a list of actual BuildingTypes. | 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. | 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.<br> | ||
See also: [[Prerequisite]], [[PrerequisiteGroups]] | See also: [[Prerequisite]], [[PrerequisiteGroups]] | ||
==Note== | |||
*Note that the <b>Prerequisite Override</b> tag ignores the [[RequiredHouses]],[[ForbiddenHouses]][[RequiresStolenAlliedTech]],[[RequiresStolenSovietTech]],[[RequiresStolenThirdTech]] tags.<br> | |||
[[Category:INI Flags]] | [[Category:INI Flags]] | ||
[[Category:rules(md).ini Flags]] | [[Category:rules(md).ini Flags]] |
Latest revision as of 13:53, 26 September 2024
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Flag: | PrerequisiteOverride |
File(s): | rules.ini/rulesmd.ini |
Values: | list of Strings (BuildingTypes) |
Default: | empty string (no BuildingType) |
Applicable to: | All unit types (Infantry/Vehicle/Building/Aircraft) |
Warning: | There are 1 numbered subpages of this page. These pages should all be merged into this page. |
PrerequisiteOverride stores a list of BuildingType prerequisites. If any one of the entries in the list is owned (includes being garrisoned or mind-controlled) 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:
- They own at least one Allied Ore Refinery and at least one building from the PrerequisitePower= group.
- 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
Note
- Note that the Prerequisite Override tag ignores the RequiredHouses,ForbiddenHousesRequiresStolenAlliedTech,RequiresStolenSovietTech,RequiresStolenThirdTech tags.