# Custom Value Of Unit

Grammar — Custom value index of u
FlagsNative | Function

Returns a custom value of a unit.

# Arguments

  • unit — Unit
  • int — Index

Returns — fixed

native fixed UnitGetCustomValue(unit inUnit, int inIndex);

Category: Unit / Basic

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:1103

        else {
        }
        if ((UnitGetCustomValue(lp_guardian, 0) != 0.0)) {
            return true;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:1667

        else {
        }
        if ((UnitGetCustomValue(lp_scienceVessel, 0) != 0.0)) {
            return true;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:1721

        else {
        }
        if ((UnitGetCustomValue(lp_battlecruiser, 0) != 0.0)) {
            return true;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:2496

        lv_pickedUnit = UnitGroupUnitFromEnd(autoCAF7C36D_g, autoCAF7C36D_u);
        if (lv_pickedUnit == null) { break; }
        lv_customIntValueOfUnit = FixedToInt(UnitGetCustomValue(lv_pickedUnit, 0));
        if ((lv_customIntValueOfUnit > 0) && (lv_customIntValueOfUnit < 100)) {
            if ((DistanceBetweenPoints(UnitGetPosition(lv_pickedUnit), gv_escortRouteRallyPoints[lv_customIntValueOfUnit]) <= 1.5)) {

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

    // Automatic Variable Declarations
    // Implementation
    if ((UnitGetCustomValue(lp_attackedStructure, 0) > 0.0)) {
        return ;
    }

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

        if ((UnitGetType(auto7ECFBFDB_var) == "Infestor") && (UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(auto7ECFBFDB_var), 14.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
            lv_point = UnitGetPosition(UnitGroupRandomUnit(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(auto7ECFBFDB_var), 14.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive));
            if ((UnitGetCustomValue(auto7ECFBFDB_var, 0) < libNtve_gf_DifficultyValueFixed(5.0, 5.0, 10.0, 1000.0))) {
                UnitIssueOrder(auto7ECFBFDB_var, OrderTargetingPoint(AbilityCommand("InfestedTerrans", 0), lv_point), c_orderQueueReplace);
            }

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

    }

    UnitSetCustomValue(EventUnit(), 0, (UnitGetCustomValue(EventUnit(), 0) + 1.0));
    if ((libNtve_gf_DifficultyValueInt(0, 0, 0, 1) == 1)) {
        if ((UnitGroupHasUnit(gv_infestorAggressionInhibitor, EventUnit()) == false)) {

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

    }

    PingDestroy(gv_infestableStructuresPings[FixedToInt(UnitGetCustomValue(EventUnit(), 2))]);
    return true;
}

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

    lv_index = 1;
    for ( ; ( (auto2338D377_ai >= 0 && lv_index <= auto2338D377_ae) || (auto2338D377_ai < 0 && lv_index >= auto2338D377_ae) ) ; lv_index += auto2338D377_ai ) {
        if ((UnitGetCustomValue(gv_infestableStructure[lv_index], 0) != 0.0)) {
            UnitSetCustomValue(gv_infestableStructure[lv_index], 0, (UnitGetCustomValue(gv_infestableStructure[lv_index], 0) - 1.0));
        }

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

    for ( ; ( (auto2338D377_ai >= 0 && lv_index <= auto2338D377_ae) || (auto2338D377_ai < 0 && lv_index >= auto2338D377_ae) ) ; lv_index += auto2338D377_ai ) {
        if ((UnitGetCustomValue(gv_infestableStructure[lv_index], 0) != 0.0)) {
            UnitSetCustomValue(gv_infestableStructure[lv_index], 0, (UnitGetCustomValue(gv_infestableStructure[lv_index], 0) - 1.0));
        }
        else {

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

        }

        if (!((UnitGetCustomValue(EventUnit(), 1) == 1.0))) {
            return false;
        }

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

    }

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

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:1665

    }

    lv_colonyIndex = FixedToInt(UnitGetCustomValue(EventUnit(), 1));
    gv_infestationVirophageUnit[lv_colonyIndex] = null;
    gv_hansonGoneWildTransmissionCounter += 1;

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

        autoB51C2030_var = UnitGroupUnitFromEnd(autoB51C2030_g, autoB51C2030_u);
        if (autoB51C2030_var == null) { break; }
        lv_eggType = FixedToInt(UnitGetCustomValue(autoB51C2030_var, (ge_UnitData_udEggType)));
        lv_eggScale = UnitGetCustomValue(autoB51C2030_var, (ge_UnitData_udEggScale));
        lv_colonyIndex = FixedToInt(UnitGetCustomValue(autoB51C2030_var, (ge_UnitData_udEggColony)));

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

        if (autoB51C2030_var == null) { break; }
        lv_eggType = FixedToInt(UnitGetCustomValue(autoB51C2030_var, (ge_UnitData_udEggType)));
        lv_eggScale = UnitGetCustomValue(autoB51C2030_var, (ge_UnitData_udEggScale));
        lv_colonyIndex = FixedToInt(UnitGetCustomValue(autoB51C2030_var, (ge_UnitData_udEggColony)));
        if ((lv_eggScale >= gv_eggData[lv_eggType].lv_burstSize)) {

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

        lv_eggType = FixedToInt(UnitGetCustomValue(autoB51C2030_var, (ge_UnitData_udEggType)));
        lv_eggScale = UnitGetCustomValue(autoB51C2030_var, (ge_UnitData_udEggScale));
        lv_colonyIndex = FixedToInt(UnitGetCustomValue(autoB51C2030_var, (ge_UnitData_udEggColony)));
        if ((lv_eggScale >= gv_eggData[lv_eggType].lv_burstSize)) {
            lv_eggPosition = UnitGetPosition(autoB51C2030_var);

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

        auto499A4BF2_var = UnitGroupUnitFromEnd(auto499A4BF2_g, auto499A4BF2_u);
        if (auto499A4BF2_var == null) { break; }
        if ((RegionContainsPoint(RegionCircle(gv_trainPath[FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0))], 0.5), UnitGetPosition(auto499A4BF2_var)) == true)) {
            if ((FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0)) < 255)) {
                UnitSetCustomValue(auto499A4BF2_var, 0, (UnitGetCustomValue(auto499A4BF2_var, 0) + 1.0));

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

        if (auto499A4BF2_var == null) { break; }
        if ((RegionContainsPoint(RegionCircle(gv_trainPath[FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0))], 0.5), UnitGetPosition(auto499A4BF2_var)) == true)) {
            if ((FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0)) < 255)) {
                UnitSetCustomValue(auto499A4BF2_var, 0, (UnitGetCustomValue(auto499A4BF2_var, 0) + 1.0));
            }

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

        if ((RegionContainsPoint(RegionCircle(gv_trainPath[FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0))], 0.5), UnitGetPosition(auto499A4BF2_var)) == true)) {
            if ((FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0)) < 255)) {
                UnitSetCustomValue(auto499A4BF2_var, 0, (UnitGetCustomValue(auto499A4BF2_var, 0) + 1.0));
            }

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

        }

        UnitIssueOrder(auto499A4BF2_var, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(auto499A4BF2_var), 1.0, AngleBetweenPoints(UnitGetPosition(auto499A4BF2_var), gv_trainPath[FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0))]))), c_orderQueueReplace);
    }
    return true;

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

            if (auto5F63F107_var == null) { break; }
            if ((UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(auto5F63F107_var), 3.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
                if ((UnitGetCustomValue(auto5F63F107_var, 0) < 1.0)) {
                    UnitSetCustomValue(auto5F63F107_var, 0, 2.0);
                    gf_RescueDiamondback(auto5F63F107_var);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1723

        auto6ADED6AB_var = UnitGroupUnitFromEnd(auto6ADED6AB_g, auto6ADED6AB_u);
        if (auto6ADED6AB_var == null) { break; }
        if ((UnitGetCustomValue(auto6ADED6AB_var, 1) == 99.0)) {
            UnitKill(auto6ADED6AB_var);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:4408

    }

    if ((UnitGetPropertyFixed(EventUnit(), c_unitPropLife, c_unitPropCurrent) > UnitGetCustomValue(EventUnit(), 1))) {
        gv_sCVHealingPerformedOnOdin += (UnitGetPropertyFixed(EventUnit(), c_unitPropLife, c_unitPropCurrent) - UnitGetCustomValue(EventUnit(), 1));
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:4409


    if ((UnitGetPropertyFixed(EventUnit(), c_unitPropLife, c_unitPropCurrent) > UnitGetCustomValue(EventUnit(), 1))) {
        gv_sCVHealingPerformedOnOdin += (UnitGetPropertyFixed(EventUnit(), c_unitPropLife, c_unitPropCurrent) - UnitGetCustomValue(EventUnit(), 1));
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:5739


    lv_door = UnitFromId(341);
    UnitSetCustomValue(lv_door, 0, (UnitGetCustomValue(lv_door, 0) + 1.0));
    auto92EDC9A6_val = UnitGetCustomValue(lv_door, 0);
    if (auto92EDC9A6_val == 2.0) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:5740

    lv_door = UnitFromId(341);
    UnitSetCustomValue(lv_door, 0, (UnitGetCustomValue(lv_door, 0) + 1.0));
    auto92EDC9A6_val = UnitGetCustomValue(lv_door, 0);
    if (auto92EDC9A6_val == 2.0) {
        libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_door), c_animNameDefault, "Stand A Start", c_animFlagNonLooping, c_animTimeDefault);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1362

        autoC0A4CB95_var = UnitGroupUnitFromEnd(autoC0A4CB95_g, autoC0A4CB95_u);
        if (autoC0A4CB95_var == null) { break; }
        if ((UnitGetCustomValue(autoC0A4CB95_var, 0) == 0.0)) {
            UnitSetCustomValue(autoC0A4CB95_var, 0, 99.0);
            libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(autoC0A4CB95_var), c_animNameDefault, "Fidget Inferior End", 0, c_animTimeDefault);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1938

        }

        if (!((UnitGetCustomValue(EventUnit(), 1) == 99.0))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1970

        }

        if (!((UnitGetCustomValue(EventUnit(), 1) == 99.0))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2002

        }

        if (!((UnitGetCustomValue(EventUnit(), 1) == 99.0))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2125

        auto4D3A1C8E_var = UnitGroupUnitFromEnd(auto4D3A1C8E_g, auto4D3A1C8E_u);
        if (auto4D3A1C8E_var == null) { break; }
        if ((UnitGetCustomValue(auto4D3A1C8E_var, 0) == 0.0) && ((UnitGetType(auto4D3A1C8E_var) == "Civilian") || (UnitGetType(auto4D3A1C8E_var) == "CivilianFemale") || (UnitGetType(auto4D3A1C8E_var) == "Scientist"))) {
            PlayerSetState(gv_p06_CIVILIANS, c_playerStateFidgetingEnabled, false);
            UnitSetCustomValue(auto4D3A1C8E_var, 0, 99.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2137

        autoA22A473B_var = UnitGroupUnitFromEnd(autoA22A473B_g, autoA22A473B_u);
        if (autoA22A473B_var == null) { break; }
        if ((UnitGetCustomValue(autoA22A473B_var, 1) == 99.0)) {
            UnitKill(autoA22A473B_var);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2147

        auto18D9D224_var = UnitGroupUnitFromEnd(auto18D9D224_g, auto18D9D224_u);
        if (auto18D9D224_var == null) { break; }
        if ((UnitGetCustomValue(auto18D9D224_var, 1) == 99.0)) {
            UnitKill(auto18D9D224_var);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2473

        auto3A77AE5A_var = UnitGroupUnitFromEnd(auto3A77AE5A_g, auto3A77AE5A_u);
        if (auto3A77AE5A_var == null) { break; }
        if ((UnitGetCustomValue(auto3A77AE5A_var, 0) == 0.0) && (UnitGetType(auto3A77AE5A_var) != "Blimp") && (UnitGetType(auto3A77AE5A_var) != "BlimpAds")) {
            libNtve_gf_ClearAnimation(libNtve_gf_MainActorofUnit(auto3A77AE5A_var), c_animNameDefault);
            UnitSetCustomValue(auto3A77AE5A_var, 0, 99.0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2523

        autoD8BCE623_var = UnitGroupUnitFromEnd(autoD8BCE623_g, autoD8BCE623_u);
        if (autoD8BCE623_var == null) { break; }
        if ((UnitGetCustomValue(autoD8BCE623_var, 0) == 0.0)) {
            UnitSetCustomValue(autoD8BCE623_var, 0, 99.0);
            gf_ShowUnitAggro(autoD8BCE623_var);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2540

        autoF124A860_var = UnitGroupUnitFromEnd(autoF124A860_g, autoF124A860_u);
        if (autoF124A860_var == null) { break; }
        if ((UnitGetCustomValue(autoF124A860_var, 0) == 0.0)) {
            UnitSetCustomValue(autoF124A860_var, 0, 99.0);
            gf_ShowUnitAggro(autoF124A860_var);

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

        lv_indexUnit = UnitGroupUnitFromEnd(autoC6F67F0C_g, autoC6F67F0C_u);
        if (lv_indexUnit == null) { break; }
        if ((UnitGroupHasUnit(gv_scientistsGroup, lv_indexUnit) == true) && (UnitGetCustomValue(lv_indexUnit, 0) == 0.0)) {
            lv_scientist = lv_indexUnit;
            UnitSetCustomValue(lv_scientist, 0, 1.0);

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

        lv_scientist = UnitGroupUnitFromEnd(auto8FF98E81_g, auto8FF98E81_u);
        if (lv_scientist == null) { break; }
        if ((UnitGetCustomValue(lv_scientist, 0) == 0.0)) {
            lv_intruderGroup = UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lv_scientist), 4.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1);
            if ((UnitGroupCount(lv_intruderGroup, c_unitCountAlive) > 0)) {

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

        lv_scientist = UnitGroupUnitFromEnd(auto3943785C_g, auto3943785C_u);
        if (lv_scientist == null) { break; }
        if ((UnitGetCustomValue(lv_scientist, 0) == 0.0)) {
            lv_brutaliskGroup = UnitGroup(null, gv_p11_BRUTALISK, RegionCircle(UnitGetPosition(lv_scientist), 5.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1);
            if ((UnitGroupCount(lv_brutaliskGroup, c_unitCountAlive) > 0)) {

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

        lv_scientist = UnitGroupUnitFromEnd(auto9C1505DC_g, auto9C1505DC_u);
        if (lv_scientist == null) { break; }
        if ((UnitGetCustomValue(lv_scientist, 0) == 0.0)) {
            lv_hybridGroup = UnitGroup(null, gv_p04_HYBRID, RegionCircle(UnitGetPosition(lv_scientist), 6.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1);
            if ((UnitGroupCount(lv_hybridGroup, c_unitCountAlive) > 0)) {

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

        lv_egg = UnitGroupUnitFromEnd(autoEA6E5487_g, autoEA6E5487_u);
        if (lv_egg == null) { break; }
        if ((UnitGetCustomValue(lv_egg, 0) == 0.0)) {
            lv_player = UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lv_egg), 1.5), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1);
            if ((UnitGroupCount(lv_player, c_unitCountAlive) > 0)) {

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

        lv_hybridLocal = UnitGroupUnitFromEnd(auto610B5130_g, auto610B5130_u);
        if (lv_hybridLocal == null) { break; }
        if ((UnitGetCustomValue(lv_hybridLocal, 0) == 0.0)) {
            lv_playerGroup = UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lv_hybridLocal), 4.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 2);
            if ((UnitGroupCount(lv_playerGroup, c_unitCountAlive) > 0)) {

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

        lv_hybridLocal = UnitGroupUnitFromEnd(auto2FE74A07_g, auto2FE74A07_u);
        if (lv_hybridLocal == null) { break; }
        if ((UnitGetCustomValue(lv_hybridLocal, 0) == 0.0)) {
            lv_zergGroup = UnitGroup(null, gv_p05_ZERG_LAB_SPECIMENS, RegionCircle(UnitGetPosition(lv_hybridLocal), 4.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1);
            if ((UnitGroupCount(lv_zergGroup, c_unitCountAlive) > 0)) {

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

        lv_hybridLocal = UnitGroupUnitFromEnd(auto7BC81B6F_g, auto7BC81B6F_u);
        if (lv_hybridLocal == null) { break; }
        if ((UnitGetCustomValue(lv_hybridLocal, 0) == 0.0)) {
            lv_protossGroup = UnitGroup(null, gv_p06_PROTOSS_LAB_SPECIMENS, RegionCircle(UnitGetPosition(lv_hybridLocal), 4.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1);
            if ((UnitGroupCount(lv_protossGroup, c_unitCountAlive) > 0)) {

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

        lv_scientist = UnitGroupUnitFromEnd(auto593D9A39_g, auto593D9A39_u);
        if (lv_scientist == null) { break; }
        if ((UnitGetCustomValue(lv_scientist, 0) == 0.0)) {
            lv_hybridLocalFirst = UnitGroup(null, gv_p07_NEUTRAL, RegionCircle(UnitGetPosition(lv_scientist), 6.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1);
            if ((UnitGroupCount(lv_hybridLocalFirst, c_unitCountAlive) > 0)) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2498

int gf_GetUnitClickableLockCount (unit lp_unit) {
    // Implementation
    return FixedToInt(UnitGetCustomValue(lp_unit, (ge_CustomDataIndex_CustomDataIndexClickableLock)));
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2503

int gf_GetUnitClickableRoom (unit lp_unit) {
    // Implementation
    return gf_RoomFromIndex(FixedToInt(UnitGetCustomValue(lp_unit, (ge_CustomDataIndex_CustomDataIndexClickableRoom))));
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9588

    }

    lv_index = FixedToInt(UnitGetCustomValue(lv_hotspot, (ge_CustomDataIndex_CustomDataIndexFlashingData)));
    if ((lv_index <= 0)) {
        return c_textTagNone;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9603


    // Implementation
    lv_index = FixedToInt(UnitGetCustomValue(lp_unit, (ge_CustomDataIndex_CustomDataIndexFlashingData)));
    if ((lv_index <= 0)) {
        return false;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9891


    // Implementation
    lv_index = FixedToInt(UnitGetCustomValue(lp_unit, (ge_CustomDataIndex_CustomDataIndexFlashingData)));
    if ((lv_index <= 0)) {
        return ;

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

            lv_u = UnitGroupUnitFromEnd(auto590DA8AC_g, auto590DA8AC_u);
            if (lv_u == null) { break; }
            if ((UnitGetCustomValue(lv_u, 0) == 1.0)) {
                UnitIssueOrder(lv_u, Order(AbilityCommand("RedstoneLavaCritterUnburrow", 0)), c_orderQueueReplace);
            }

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

            lv_u = UnitGroupUnitFromEnd(autoE96914E3_g, autoE96914E3_u);
            if (lv_u == null) { break; }
            UnitIssueOrder(lv_u, OrderTargetingPoint(AbilityCommand("move", 0), Point(UnitGetCustomValue(lv_u, 1), UnitGetCustomValue(lv_u, 2))), c_orderQueueReplace);
            if ((UnitGetCustomValue(lv_u, 0) == 1.0)) {
                UnitIssueOrder(lv_u, Order(AbilityCommand("RedstoneLavaCritterBurrow", 0)), c_orderQueueAddToEnd);

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

            lv_u = UnitGroupUnitFromEnd(autoE96914E3_g, autoE96914E3_u);
            if (lv_u == null) { break; }
            UnitIssueOrder(lv_u, OrderTargetingPoint(AbilityCommand("move", 0), Point(UnitGetCustomValue(lv_u, 1), UnitGetCustomValue(lv_u, 2))), c_orderQueueReplace);
            if ((UnitGetCustomValue(lv_u, 0) == 1.0)) {
                UnitIssueOrder(lv_u, Order(AbilityCommand("RedstoneLavaCritterBurrow", 0)), c_orderQueueAddToEnd);

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

            if (lv_u == null) { break; }
            UnitIssueOrder(lv_u, OrderTargetingPoint(AbilityCommand("move", 0), Point(UnitGetCustomValue(lv_u, 1), UnitGetCustomValue(lv_u, 2))), c_orderQueueReplace);
            if ((UnitGetCustomValue(lv_u, 0) == 1.0)) {
                UnitIssueOrder(lv_u, Order(AbilityCommand("RedstoneLavaCritterBurrow", 0)), c_orderQueueAddToEnd);
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:270

    // Implementation
    lv_targetTerrazineIndex = 0;
    if ((UnitIsAlive(gv_terrazineNodes[lp_primaryTerrazineIndex]) == true) && (UnitGetCustomValue(gv_terrazineNodes[lp_primaryTerrazineIndex], 4) < 1.0)) {
        lv_targetTerrazineIndex = lp_primaryTerrazineIndex;
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:290

            autoD682E799_var = UnitGroupUnitFromEnd(autoD682E799_g, autoD682E799_u);
            if (autoD682E799_var == null) { break; }
            if ((UnitGetCustomValue(autoD682E799_var, 4) > 1.0)) {
                UnitGroupRemove(lv_terrazineGroup, autoD682E799_var);
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:295


        }
        lv_targetTerrazineIndex = FixedToInt(UnitGetCustomValue(UnitGroupRandomUnit(lv_terrazineGroup, c_unitCountAlive), 0));
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:303


    if ((lv_targetTerrazineIndex == 0)) {
        lv_targetTerrazineIndex = FixedToInt(UnitGetCustomValue(UnitGroupRandomUnit(UnitGroup("TerrazineCanister", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive), 0));
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:484

        autoA7EA04C4_var = UnitGroupUnitFromEnd(autoA7EA04C4_g, autoA7EA04C4_u);
        if (autoA7EA04C4_var == null) { break; }
        if ((UnitGetCustomValue(autoA7EA04C4_var, 4) > 1.0)) {
            UnitGroupRemove(lv_terrazineGroup, autoA7EA04C4_var);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:497

        if ((lv_closestNodeMinDistance == 0.0)) {
            lv_closestNodeMinDistance = lv_checkDistance;
            lv_closestNodeIndex = FixedToInt(UnitGetCustomValue(auto96AA0583_var, 0));
        }
        else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:502

            if ((lv_checkDistance < lv_closestNodeMinDistance)) {
                lv_closestNodeMinDistance = lv_checkDistance;
                lv_closestNodeIndex = FixedToInt(UnitGetCustomValue(auto96AA0583_var, 0));
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:533

        if ((lv_closestNodeMinDistance == 0.0)) {
            lv_closestNodeMinDistance = lv_checkDistance;
            lv_closestNodeIndex = FixedToInt(UnitGetCustomValue(auto7CD40DCB_var, 0));
        }
        else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:538

            if ((lv_checkDistance < lv_closestNodeMinDistance)) {
                lv_closestNodeMinDistance = lv_checkDistance;
                lv_closestNodeIndex = FixedToInt(UnitGetCustomValue(auto7CD40DCB_var, 0));
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:568

        lv_pickedUnit = UnitGroupUnitFromEnd(auto8AAC8CF7_g, auto8AAC8CF7_u);
        if (lv_pickedUnit == null) { break; }
        if ((FixedToInt(UnitGetCustomValue(lv_pickedUnit, 0)) == lp_canisterHarvestTargetIndex)) {
            lv_canisterHarvestTarget = lv_pickedUnit;
            break;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2253


        lv_tempUnit = UnitGroupUnit(lv_patrolGroup, 1);
        if ((lv_targetCooldown == 0) && (libNtve_gf_UnitInRegion(lv_tempUnit, RegionCircle(PointWithOffsetPolar(PointFromId(1140), UnitGetCustomValue(lv_tempUnit, 0), UnitGetCustomValue(lv_tempUnit, 1)), 1.0)) == true)) {
            lv_movementTarget = PointFromId(1142);
            lv_targetCooldown = 10;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2253


        lv_tempUnit = UnitGroupUnit(lv_patrolGroup, 1);
        if ((lv_targetCooldown == 0) && (libNtve_gf_UnitInRegion(lv_tempUnit, RegionCircle(PointWithOffsetPolar(PointFromId(1140), UnitGetCustomValue(lv_tempUnit, 0), UnitGetCustomValue(lv_tempUnit, 1)), 1.0)) == true)) {
            lv_movementTarget = PointFromId(1142);
            lv_targetCooldown = 10;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2258

        }

        if ((lv_targetCooldown == 0) && (libNtve_gf_UnitInRegion(lv_tempUnit, RegionCircle(PointWithOffsetPolar(PointFromId(1142), UnitGetCustomValue(lv_tempUnit, 0), UnitGetCustomValue(lv_tempUnit, 1)), 1.0)) == true)) {
            lv_movementTarget = PointFromId(1140);
            lv_targetCooldown = 10;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2258

        }

        if ((lv_targetCooldown == 0) && (libNtve_gf_UnitInRegion(lv_tempUnit, RegionCircle(PointWithOffsetPolar(PointFromId(1142), UnitGetCustomValue(lv_tempUnit, 0), UnitGetCustomValue(lv_tempUnit, 1)), 1.0)) == true)) {
            lv_movementTarget = PointFromId(1140);
            lv_targetCooldown = 10;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2272

                auto398840A4_var = UnitGroupUnitFromEnd(auto398840A4_g, auto398840A4_u);
                if (auto398840A4_var == null) { break; }
                UnitIssueOrder(auto398840A4_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(lv_movementTarget, UnitGetCustomValue(auto398840A4_var, 0), UnitGetCustomValue(auto398840A4_var, 1))), c_orderQueueReplace);
            }
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2272

                auto398840A4_var = UnitGroupUnitFromEnd(auto398840A4_g, auto398840A4_u);
                if (auto398840A4_var == null) { break; }
                UnitIssueOrder(auto398840A4_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointWithOffsetPolar(lv_movementTarget, UnitGetCustomValue(auto398840A4_var, 0), UnitGetCustomValue(auto398840A4_var, 1))), c_orderQueueReplace);
            }
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2416

            auto67BD9FEE_var = UnitGroupUnitFromEnd(auto67BD9FEE_g, auto67BD9FEE_u);
            if (auto67BD9FEE_var == null) { break; }
            if ((libNtve_gf_UnitInRegion(auto67BD9FEE_var, RegionCircle(Point(UnitGetCustomValue(auto67BD9FEE_var, 0), UnitGetCustomValue(auto67BD9FEE_var, 1)), 2.0)) == true)) {
                if ((RandomInt(1, 40) == 1)) {
                    lv_randomPoint = RegionRandomPoint(RegionFromId(45));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2416

            auto67BD9FEE_var = UnitGroupUnitFromEnd(auto67BD9FEE_g, auto67BD9FEE_u);
            if (auto67BD9FEE_var == null) { break; }
            if ((libNtve_gf_UnitInRegion(auto67BD9FEE_var, RegionCircle(Point(UnitGetCustomValue(auto67BD9FEE_var, 0), UnitGetCustomValue(auto67BD9FEE_var, 1)), 2.0)) == true)) {
                if ((RandomInt(1, 40) == 1)) {
                    lv_randomPoint = RegionRandomPoint(RegionFromId(45));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2425

            }
            else {
                UnitIssueOrder(auto67BD9FEE_var, OrderTargetingPoint(AbilityCommand("move", 0), Point(UnitGetCustomValue(auto67BD9FEE_var, 0), UnitGetCustomValue(auto67BD9FEE_var, 1))), c_orderQueueReplace);
            }
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2425

            }
            else {
                UnitIssueOrder(auto67BD9FEE_var, OrderTargetingPoint(AbilityCommand("move", 0), Point(UnitGetCustomValue(auto67BD9FEE_var, 0), UnitGetCustomValue(auto67BD9FEE_var, 1))), c_orderQueueReplace);
            }
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2468

        if ((UnitGroupCount(UnitGroup("SpineCrawler", gv_p2_ZERG, RegionFromId(14), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterUnderConstruction - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 1)) {
            lv_tempSpineCrawler = UnitGroupUnit(UnitGroup("SpineCrawler", gv_p2_ZERG, RegionFromId(14), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterUnderConstruction - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), 1);
            if ((UnitGetCustomValue(lv_tempSpineCrawler, 0) < 1.0)) {
            }
            else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2478

            if ((UnitGroupCount(UnitGroup("SpineCrawler", gv_p2_ZERG, RegionFromId(16), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterUnderConstruction - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 1)) {
                lv_tempSpineCrawler = UnitGroupUnit(UnitGroup("SpineCrawler", gv_p2_ZERG, RegionFromId(16), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterUnderConstruction - 32)) | (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), 1);
                if ((UnitGetCustomValue(lv_tempSpineCrawler, 0) < 1.0)) {
                }
                else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2760

    UnitSetCustomValue(EventUnit(), 0, PointGetX(lv_randomPoint));
    UnitSetCustomValue(EventUnit(), 1, PointGetY(lv_randomPoint));
    UnitIssueOrder(EventUnit(), OrderTargetingPoint(AbilityCommand("attack", 0), Point(UnitGetCustomValue(EventUnit(), 0), UnitGetCustomValue(EventUnit(), 1))), c_orderQueueReplace);
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2760

    UnitSetCustomValue(EventUnit(), 0, PointGetX(lv_randomPoint));
    UnitSetCustomValue(EventUnit(), 1, PointGetY(lv_randomPoint));
    UnitIssueOrder(EventUnit(), OrderTargetingPoint(AbilityCommand("attack", 0), Point(UnitGetCustomValue(EventUnit(), 0), UnitGetCustomValue(EventUnit(), 1))), c_orderQueueReplace);
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2796

            autoB111683E_var = UnitGroupUnitFromEnd(autoB111683E_g, autoB111683E_u);
            if (autoB111683E_var == null) { break; }
            if ((RegionContainsPoint(RegionCircle(Point(UnitGetCustomValue(autoB111683E_var, 0), UnitGetCustomValue(autoB111683E_var, 1)), 2.0), UnitGetPosition(autoB111683E_var)) == true)) {
                lv_randomPoint = RegionRandomPoint(RegionFromId(62));
                UnitSetCustomValue(autoB111683E_var, 0, PointGetX(lv_randomPoint));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2796

            autoB111683E_var = UnitGroupUnitFromEnd(autoB111683E_g, autoB111683E_u);
            if (autoB111683E_var == null) { break; }
            if ((RegionContainsPoint(RegionCircle(Point(UnitGetCustomValue(autoB111683E_var, 0), UnitGetCustomValue(autoB111683E_var, 1)), 2.0), UnitGetPosition(autoB111683E_var)) == true)) {
                lv_randomPoint = RegionRandomPoint(RegionFromId(62));
                UnitSetCustomValue(autoB111683E_var, 0, PointGetX(lv_randomPoint));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2803

            else {
                if ((RandomInt(1, 3) == 1)) {
                    UnitIssueOrder(autoB111683E_var, OrderTargetingPoint(AbilityCommand("attack", 0), Point(UnitGetCustomValue(autoB111683E_var, 0), UnitGetCustomValue(autoB111683E_var, 1))), c_orderQueueReplace);
                }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2803

            else {
                if ((RandomInt(1, 3) == 1)) {
                    UnitIssueOrder(autoB111683E_var, OrderTargetingPoint(AbilityCommand("attack", 0), Point(UnitGetCustomValue(autoB111683E_var, 0), UnitGetCustomValue(autoB111683E_var, 1))), c_orderQueueReplace);
                }

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

    UnitSetPropertyFixed(EventUnitCargo(), c_unitPropEnergyPercent, 100.0);
    Wait(0.2, c_timeGame);
    auto36505A94_val = UnitGetCustomValue(UnitFromId(317), 0);
    if (auto36505A94_val == 0.0) {
        UnitIssueOrder(EventUnitCargo(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(483)), c_orderQueueReplace);

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

    else {
    }
    UnitSetCustomValue(UnitFromId(317), 0, (UnitGetCustomValue(UnitFromId(317), 0) + 1.0));
    return true;
}

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


    Wait(0.2, c_timeGame);
    autoA8EF11DC_val = UnitGetCustomValue(gv_siegeTankDropship, 0);
    if (autoA8EF11DC_val == 0.0) {
        UnitIssueOrder(EventUnitCargo(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(531)), c_orderQueueReplace);

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

    }
    UnitIssueOrder(EventUnitCargo(), Order(AbilityCommand("SiegeMode", 0)), c_orderQueueAddToEnd);
    UnitSetCustomValue(gv_siegeTankDropship, 0, (UnitGetCustomValue(gv_siegeTankDropship, 0) + 1.0));
    return true;
}

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

        }

        if (!((UnitGetCustomValue(EventUnit(), 0) < 1.0))) {
            return false;
        }

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

            auto6C20341F_var = UnitGroupUnitFromEnd(auto6C20341F_g, auto6C20341F_u);
            if (auto6C20341F_var == null) { break; }
            if ((UnitGetCustomValue(auto6C20341F_var, 0) > 1.0)) {
                return true;
            }

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

    // Conditions
    if (testConds) {
        if (!((UnitGetCustomValue(EventUnit(), 0) > 1.0))) {
            return false;
        }

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

        return true;
    }
    if ((UnitGetCustomValue(lv_transferUnit, 0) > 1.0)) {
        return true;
    }

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

    // Conditions
    if (testConds) {
        if (!((UnitGetCustomValue(EventUnit(), 0) > 1.0))) {
            return false;
        }

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

        return true;
    }
    if ((UnitGetCustomValue(lv_transferUnit, 0) > 1.0)) {
        return true;
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:837

            lv_u = UnitGroupUnitFromEnd(auto705DA511_g, auto705DA511_u);
            if (lv_u == null) { break; }
            lv_homeLoc = Point(UnitGetCustomValue(lv_u, 0), UnitGetCustomValue(lv_u, 1));
            if ((DistanceBetweenPoints(UnitGetPosition(lv_u), lv_homeLoc) > 10.0)) {
                UnitIssueOrder(lv_u, OrderTargetingPoint(AbilityCommand("attack", 0), lv_homeLoc), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:837

            lv_u = UnitGroupUnitFromEnd(auto705DA511_g, auto705DA511_u);
            if (lv_u == null) { break; }
            lv_homeLoc = Point(UnitGetCustomValue(lv_u, 0), UnitGetCustomValue(lv_u, 1));
            if ((DistanceBetweenPoints(UnitGetPosition(lv_u), lv_homeLoc) > 10.0)) {
                UnitIssueOrder(lv_u, OrderTargetingPoint(AbilityCommand("attack", 0), lv_homeLoc), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:2445

        autoD1A466A2_var = UnitGroupUnitFromEnd(autoD1A466A2_g, autoD1A466A2_u);
        if (autoD1A466A2_var == null) { break; }
        if ((UnitGetCustomValue(autoD1A466A2_var, 0) > lv_targetRichEnvironment)) {
            lv_targetRichEnvironment = UnitGetCustomValue(autoD1A466A2_var, 0);
            gv_vortexTarget = autoD1A466A2_var;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:2446

        if (autoD1A466A2_var == null) { break; }
        if ((UnitGetCustomValue(autoD1A466A2_var, 0) > lv_targetRichEnvironment)) {
            lv_targetRichEnvironment = UnitGetCustomValue(autoD1A466A2_var, 0);
            gv_vortexTarget = autoD1A466A2_var;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:6809

                auto4771A35A_var = UnitGroupUnitFromEnd(auto4771A35A_g, auto4771A35A_u);
                if (auto4771A35A_var == null) { break; }
                if ((libNtve_gf_UnitInRegion(auto4771A35A_var, RegionCircle(Point(UnitGetCustomValue(auto4771A35A_var, 0), UnitGetCustomValue(auto4771A35A_var, 1)), 1.0)) == true) && (RandomInt(1, 6) == 1)) {
                    lv_randomSpot = RegionRandomPoint(gv_briefingSlaughterAreas[lv_i].lv_zergRegion);
                    UnitSetCustomValue(auto4771A35A_var, 0, PointGetX(lv_randomSpot));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:6809

                auto4771A35A_var = UnitGroupUnitFromEnd(auto4771A35A_g, auto4771A35A_u);
                if (auto4771A35A_var == null) { break; }
                if ((libNtve_gf_UnitInRegion(auto4771A35A_var, RegionCircle(Point(UnitGetCustomValue(auto4771A35A_var, 0), UnitGetCustomValue(auto4771A35A_var, 1)), 1.0)) == true) && (RandomInt(1, 6) == 1)) {
                    lv_randomSpot = RegionRandomPoint(gv_briefingSlaughterAreas[lv_i].lv_zergRegion);
                    UnitSetCustomValue(auto4771A35A_var, 0, PointGetX(lv_randomSpot));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:6815

                }
                else {
                    UnitIssueOrder(auto4771A35A_var, OrderTargetingPoint(AbilityCommand("attack", 0), Point(UnitGetCustomValue(auto4771A35A_var, 0), UnitGetCustomValue(auto4771A35A_var, 1))), c_orderQueueReplace);
                }
            }