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

Difference between revisions of "The Prerequisite System"

From ModEnc
Jump to: navigation, search
(Added TechLevel/Secret Lab)
(Added Prereq Groups)
Line 19: Line 19:
 
: Checks if the house has at least one structure with {{TTL|Factory}} matching the object's type.
 
: Checks if the house has at least one structure with {{TTL|Factory}} matching the object's type.
 
:: '''Note:''' For VehicleTypes, it also checks if said Factory has the same {{TTL|Naval}} setting as the object in question. If it doesn't, the object is removed from the Units tab, and, if that tab is open, the view jumps to the top of it. This is known as the [[New Construction Options]] Bug.
 
:: '''Note:''' For VehicleTypes, it also checks if said Factory has the same {{TTL|Naval}} setting as the object in question. If it doesn't, the object is removed from the Units tab, and, if that tab is open, the view jumps to the top of it. This is known as the [[New Construction Options]] Bug.
 +
 +
 +
==Prerequisite Groups==
 +
 +
A "prerequisite group" refers to a list of structures, and any single one of them is sufficient to fulfill the "prerequisite group". The following "prerequisite groups" are valid:
 +
* POWER (corresponds to {{TTL|PrerequisitePower}})
 +
* PROC (corresponds to {{TTL|PrerequisiteProc}} and {{TTL|PrerequisiteProcAlternate}} (YR only))
 +
* BARRACKS (corresponds to {{TTL|PrerequisiteBarracks}})
 +
* FACTORY (corresponds to {{TTL|PrerequisiteFactory}})
 +
* RADAR (corresponds to {{TTL|PrerequisiteRadar}})
 +
* TECH (corresponds to {{TTL|PrerequisiteTech}})
 +
 +
In Firestorm, two additional groups were available:
 +
 +
* GDIFACTORY (corresponds to {{TTL|PrerequisiteGDIFactory}})
 +
* NODFACTORY (corresponds to {{TTL|PrerequisiteNodFactory}})

Revision as of 15:50, 21 June 2006

The Prerequisite System controls the conditions required to build a certain object. Those conditions include:

Is this object's TechLevel valid?
Checks if the TechLevel of the object is above -1 and below [[[:Template:TTL]]] Template:TTL.
Can this house own this object?
Checks if the house is listed in Template:TTL.
Is this house not forbidden from owning this object?
Checks if the house is not listed in Template:TTL.
Is this house allowed to own this object?
Checks if the house is listed in Template:TTL.
Does this house own all the prerequisite structures?
Checks if the house owns the prerequisite structures listed in Template:TTL

If all the conditions are met, the house is allowed to build that object. Accompanied by the EVA_NewConstructionOptions sound.

Otherwise, if the house has at least one structure listed in Template:TTL or gains this object via Secret Lab, it gets that building even without fulfilling the other criteria.

Then an additional check takes place:

Does the house own the Template:TTL of the appropriate type?
Checks if the house has at least one structure with Template:TTL matching the object's type.
Note: For VehicleTypes, it also checks if said Factory has the same Template:TTL setting as the object in question. If it doesn't, the object is removed from the Units tab, and, if that tab is open, the view jumps to the top of it. This is known as the New Construction Options Bug.


Prerequisite Groups

A "prerequisite group" refers to a list of structures, and any single one of them is sufficient to fulfill the "prerequisite group". The following "prerequisite groups" are valid:

In Firestorm, two additional groups were available: