Airstrip with no biplane

dbergan

Warlord
Joined
Feb 27, 2006
Messages
152
Location
Sioux Falls, SD
Can anyone tell me how to do a requirement set that is satisfied when a plot is tested for an airstrip with no planes? Here's what I have so far:

Code:
-- (1) --
INSERT INTO Requirements (RequirementId, RequirementType) VALUES ("DBR_REQ_PLOT_HAS_AIRSTRIP", "REQUIREMENT_PLOT_IMPROVEMENT_TYPE_MATCHES") ;
INSERT INTO RequirementArguments (RequirementId, Name, Value, Type) VALUES ("DBR_REQ_PLOT_HAS_AIRSTRIP", "ImprovementType", "IMPROVEMENT_AIRSTRIP", "ARGTYPE_IDENTITY") ;

-- (2) --
INSERT INTO Requirements (RequirementId, RequirementType, Inverse) VALUES ("DBR_REQ_PLOT_HAS_NO_BIPLANE00", "REQUIREMENT_PLOT_ADJACENT_FRIENDLY_UNIT_TYPE_MATCHES", 1) ;
INSERT INTO RequirementArguments (RequirementId, Name, Value, Type) VALUES 
                                 ("DBR_REQ_PLOT_HAS_NO_BIPLANE", "UnitType", "UNIT_BIPLANE", "ARGTYPE_IDENTITY"),
                                 ("DBR_REQ_PLOT_HAS_NO_BIPLANE", "MinRange", 0, "ARGTYPE_IDENTITY"),
                                 ("DBR_REQ_PLOT_HAS_NO_BIPLANE", "MaxRange", 2, "ARGTYPE_IDENTITY") ;

-- (3) --
INSERT INTO RequirementSets (RequirementSetId, RequirementSetType) VALUES ("DBR_REQSET_PLOT_HAS_AIRSTRIP_NO_PLANES", "REQUIREMENTSET_TEST_ALL") ;
INSERT INTO RequirementSetRequirements (RequirementSetId, RequirementId) VALUES 
                                       ("DBR_REQSET_PLOT_HAS_AIRSTRIP_NO_PLANES", "DBR_REQ_PLOT_HAS_AIRSTRIP"),
                                       ("DBR_REQSET_PLOT_HAS_AIRSTRIP_NO_PLANES", "DBR_REQ_PLOT_HAS_NO_BIPLANE"),

According to Firetuner, section (1) is fine. But section (2) doesn't toggle with/without the biplane on the airstrip... just stays "Met".

Thanks.

Kind regards,
DB
 
Back
Top Bottom