# Enable/Disable SpecificTech Tree Requirements

GrammarisEnabled|Enable/Disable tech tree requirements for requirementName for player p
FlagsNative | Action

Enables or disables a specific tech requirement for the specified player.

# Arguments

  • int — Player
  • string<gamelink::Requirement> — Requirement Name
  • bool<preset::Enable_Disable_Option> — Enabled

Returns — void

native void TechTreeSpecificRequirementEnable(
	int player,
	string requirementName,
	bool enable,
);

Category: Tech Tree / Individual Restrictions

# Examples

campaigns/void.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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);