# Set Upgrade Level For Player

Grammar — Set upgrade upgrade level to levels|Level for player p
FlagsAction

Gives a player an upgrade to the level specified.

# Arguments

  • int — Player
  • string<gamelink::Upgrade> — Upgrade
  • int — Level

Returns — void

void libNtve_gf_SetUpgradeLevelForPlayer(
	int lp_p,
	string lp_upgrade,
	int lp_levels,
);

Category: Tech Tree / Individual Restrictions

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:370

            autoB959900B_var = PlayerGroupNextPlayer(autoB959900B_g, autoB959900B_var);
            if (autoB959900B_var < 0) { break; }
            libNtve_gf_SetUpgradeLevelForPlayer(autoB959900B_var, lp_upgrade, lp_qty);
        }
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:546

            lv_p = PlayerGroupNextPlayer(autoCF713103_g, lv_p);
            if (lv_p < 0) { break; }
            libNtve_gf_SetUpgradeLevelForPlayer(lv_p, lp_upgrade, lp_qty);
        }
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:436


    libCamp_gf_SetTechRestrictionsCallback(TriggerGetCurrent());
    libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_ORLAN_ENEMY, "SiegeTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_p03_MIRA_HAN, "SiegeTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_p04_DOMINION, "PersonalCloaking", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:437

    libCamp_gf_SetTechRestrictionsCallback(TriggerGetCurrent());
    libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_ORLAN_ENEMY, "SiegeTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_p03_MIRA_HAN, "SiegeTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_p04_DOMINION, "PersonalCloaking", 1);
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:438

    libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_ORLAN_ENEMY, "SiegeTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_p03_MIRA_HAN, "SiegeTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_p04_DOMINION, "PersonalCloaking", 1);
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:1052


    if ((libNtve_gf_DifficultyValueInt(0, 0, 1, 1) == 1)) {
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranInfantryWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranVehicleWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p05_ZERG_LAB_SPECIMENS, "ZergMeleeWeaponsLevel1", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:1053

    if ((libNtve_gf_DifficultyValueInt(0, 0, 1, 1) == 1)) {
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranInfantryWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranVehicleWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p05_ZERG_LAB_SPECIMENS, "ZergMeleeWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p06_PROTOSS_LAB_SPECIMENS, "ProtossGroundWeaponsLevel1", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:1054

        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranInfantryWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranVehicleWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p05_ZERG_LAB_SPECIMENS, "ZergMeleeWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p06_PROTOSS_LAB_SPECIMENS, "ProtossGroundWeaponsLevel1", 1);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:1055

        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranVehicleWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p05_ZERG_LAB_SPECIMENS, "ZergMeleeWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p06_PROTOSS_LAB_SPECIMENS, "ProtossGroundWeaponsLevel1", 1);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:1059


    if ((libNtve_gf_DifficultyValueInt(0, 0, 0, 1) == 1)) {
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranInfantryArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranVehicleArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p05_ZERG_LAB_SPECIMENS, "ZergGroundArmorsLevel1", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:1060

    if ((libNtve_gf_DifficultyValueInt(0, 0, 0, 1) == 1)) {
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranInfantryArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranVehicleArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p05_ZERG_LAB_SPECIMENS, "ZergGroundArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p06_PROTOSS_LAB_SPECIMENS, "ProtossGroundArmorsLevel1", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:1061

        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranInfantryArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranVehicleArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p05_ZERG_LAB_SPECIMENS, "ZergGroundArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p06_PROTOSS_LAB_SPECIMENS, "ProtossGroundArmorsLevel1", 1);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:1062

        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranVehicleArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p05_ZERG_LAB_SPECIMENS, "ZergGroundArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p06_PROTOSS_LAB_SPECIMENS, "ProtossGroundArmorsLevel1", 1);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:4230

    }

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel1", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel2", 1);
    TriggerEnable(gt_P3ThorReleased, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:4231


    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel1", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel2", 1);
    TriggerEnable(gt_P3ThorReleased, true);
    TriggerEnable(gt_P3ThorKilled, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:4254

    }

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel2", 0);
    TriggerEnable(gt_P3ThorReleased, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:4255


    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel2", 0);
    TriggerEnable(gt_P3ThorReleased, false);
    TriggerEnable(gt_P3ThorKilled, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:4278

    }

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel2", 0);
    TriggerEnable(gt_P3ThorReleased, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:4279


    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel2", 0);
    TriggerEnable(gt_P3ThorReleased, false);
    TriggerEnable(gt_P3ThorKilled, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:756

    // Implementation
    if ((lp_level >= 1)) {
        libNtve_gf_SetUpgradeLevelForPlayer(lp_player, "TerranInfantryArmorsLevel1", 1);
    }
    else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:759

    }
    else {
        libNtve_gf_SetUpgradeLevelForPlayer(lp_player, "TerranInfantryArmorsLevel1", 0);
    }
    if ((lp_level >= 2)) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:762

    }
    if ((lp_level >= 2)) {
        libNtve_gf_SetUpgradeLevelForPlayer(lp_player, "TerranInfantryArmorsLevel2", 1);
    }
    else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:765

    }
    else {
        libNtve_gf_SetUpgradeLevelForPlayer(lp_player, "TerranInfantryArmorsLevel2", 0);
    }
    if ((lp_level >= 1)) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:768

    }
    if ((lp_level >= 1)) {
        libNtve_gf_SetUpgradeLevelForPlayer(lp_player, "TerranInfantryArmorsLevel3", 1);
    }
    else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:771

    }
    else {
        libNtve_gf_SetUpgradeLevelForPlayer(lp_player, "TerranInfantryArmorsLevel3", 0);
    }
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:359

            lv_p = PlayerGroupNextPlayer(auto04CF1353_g, lv_p);
            if (lv_p < 0) { break; }
            libNtve_gf_SetUpgradeLevelForPlayer(lv_p, lp_upgrade, lp_qty);
        }
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:1452

        auto2329AB65_var = PlayerGroupNextPlayer(auto2329AB65_g, auto2329AB65_var);
        if (auto2329AB65_var < 0) { break; }
        libNtve_gf_SetUpgradeLevelForPlayer(auto2329AB65_var, "Burrow", 1);
        TechTreeUpgradeAddLevel(auto2329AB65_var, "ZergMeleeWeaponsLevel1", libNtve_gf_DifficultyValueInt(0, 0, 1, 1));
        TechTreeUpgradeAddLevel(auto2329AB65_var, "ZergMissileWeaponsLevel1", libNtve_gf_DifficultyValueInt(0, 0, 0, 1));

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:584

    ObjectiveDestroy(gv_objectiveEconomySilver);
    ObjectiveDestroy(gv_objectiveEconomyGold);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "SiegeTech", 0);
    TimerWindowDestroy(gv_mainTimerWindow);
    TriggerEnable(gt_ObjectiveEconomyComplete, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:537

    TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("TemporalRift", 0), true);
    TechTreeUpgradeAllow(gv_pLAYER_USER, "PsiStormTech", true);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "PsiStormTech", 1);
    TechTreeUpgradeAllow(gv_pLAYER_USER, "haltech", true);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "haltech", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:539

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "PsiStormTech", 1);
    TechTreeUpgradeAllow(gv_pLAYER_USER, "haltech", true);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "haltech", 1);
    TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationArchon", 0), true);
    TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationColossus", 0), true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:555

    TechTreeBehaviorAllow(gv_pLAYER_USER, "Charging", true);
    TechTreeBehaviorAllow(gv_pLAYER_USER, "Charging", true);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "Charge", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "BlinkTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "VoidRaySpeedUpgrade", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:556

    TechTreeBehaviorAllow(gv_pLAYER_USER, "Charging", true);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "Charge", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "BlinkTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "VoidRaySpeedUpgrade", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "ExtendedThermalLance", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:557

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "Charge", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "BlinkTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "VoidRaySpeedUpgrade", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "ExtendedThermalLance", 1);
    TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("Mergeable", 0), true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:558

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "BlinkTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "VoidRaySpeedUpgrade", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "ExtendedThermalLance", 1);
    TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("Mergeable", 0), true);
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:1179

    TriggerExecute(gt_PylonsInvulnerable, true, false);
    TriggerExecute(gt_PlayerUnitsRound2, true, false);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_COMPUTER2, "SiegeTech", 0);
    gf_SpawnEnemyUnitsForArea1(10, "Thor", RegionFromId(2));
    gf_SpawnEnemyUnitsForArea2(6, "SiegeTank", RegionFromId(4));

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:1257

    AIAttackWaveSend(gv_pLAYER_COMPUTER2, 0, true);
    Wait(3.0, c_timeGame);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_COMPUTER2, "SiegeTech", 1);
    while (!((UnitGroupCount(gv_enemyAttackersB, c_unitCountAlive) == 0) && (UnitGroupCount(gv_enemyAttackersD, c_unitCountAlive) == 0))) {
        Wait(0.5, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:1261

        Wait(0.5, c_timeGame);
    }
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_COMPUTER2, "SiegeTech", 0);
    Wait(2.0, c_timeGame);
    CinematicFade(false, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:1360

    TriggerExecute(gt_PylonsInvulnerable, true, false);
    TriggerExecute(gt_PlayerUnitsRound3, true, false);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_COMPUTER2, "SiegeTech", 0);
    gf_SpawnEnemyUnitsForArea1(1, "Battlecruiser", RegionFromId(6));
    gf_SpawnEnemyUnitsForArea1(5, "VikingFighter", RegionFromId(9));

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1434

    }

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranBuildingArmor", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel2", 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1435


    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranBuildingArmor", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel2", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel3", 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1436

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranBuildingArmor", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel2", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel3", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel1", 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1437

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel2", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel3", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel2", 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1438

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel2", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel3", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel2", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel3", 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1439

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel3", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel2", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel3", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranShipArmorsLevel1", 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1440

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel2", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel3", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranShipArmorsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranShipArmorsLevel2", 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1441

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel2", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel3", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranShipArmorsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranShipArmorsLevel2", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranShipArmorsLevel3", 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1442

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel3", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranShipArmorsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranShipArmorsLevel2", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranShipArmorsLevel3", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranShipWeaponsLevel1", 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1443

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranShipArmorsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranShipArmorsLevel2", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranShipArmorsLevel3", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranShipWeaponsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranShipWeaponsLevel2", 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:554

    TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("Corruption", 0), true);
    TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("CreepTumorBuild", 0), false);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "Burrow", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "OrganicCarapace", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TunnelingClaws", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:555

    TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("CreepTumorBuild", 0), false);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "Burrow", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "OrganicCarapace", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TunnelingClaws", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "GlialReconstitution", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:556

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "Burrow", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "OrganicCarapace", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TunnelingClaws", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "GlialReconstitution", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "NeuralParasite", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:557

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "OrganicCarapace", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TunnelingClaws", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "GlialReconstitution", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "NeuralParasite", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "zerglingattackspeed", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:558

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TunnelingClaws", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "GlialReconstitution", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "NeuralParasite", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "zerglingattackspeed", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "zerglingmovementspeed", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:559

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "GlialReconstitution", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "NeuralParasite", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "zerglingattackspeed", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "zerglingmovementspeed", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "AnabolicSynthesis", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:560

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "NeuralParasite", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "zerglingattackspeed", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "zerglingmovementspeed", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "AnabolicSynthesis", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "ChitinousPlating", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:561

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "zerglingattackspeed", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "zerglingmovementspeed", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "AnabolicSynthesis", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "ChitinousPlating", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "hydraliskspeed", 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:562

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "zerglingmovementspeed", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "AnabolicSynthesis", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "ChitinousPlating", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "hydraliskspeed", 1);
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:563

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "AnabolicSynthesis", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "ChitinousPlating", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "hydraliskspeed", 1);
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2mapMapScript.galaxy:370

            autoB959900B_var = PlayerGroupNextPlayer(autoB959900B_g, autoB959900B_var);
            if (autoB959900B_var < 0) { break; }
            libNtve_gf_SetUpgradeLevelForPlayer(autoB959900B_var, lp_upgrade, lp_qty);
        }
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2mapMapScript.galaxy:546

            lv_p = PlayerGroupNextPlayer(autoCF713103_g, lv_p);
            if (lv_p < 0) { break; }
            libNtve_gf_SetUpgradeLevelForPlayer(lv_p, lp_upgrade, lp_qty);
        }
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:436


    libCamp_gf_SetTechRestrictionsCallback(TriggerGetCurrent());
    libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_ORLAN_ENEMY, "SiegeTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_p03_MIRA_HAN, "SiegeTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_p04_DOMINION, "PersonalCloaking", 1);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:437

    libCamp_gf_SetTechRestrictionsCallback(TriggerGetCurrent());
    libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_ORLAN_ENEMY, "SiegeTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_p03_MIRA_HAN, "SiegeTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_p04_DOMINION, "PersonalCloaking", 1);
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner02.sc2mapMapScript.galaxy:438

    libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_ORLAN_ENEMY, "SiegeTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_p03_MIRA_HAN, "SiegeTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_p04_DOMINION, "PersonalCloaking", 1);
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:1052


    if ((libNtve_gf_DifficultyValueInt(0, 0, 1, 1) == 1)) {
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranInfantryWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranVehicleWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p05_ZERG_LAB_SPECIMENS, "ZergMeleeWeaponsLevel1", 1);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:1053

    if ((libNtve_gf_DifficultyValueInt(0, 0, 1, 1) == 1)) {
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranInfantryWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranVehicleWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p05_ZERG_LAB_SPECIMENS, "ZergMeleeWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p06_PROTOSS_LAB_SPECIMENS, "ProtossGroundWeaponsLevel1", 1);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:1054

        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranInfantryWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranVehicleWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p05_ZERG_LAB_SPECIMENS, "ZergMeleeWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p06_PROTOSS_LAB_SPECIMENS, "ProtossGroundWeaponsLevel1", 1);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:1055

        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranVehicleWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p05_ZERG_LAB_SPECIMENS, "ZergMeleeWeaponsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p06_PROTOSS_LAB_SPECIMENS, "ProtossGroundWeaponsLevel1", 1);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:1059


    if ((libNtve_gf_DifficultyValueInt(0, 0, 0, 1) == 1)) {
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranInfantryArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranVehicleArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p05_ZERG_LAB_SPECIMENS, "ZergGroundArmorsLevel1", 1);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:1060

    if ((libNtve_gf_DifficultyValueInt(0, 0, 0, 1) == 1)) {
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranInfantryArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranVehicleArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p05_ZERG_LAB_SPECIMENS, "ZergGroundArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p06_PROTOSS_LAB_SPECIMENS, "ProtossGroundArmorsLevel1", 1);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:1061

        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranInfantryArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranVehicleArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p05_ZERG_LAB_SPECIMENS, "ZergGroundArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p06_PROTOSS_LAB_SPECIMENS, "ProtossGroundArmorsLevel1", 1);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:1062

        libNtve_gf_SetUpgradeLevelForPlayer(gv_p02_DOMINION, "TerranVehicleArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p05_ZERG_LAB_SPECIMENS, "ZergGroundArmorsLevel1", 1);
        libNtve_gf_SetUpgradeLevelForPlayer(gv_p06_PROTOSS_LAB_SPECIMENS, "ProtossGroundArmorsLevel1", 1);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2mapMapScript.galaxy:4230

    }

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel1", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel2", 1);
    TriggerEnable(gt_P3ThorReleased, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2mapMapScript.galaxy:4231


    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel1", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel2", 1);
    TriggerEnable(gt_P3ThorReleased, true);
    TriggerEnable(gt_P3ThorKilled, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2mapMapScript.galaxy:4254

    }

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel2", 0);
    TriggerEnable(gt_P3ThorReleased, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2mapMapScript.galaxy:4255


    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel2", 0);
    TriggerEnable(gt_P3ThorReleased, false);
    TriggerEnable(gt_P3ThorKilled, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2mapMapScript.galaxy:4278

    }

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel2", 0);
    TriggerEnable(gt_P3ThorReleased, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2mapMapScript.galaxy:4279


    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER01_USER, "TerranVehicleArmorsVanadiumPlatingLevel2", 0);
    TriggerEnable(gt_P3ThorReleased, false);
    TriggerEnable(gt_P3ThorKilled, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:756

    // Implementation
    if ((lp_level >= 1)) {
        libNtve_gf_SetUpgradeLevelForPlayer(lp_player, "TerranInfantryArmorsLevel1", 1);
    }
    else {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:759

    }
    else {
        libNtve_gf_SetUpgradeLevelForPlayer(lp_player, "TerranInfantryArmorsLevel1", 0);
    }
    if ((lp_level >= 2)) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:762

    }
    if ((lp_level >= 2)) {
        libNtve_gf_SetUpgradeLevelForPlayer(lp_player, "TerranInfantryArmorsLevel2", 1);
    }
    else {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:765

    }
    else {
        libNtve_gf_SetUpgradeLevelForPlayer(lp_player, "TerranInfantryArmorsLevel2", 0);
    }
    if ((lp_level >= 1)) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:768

    }
    if ((lp_level >= 1)) {
        libNtve_gf_SetUpgradeLevelForPlayer(lp_player, "TerranInfantryArmorsLevel3", 1);
    }
    else {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:771

    }
    else {
        libNtve_gf_SetUpgradeLevelForPlayer(lp_player, "TerranInfantryArmorsLevel3", 0);
    }
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:359

            lv_p = PlayerGroupNextPlayer(auto04CF1353_g, lv_p);
            if (lv_p < 0) { break; }
            libNtve_gf_SetUpgradeLevelForPlayer(lv_p, lp_upgrade, lp_qty);
        }
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:1452

        auto2329AB65_var = PlayerGroupNextPlayer(auto2329AB65_g, auto2329AB65_var);
        if (auto2329AB65_var < 0) { break; }
        libNtve_gf_SetUpgradeLevelForPlayer(auto2329AB65_var, "Burrow", 1);
        TechTreeUpgradeAddLevel(auto2329AB65_var, "ZergMeleeWeaponsLevel1", libNtve_gf_DifficultyValueInt(0, 0, 1, 1));
        TechTreeUpgradeAddLevel(auto2329AB65_var, "ZergMissileWeaponsLevel1", libNtve_gf_DifficultyValueInt(0, 0, 0, 1));

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/economy.sc2mapMapScript.galaxy:584

    ObjectiveDestroy(gv_objectiveEconomySilver);
    ObjectiveDestroy(gv_objectiveEconomyGold);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "SiegeTech", 0);
    TimerWindowDestroy(gv_mainTimerWindow);
    TriggerEnable(gt_ObjectiveEconomyComplete, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:537

    TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("TemporalRift", 0), true);
    TechTreeUpgradeAllow(gv_pLAYER_USER, "PsiStormTech", true);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "PsiStormTech", 1);
    TechTreeUpgradeAllow(gv_pLAYER_USER, "haltech", true);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "haltech", 1);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:539

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "PsiStormTech", 1);
    TechTreeUpgradeAllow(gv_pLAYER_USER, "haltech", true);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "haltech", 1);
    TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationArchon", 0), true);
    TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("HallucinationColossus", 0), true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:555

    TechTreeBehaviorAllow(gv_pLAYER_USER, "Charging", true);
    TechTreeBehaviorAllow(gv_pLAYER_USER, "Charging", true);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "Charge", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "BlinkTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "VoidRaySpeedUpgrade", 1);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:556

    TechTreeBehaviorAllow(gv_pLAYER_USER, "Charging", true);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "Charge", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "BlinkTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "VoidRaySpeedUpgrade", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "ExtendedThermalLance", 1);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:557

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "Charge", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "BlinkTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "VoidRaySpeedUpgrade", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "ExtendedThermalLance", 1);
    TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("Mergeable", 0), true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:558

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "BlinkTech", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "VoidRaySpeedUpgrade", 1);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "ExtendedThermalLance", 1);
    TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("Mergeable", 0), true);
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:1179

    TriggerExecute(gt_PylonsInvulnerable, true, false);
    TriggerExecute(gt_PlayerUnitsRound2, true, false);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_COMPUTER2, "SiegeTech", 0);
    gf_SpawnEnemyUnitsForArea1(10, "Thor", RegionFromId(2));
    gf_SpawnEnemyUnitsForArea2(6, "SiegeTank", RegionFromId(4));

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:1257

    AIAttackWaveSend(gv_pLAYER_COMPUTER2, 0, true);
    Wait(3.0, c_timeGame);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_COMPUTER2, "SiegeTech", 1);
    while (!((UnitGroupCount(gv_enemyAttackersB, c_unitCountAlive) == 0) && (UnitGroupCount(gv_enemyAttackersD, c_unitCountAlive) == 0))) {
        Wait(0.5, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:1261

        Wait(0.5, c_timeGame);
    }
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_COMPUTER2, "SiegeTech", 0);
    Wait(2.0, c_timeGame);
    CinematicFade(false, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:1360

    TriggerExecute(gt_PylonsInvulnerable, true, false);
    TriggerExecute(gt_PlayerUnitsRound3, true, false);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_COMPUTER2, "SiegeTech", 0);
    gf_SpawnEnemyUnitsForArea1(1, "Battlecruiser", RegionFromId(6));
    gf_SpawnEnemyUnitsForArea1(5, "VikingFighter", RegionFromId(9));

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2mapMapScript.galaxy:1434

    }

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranBuildingArmor", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel2", 0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2mapMapScript.galaxy:1435


    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranBuildingArmor", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel2", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel3", 0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2mapMapScript.galaxy:1436

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranBuildingArmor", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel2", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel3", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel1", 0);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2mapMapScript.galaxy:1437

    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel2", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryArmorsLevel3", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel1", 0);
    libNtve_gf_SetUpgradeLevelForPlayer(gv_pLAYER_USER, "TerranInfantryWeaponsLevel2", 0);