# Triggering Progress Unit

Grammar — Triggering progress unit
FlagsNative | Function

Returns the triggering progress unit. Used in response to “Unit Arming Progress”, “Unit Construction Progress”, “Unit Learn Progress”, “Unit Research Progress”, “Unit Revive Progress”, “Unit Specialization Progress”, or “Unit Training Progress”.

Returns — unit

native unit EventUnitProgressUnit();

# Supported triggers

Category: Unit / Progress And Queues

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2802

    // Conditions
    if (testConds) {
        if (!((UnitGetOwner(EventUnitProgressUnit()) == gv_pLAYER04_PURIFIER))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2812

    }

    if (((UnitGetType(EventUnitProgressUnit()) == "Zealot") || (UnitGetType(EventUnitProgressUnit()) == "Stalker") || (UnitGetType(EventUnitProgressUnit()) == "Sentry") || (UnitGetType(EventUnitProgressUnit()) == "Immortal") || (UnitGetType(EventUnitProgressUnit()) == "HighTemplar") || (UnitGetType(EventUnitProgressUnit()) == "Archon") || (UnitGetType(EventUnitProgressUnit()) == "Scout") || (UnitGetType(EventUnitProgressUnit()) == "Phoenix") || (UnitGetType(EventUnitProgressUnit()) == "VoidRay") || (UnitGetType(EventUnitProgressUnit()) == "Carrier"))) {
        UnitGroupAdd(gv_terrorFleetGroup, EventUnitProgressUnit());
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2812

    }

    if (((UnitGetType(EventUnitProgressUnit()) == "Zealot") || (UnitGetType(EventUnitProgressUnit()) == "Stalker") || (UnitGetType(EventUnitProgressUnit()) == "Sentry") || (UnitGetType(EventUnitProgressUnit()) == "Immortal") || (UnitGetType(EventUnitProgressUnit()) == "HighTemplar") || (UnitGetType(EventUnitProgressUnit()) == "Archon") || (UnitGetType(EventUnitProgressUnit()) == "Scout") || (UnitGetType(EventUnitProgressUnit()) == "Phoenix") || (UnitGetType(EventUnitProgressUnit()) == "VoidRay") || (UnitGetType(EventUnitProgressUnit()) == "Carrier"))) {
        UnitGroupAdd(gv_terrorFleetGroup, EventUnitProgressUnit());
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2812

    }

    if (((UnitGetType(EventUnitProgressUnit()) == "Zealot") || (UnitGetType(EventUnitProgressUnit()) == "Stalker") || (UnitGetType(EventUnitProgressUnit()) == "Sentry") || (UnitGetType(EventUnitProgressUnit()) == "Immortal") || (UnitGetType(EventUnitProgressUnit()) == "HighTemplar") || (UnitGetType(EventUnitProgressUnit()) == "Archon") || (UnitGetType(EventUnitProgressUnit()) == "Scout") || (UnitGetType(EventUnitProgressUnit()) == "Phoenix") || (UnitGetType(EventUnitProgressUnit()) == "VoidRay") || (UnitGetType(EventUnitProgressUnit()) == "Carrier"))) {
        UnitGroupAdd(gv_terrorFleetGroup, EventUnitProgressUnit());
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2812

    }

    if (((UnitGetType(EventUnitProgressUnit()) == "Zealot") || (UnitGetType(EventUnitProgressUnit()) == "Stalker") || (UnitGetType(EventUnitProgressUnit()) == "Sentry") || (UnitGetType(EventUnitProgressUnit()) == "Immortal") || (UnitGetType(EventUnitProgressUnit()) == "HighTemplar") || (UnitGetType(EventUnitProgressUnit()) == "Archon") || (UnitGetType(EventUnitProgressUnit()) == "Scout") || (UnitGetType(EventUnitProgressUnit()) == "Phoenix") || (UnitGetType(EventUnitProgressUnit()) == "VoidRay") || (UnitGetType(EventUnitProgressUnit()) == "Carrier"))) {
        UnitGroupAdd(gv_terrorFleetGroup, EventUnitProgressUnit());
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2812

    }

    if (((UnitGetType(EventUnitProgressUnit()) == "Zealot") || (UnitGetType(EventUnitProgressUnit()) == "Stalker") || (UnitGetType(EventUnitProgressUnit()) == "Sentry") || (UnitGetType(EventUnitProgressUnit()) == "Immortal") || (UnitGetType(EventUnitProgressUnit()) == "HighTemplar") || (UnitGetType(EventUnitProgressUnit()) == "Archon") || (UnitGetType(EventUnitProgressUnit()) == "Scout") || (UnitGetType(EventUnitProgressUnit()) == "Phoenix") || (UnitGetType(EventUnitProgressUnit()) == "VoidRay") || (UnitGetType(EventUnitProgressUnit()) == "Carrier"))) {
        UnitGroupAdd(gv_terrorFleetGroup, EventUnitProgressUnit());
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2812

    }

    if (((UnitGetType(EventUnitProgressUnit()) == "Zealot") || (UnitGetType(EventUnitProgressUnit()) == "Stalker") || (UnitGetType(EventUnitProgressUnit()) == "Sentry") || (UnitGetType(EventUnitProgressUnit()) == "Immortal") || (UnitGetType(EventUnitProgressUnit()) == "HighTemplar") || (UnitGetType(EventUnitProgressUnit()) == "Archon") || (UnitGetType(EventUnitProgressUnit()) == "Scout") || (UnitGetType(EventUnitProgressUnit()) == "Phoenix") || (UnitGetType(EventUnitProgressUnit()) == "VoidRay") || (UnitGetType(EventUnitProgressUnit()) == "Carrier"))) {
        UnitGroupAdd(gv_terrorFleetGroup, EventUnitProgressUnit());
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2812

    }

    if (((UnitGetType(EventUnitProgressUnit()) == "Zealot") || (UnitGetType(EventUnitProgressUnit()) == "Stalker") || (UnitGetType(EventUnitProgressUnit()) == "Sentry") || (UnitGetType(EventUnitProgressUnit()) == "Immortal") || (UnitGetType(EventUnitProgressUnit()) == "HighTemplar") || (UnitGetType(EventUnitProgressUnit()) == "Archon") || (UnitGetType(EventUnitProgressUnit()) == "Scout") || (UnitGetType(EventUnitProgressUnit()) == "Phoenix") || (UnitGetType(EventUnitProgressUnit()) == "VoidRay") || (UnitGetType(EventUnitProgressUnit()) == "Carrier"))) {
        UnitGroupAdd(gv_terrorFleetGroup, EventUnitProgressUnit());
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2812

    }

    if (((UnitGetType(EventUnitProgressUnit()) == "Zealot") || (UnitGetType(EventUnitProgressUnit()) == "Stalker") || (UnitGetType(EventUnitProgressUnit()) == "Sentry") || (UnitGetType(EventUnitProgressUnit()) == "Immortal") || (UnitGetType(EventUnitProgressUnit()) == "HighTemplar") || (UnitGetType(EventUnitProgressUnit()) == "Archon") || (UnitGetType(EventUnitProgressUnit()) == "Scout") || (UnitGetType(EventUnitProgressUnit()) == "Phoenix") || (UnitGetType(EventUnitProgressUnit()) == "VoidRay") || (UnitGetType(EventUnitProgressUnit()) == "Carrier"))) {
        UnitGroupAdd(gv_terrorFleetGroup, EventUnitProgressUnit());
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:2812

    }

    if (((UnitGetType(EventUnitProgressUnit()) == "Zealot") || (UnitGetType(EventUnitProgressUnit()) == "Stalker") || (UnitGetType(EventUnitProgressUnit()) == "Sentry") || (UnitGetType(EventUnitProgressUnit()) == "Immortal") || (UnitGetType(EventUnitProgressUnit()) == "HighTemplar") || (UnitGetType(EventUnitProgressUnit()) == "Archon") || (UnitGetType(EventUnitProgressUnit()) == "Scout") || (UnitGetType(EventUnitProgressUnit()) == "Phoenix") || (UnitGetType(EventUnitProgressUnit()) == "VoidRay") || (UnitGetType(EventUnitProgressUnit()) == "Carrier"))) {
        UnitGroupAdd(gv_terrorFleetGroup, EventUnitProgressUnit());
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1493

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnitProgressUnit()) == "Virophage"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1504


    if ((gv_gameOver == true)) {
        UnitKill(EventUnitProgressUnit());
        return true;
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1509


    lv_colonyIndex = FixedToInt(UnitGetCustomValue(EventUnit(), 1));
    gv_infestationVirophageUnit[lv_colonyIndex] = EventUnitProgressUnit();
    UnitSetCustomValue(gv_infestationVirophageUnit[lv_colonyIndex], 1, IntToFixed(lv_colonyIndex));
    UnitForceStatusBar(EventUnitProgressUnit(), true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1511

    gv_infestationVirophageUnit[lv_colonyIndex] = EventUnitProgressUnit();
    UnitSetCustomValue(gv_infestationVirophageUnit[lv_colonyIndex], 1, IntToFixed(lv_colonyIndex));
    UnitForceStatusBar(EventUnitProgressUnit(), true);
    UnitSetInfoText(EventUnitProgressUnit(), StringToText(""), StringExternal("Param/Value/55694EB6"), StringExternal("Param/Value/A5396465"));
    UnitSetState(EventUnitProgressUnit(), c_unitStateTooltipable, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1512

    UnitSetCustomValue(gv_infestationVirophageUnit[lv_colonyIndex], 1, IntToFixed(lv_colonyIndex));
    UnitForceStatusBar(EventUnitProgressUnit(), true);
    UnitSetInfoText(EventUnitProgressUnit(), StringToText(""), StringExternal("Param/Value/55694EB6"), StringExternal("Param/Value/A5396465"));
    UnitSetState(EventUnitProgressUnit(), c_unitStateTooltipable, true);
    VisRevealerCreate(gv_p01_USER, gv_infestationRegion[lv_colonyIndex]);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1513

    UnitForceStatusBar(EventUnitProgressUnit(), true);
    UnitSetInfoText(EventUnitProgressUnit(), StringToText(""), StringExternal("Param/Value/55694EB6"), StringExternal("Param/Value/A5396465"));
    UnitSetState(EventUnitProgressUnit(), c_unitStateTooltipable, true);
    VisRevealerCreate(gv_p01_USER, gv_infestationRegion[lv_colonyIndex]);
    gv_infestationRevealer[lv_colonyIndex] = VisRevealerLastCreated();

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1554

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnitProgressUnit()) == "Virophage"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1564

    }

    lv_colonyIndex = FixedToInt(UnitGetCustomValue(EventUnitProgressUnit(), 1));
    gf_SetUnitMaxLife(gv_infestationVirophageUnit[lv_colonyIndex], gv_virophageLife);
    libNtve_gf_PlayAnimationOnDoodadsInRegion(gv_infestationRegion[lv_colonyIndex], "CreepCloud", c_animNameDefault, "Stand", c_animFlagPlayForever, c_animTimeDefault);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1569

    gv_infestationColonyLost[lv_colonyIndex] = true;
    gv_stat_ColoniesSaved -= 1;
    UnitForceStatusBar(EventUnitProgressUnit(), false);
    UnitSetInfoText(EventUnitProgressUnit(), StringToText(""), StringExternal("Param/Value/3096EE9E"), StringExternal("Param/Value/E181F205"));
    UnitSetState(EventUnitProgressUnit(), c_unitStateTooltipable, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1570

    gv_stat_ColoniesSaved -= 1;
    UnitForceStatusBar(EventUnitProgressUnit(), false);
    UnitSetInfoText(EventUnitProgressUnit(), StringToText(""), StringExternal("Param/Value/3096EE9E"), StringExternal("Param/Value/E181F205"));
    UnitSetState(EventUnitProgressUnit(), c_unitStateTooltipable, true);
    gv_tEMP_ColonyIndex = lv_colonyIndex;

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

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "Diamondback"))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "SCV"))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "SCV"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1454

    // Conditions
    if (testConds) {
        if (!((UnitGetOwner(EventUnitProgressUnit()) == gv_pLAYER_01_USER))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1458

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "SupplyDepot"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1469


    if ((libNtve_gf_DifficultyValueInt(1, 0, 0, 0) == 1)) {
        gf_CreateInfoText(EventUnitProgressUnit());
    }
    else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1472

    }
    else {
        UnitSetInfoText(EventUnitProgressUnit(), StringExternal("Param/Value/D35CB257"), StringExternal("Param/Value/1DA9A544"), StringExternal("Param/Value/F6A2B90D"));
    }
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1490

    // Conditions
    if (testConds) {
        if (!((UnitGetOwner(EventUnitProgressUnit()) == gv_pLAYER_01_USER))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1494

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "Barracks"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1505


    if ((libNtve_gf_DifficultyValueInt(1, 0, 0, 0) == 1)) {
        gf_CreateInfoText(EventUnitProgressUnit());
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1524

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnitProgressUnit()) == "SCV"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1528

        }

        if (!((UnitGetOwner(EventUnitProgressUnit()) == gv_pLAYER_01_USER))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1539


    if ((libNtve_gf_DifficultyValueInt(1, 0, 0, 0) == 1)) {
        gf_CreateInfoText(EventUnitProgressUnit());
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:1835

    // Conditions
    if (testConds) {
        if (!((UnitGetOwner(EventUnitProgressUnit()) == gv_pLAYER01_USER))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:1845

    }

    auto66902994_val = UnitGetType(EventUnitProgressUnit());
    if (auto66902994_val == "MissileTurret") {
        if ((libNtve_gf_DifficultyValueInt(1, 0, 0, 0) == 1)) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:1848

    if (auto66902994_val == "MissileTurret") {
        if ((libNtve_gf_DifficultyValueInt(1, 0, 0, 0) == 1)) {
            UnitSetInfoText(EventUnitProgressUnit(), StringToText(""), StringExternal("Param/Value/85796E57"), StringExternal("Param/Value/73E2F5FA"));
            UnitSetState(EventUnitProgressUnit(), c_unitStateTooltipable, true);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:1849

        if ((libNtve_gf_DifficultyValueInt(1, 0, 0, 0) == 1)) {
            UnitSetInfoText(EventUnitProgressUnit(), StringToText(""), StringExternal("Param/Value/85796E57"), StringExternal("Param/Value/73E2F5FA"));
            UnitSetState(EventUnitProgressUnit(), c_unitStateTooltipable, true);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:1855

    else if (auto66902994_val == "EngineeringBay") {
        if ((libNtve_gf_DifficultyValueInt(1, 0, 0, 0) == 1)) {
            UnitSetInfoText(EventUnitProgressUnit(), StringExternal("Param/Value/375DF249"), StringExternal("Param/Value/D4649464"), StringExternal("Param/Value/1E2D895D"));
            UnitSetState(EventUnitProgressUnit(), c_unitStateTooltipable, true);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:1856

        if ((libNtve_gf_DifficultyValueInt(1, 0, 0, 0) == 1)) {
            UnitSetInfoText(EventUnitProgressUnit(), StringExternal("Param/Value/375DF249"), StringExternal("Param/Value/D4649464"), StringExternal("Param/Value/1E2D895D"));
            UnitSetState(EventUnitProgressUnit(), c_unitStateTooltipable, true);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:1862

    else if (auto66902994_val == "Bunker") {
        if ((libNtve_gf_DifficultyValueInt(1, 0, 0, 0) == 1)) {
            UnitSetInfoText(EventUnitProgressUnit(), StringExternal("Param/Value/1BEEEE4F"), StringToText(""), StringToText(""));
            UnitSetState(EventUnitProgressUnit(), c_unitStateTooltipable, true);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:1863

        if ((libNtve_gf_DifficultyValueInt(1, 0, 0, 0) == 1)) {
            UnitSetInfoText(EventUnitProgressUnit(), StringExternal("Param/Value/1BEEEE4F"), StringToText(""), StringToText(""));
            UnitSetState(EventUnitProgressUnit(), c_unitStateTooltipable, true);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:3334

        }

        if (!((UnitGetOwner(EventUnitProgressUnit()) == gv_p01_USER))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:3338

        }

        if (!((UnitTypeTestAttribute(UnitGetType(EventUnitProgressUnit()), c_unitAttributeStructure) == false))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:3342

        }

        if (!((UnitGetType(EventUnitProgressUnit()) != "SCV"))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "CommandCenter"))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "CommandCenter"))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "CommandCenter"))) {
            return false;
        }

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


    TriggerEnable(TriggerGetCurrent(), false);
    gf_CreateInfoText(EventUnitProgressUnit());
    gv_con_CommandCenterStarted = false;
    gf_HideReplayTransmissionButtons();

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

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "Refinery"))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "Refinery"))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "Refinery"))) {
            return false;
        }

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


    TriggerEnable(TriggerGetCurrent(), false);
    gf_CreateInfoText(EventUnitProgressUnit());
    gv_col_RefineryStarted = false;
    gf_HideReplayTransmissionButtons();

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

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "Marine"))) {
            return false;
        }

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

    }

    gf_CreateInfoText(EventUnitProgressUnit());
    TriggerExecute(gt_ObjectiveProduction02CreateQ, true, false);
    gv_objectiveProduction02Number += 1;

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

        }

        if (!((UnitGetOwner(EventUnitProgressUnit()) == gv_p6_PROTOSSAir))) {
            return false;
        }

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

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "WarpPrism"))) {
            return false;
        }

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

    }

    gv_lastWarpedInPhasePrism = EventUnitProgressUnit();
    if ((RegionContainsPoint(RegionFromId(15), UnitGetPosition(EventUnitProgressUnit())) == true)) {
        if ((gv_phasePrismAggroLevel == 3)) {

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


    gv_lastWarpedInPhasePrism = EventUnitProgressUnit();
    if ((RegionContainsPoint(RegionFromId(15), UnitGetPosition(EventUnitProgressUnit())) == true)) {
        if ((gv_phasePrismAggroLevel == 3)) {
            UnitCargoCreate(EventUnitProgressUnit(), "Zealot", libNtve_gf_DifficultyValueInt(0, 0, 1, 0));

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

    if ((RegionContainsPoint(RegionFromId(15), UnitGetPosition(EventUnitProgressUnit())) == true)) {
        if ((gv_phasePrismAggroLevel == 3)) {
            UnitCargoCreate(EventUnitProgressUnit(), "Zealot", libNtve_gf_DifficultyValueInt(0, 0, 1, 0));
            UnitCargoCreate(EventUnitProgressUnit(), "Archon", libNtve_gf_DifficultyValueInt(0, 0, 0, 1));
        }

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

        if ((gv_phasePrismAggroLevel == 3)) {
            UnitCargoCreate(EventUnitProgressUnit(), "Zealot", libNtve_gf_DifficultyValueInt(0, 0, 1, 0));
            UnitCargoCreate(EventUnitProgressUnit(), "Archon", libNtve_gf_DifficultyValueInt(0, 0, 0, 1));
        }
        else {

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

        }
        else {
            UnitCargoCreate(EventUnitProgressUnit(), "Stalker", libNtve_gf_DifficultyValueInt(0, 0, 1, 1));
        }
        TriggerExecute(gt_PrismAttackPhase2NE, true, false);

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

    }

    if ((RegionContainsPoint(RegionFromId(16), UnitGetPosition(EventUnitProgressUnit())) == true)) {
        if ((gv_phasePrismAggroLevel == 3)) {
            UnitCargoCreate(EventUnitProgressUnit(), "Zealot", libNtve_gf_DifficultyValueInt(0, 0, 1, 1));

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

    if ((RegionContainsPoint(RegionFromId(16), UnitGetPosition(EventUnitProgressUnit())) == true)) {
        if ((gv_phasePrismAggroLevel == 3)) {
            UnitCargoCreate(EventUnitProgressUnit(), "Zealot", libNtve_gf_DifficultyValueInt(0, 0, 1, 1));
        }
        else {

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

        }
        else {
            UnitCargoCreate(EventUnitProgressUnit(), "Stalker", libNtve_gf_DifficultyValueInt(0, 0, 1, 1));
        }
        TriggerExecute(gt_PrismAttackPhase2NW, true, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:1147

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "Medivac"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:1158


    if ((libNtve_gf_DifficultyValueInt(1, 1, 0, 0) == 1)) {
        UnitSetInfoText(EventUnitProgressUnit(), StringExternal("Param/Value/0494ADCA"), StringExternal("Param/Value/D71A7F16"), StringExternal("Param/Value/DBD1FCB1"));
        UnitSetState(EventUnitProgressUnit(), c_unitStateTooltipable, true);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:1159

    if ((libNtve_gf_DifficultyValueInt(1, 1, 0, 0) == 1)) {
        UnitSetInfoText(EventUnitProgressUnit(), StringExternal("Param/Value/0494ADCA"), StringExternal("Param/Value/D71A7F16"), StringExternal("Param/Value/DBD1FCB1"));
        UnitSetState(EventUnitProgressUnit(), c_unitStateTooltipable, true);
    }
    else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:1162

    }
    else {
        UnitSetInfoText(EventUnitProgressUnit(), StringExternal("Param/Value/A452F47F"), StringToText(""), StringToText(""));
    }
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7345

    // Conditions
    if (testConds) {
        if (!((UnitGetOwner(EventUnitProgressUnit()) == gv_p2_ALLIED))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7349

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "Stalker"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7360


    SoundPlay(SoundLink("UI_TerranRescueUnit", 0), PlayerGroupAll(), 100.0, 0.0);
    UnitSetState(EventUnitProgressUnit(), c_unitStateTargetable, true);
    libNtve_gf_RescueUnit(EventUnitProgressUnit(), gv_p1_USER, true);
    UnitFlashSelection(EventUnitProgressUnit(), 1.5);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7361

    SoundPlay(SoundLink("UI_TerranRescueUnit", 0), PlayerGroupAll(), 100.0, 0.0);
    UnitSetState(EventUnitProgressUnit(), c_unitStateTargetable, true);
    libNtve_gf_RescueUnit(EventUnitProgressUnit(), gv_p1_USER, true);
    UnitFlashSelection(EventUnitProgressUnit(), 1.5);
    UnitIssueOrder(EventUnitProgressUnit(), Order(AbilityCommand("move", 2)), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7362

    UnitSetState(EventUnitProgressUnit(), c_unitStateTargetable, true);
    libNtve_gf_RescueUnit(EventUnitProgressUnit(), gv_p1_USER, true);
    UnitFlashSelection(EventUnitProgressUnit(), 1.5);
    UnitIssueOrder(EventUnitProgressUnit(), Order(AbilityCommand("move", 2)), c_orderQueueReplace);
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7363

    libNtve_gf_RescueUnit(EventUnitProgressUnit(), gv_p1_USER, true);
    UnitFlashSelection(EventUnitProgressUnit(), 1.5);
    UnitIssueOrder(EventUnitProgressUnit(), Order(AbilityCommand("move", 2)), c_orderQueueReplace);
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7380

    // Conditions
    if (testConds) {
        if (!((UnitGetOwner(EventUnitProgressUnit()) == gv_p2_ALLIED))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7384

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "Stalker"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7394

    }

    UnitSetTeamColorIndex(EventUnitProgressUnit(), 2);
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:9042

    // Conditions
    if (testConds) {
        if (!((UnitGetOwner(EventUnitProgressUnit()) == gv_p2_ALLIED))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2188

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnitProgressUnit()) == "Pylon"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2222

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnitProgressUnit()) == "Pylon"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2256

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnitProgressUnit()) == "Pylon"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2290

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnitProgressUnit()) == "Pylon"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2324

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnitProgressUnit()) == "Pylon"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2358

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnitProgressUnit()) == "Pylon"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2465

    // Conditions
    if (testConds) {
        if (!((UnitFilterMatch(EventUnitProgressUnit(), gv_p1_USER, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2559

    // Conditions
    if (testConds) {
        if (!((UnitFilterMatch(EventUnitProgressUnit(), gv_p1_USER, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)))) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2871

    // Conditions
    if (testConds) {
        if (!((UnitGetType(EventUnitProgressUnit()) == "Pylon"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2875

        }

        if (!((libNtve_gf_UnitInRegion(EventUnitProgressUnit(), RegionFromId(38)) == true))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1208

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "Pylon"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1253

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "Pylon"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1303

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "Pylon"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1352

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "Pylon"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1396

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "Pylon"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1436

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "Pylon"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1476

        }

        if (!((UnitGetType(EventUnitProgressUnit()) == "Pylon"))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1614

        }

        if (!((UnitGetOwner(EventUnitProgressUnit()) == gv_p10_ABANDONED_STRUCTURES))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1618

        }

        if (!(((UnitGetType(EventUnitProgressUnit()) == "Stalker") || (UnitGetType(EventUnitProgressUnit()) == "HighTemplar")))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1618

        }

        if (!(((UnitGetType(EventUnitProgressUnit()) == "Stalker") || (UnitGetType(EventUnitProgressUnit()) == "HighTemplar")))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul04.sc2map/MapScript.galaxy:1238

        }

        if (!((UnitGetOwner(EventUnitProgressUnit()) == gv_p10_REINFORCEMENTPROTOSS))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul04.sc2map/MapScript.galaxy:1248

    }

    if ((UnitGetType(EventUnitProgressUnit()) == "Carrier")) {
        UnitMagazineArm(EventUnitProgressUnit(), AbilityCommand("CarrierHangar", 0), 4);
    }