# Enable/Disable SpecificTech Tree Requirements
Grammar — isEnabled|Enable/Disable tech tree requirements for requirementName for player p
Flags —Native
|Action
Enables or disables a specific tech requirement for the specified player.
# Arguments
int
— Playerstring
<gamelink::Requirement> — Requirement Namebool
<preset::Enable_Disable_Option> — Enabled
Returns — void
native void TechTreeSpecificRequirementEnable(
int player,
string requirementName,
bool enable,
);
# Related
Category: Tech Tree / Individual Restrictions
- Specific Requirements Are Enabled For Player —
bool
— TechTreeSpecificRequirementEnabled - Enable/Disable SpecificTech Tree Requirements —
void
— TechTreeSpecificRequirementEnable - Allow/Disallow Behavior For Player —
void
— TechTreeBehaviorAllow - Allow/Disallow Ability For Player —
void
— TechTreeAbilityAllow - Allow/Disallow Unit For Player —
void
— TechTreeUnitAllow - Allow/Disallow Upgrade For Player —
void
— TechTreeUpgradeAllow - Ability Is Allowed For Player —
bool
— TechTreeAbilityIsAllowed - Behavior Is Allowed For Player —
bool
— TechTreeBehaviorIsAllowed - Unit Is Allowed For Player —
bool
— TechTreeUnitIsAllowed - Upgrade Is Allowed For Player —
bool
— TechTreeUpgradeIsAllowed - Add Upgrade Level For Player —
void
— TechTreeUpgradeAddLevel - Set Upgrade Level For Player —
void
— libNtve_gf_SetUpgradeLevelForPlayer - Set Production Cap For Player —
void
— TechTreeSetProduceCap - Production Cap For Player —
int
— TechTreeGetProduceCap
# Examples
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:5775
TechTreeAbilityAllow(gv_p01_USER, AbilityCommand("SupplyDepotLower", 0), false);
TechTreeAbilityAllow(gv_p01_USER, AbilityCommand("Stimpack", 0), false);
TechTreeSpecificRequirementEnable(gv_p01_USER, "HaveSupplyDepot", false);
PlayerModifyPropertyInt(gv_p01_USER, c_playerPropMinerals, c_playerPropOperSetTo, 50);
PlayerModifyPropertyInt(gv_p01_USER, c_playerPropVespene, c_playerPropOperSetTo, 0);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:1385
}
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveBanelingNest", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveSpawningPool", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveEvolutionChamber", false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:1386
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveBanelingNest", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveSpawningPool", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveBanelingNest2", false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:1387
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveBanelingNest", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveSpawningPool", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveBanelingNest2", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveHydraliskDen", false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:1388
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveSpawningPool", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveBanelingNest2", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveHydraliskDen", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveInfestationPit", false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:1389
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveBanelingNest2", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveHydraliskDen", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveInfestationPit", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveUltraliskCavern", false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:1390
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveBanelingNest2", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveHydraliskDen", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveInfestationPit", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveUltraliskCavern", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveLairAndEvolutionChamber", false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:1391
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveHydraliskDen", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveInfestationPit", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveUltraliskCavern", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveLairAndEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveBanelingNest", false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:1392
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveInfestationPit", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveUltraliskCavern", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveLairAndEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveBanelingNest", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveSpawningPool", false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:1393
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveUltraliskCavern", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveLairAndEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveBanelingNest", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveSpawningPool", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveEvolutionChamber", false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:1394
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveLairAndEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveBanelingNest", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveSpawningPool", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveRoachWarrenOrImpalerDen", false);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:5775
TechTreeAbilityAllow(gv_p01_USER, AbilityCommand("SupplyDepotLower", 0), false);
TechTreeAbilityAllow(gv_p01_USER, AbilityCommand("Stimpack", 0), false);
TechTreeSpecificRequirementEnable(gv_p01_USER, "HaveSupplyDepot", false);
PlayerModifyPropertyInt(gv_p01_USER, c_playerPropMinerals, c_playerPropOperSetTo, 50);
PlayerModifyPropertyInt(gv_p01_USER, c_playerPropVespene, c_playerPropOperSetTo, 0);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:1385
}
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveBanelingNest", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveSpawningPool", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveEvolutionChamber", false);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:1386
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveBanelingNest", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveSpawningPool", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveBanelingNest2", false);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:1387
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveBanelingNest", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveSpawningPool", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveBanelingNest2", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveHydraliskDen", false);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:1388
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveSpawningPool", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveBanelingNest2", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveHydraliskDen", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveInfestationPit", false);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:1389
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveBanelingNest2", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveHydraliskDen", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveInfestationPit", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveUltraliskCavern", false);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:1390
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveBanelingNest2", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveHydraliskDen", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveInfestationPit", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveUltraliskCavern", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveLairAndEvolutionChamber", false);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:1391
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveHydraliskDen", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveInfestationPit", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveUltraliskCavern", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveLairAndEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveBanelingNest", false);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:1392
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveInfestationPit", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveUltraliskCavern", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveLairAndEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveBanelingNest", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveSpawningPool", false);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:1393
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveUltraliskCavern", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveLairAndEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveBanelingNest", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveSpawningPool", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveEvolutionChamber", false);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:1394
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION, "HaveLairAndEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveBanelingNest", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveSpawningPool", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveEvolutionChamber", false);
TechTreeSpecificRequirementEnable(gv_pLAYER_02_DOMINION2, "HaveRoachWarrenOrImpalerDen", false);