# Random Unit From Unit Group
Grammar — Random type|Living/Dead unit from g|Unit Group
Flags —Native
|Function
Returns a random unit from the specified unit group.
# Arguments
unitgroup
— Groupint
<preset::UnitCountType> — Type
Returns — unit
native unit UnitGroupRandomUnit(
unitgroup inGroup,
int inType,
);
# Related
Category: Unit Group / Groups
- Add Unit To Unit Group —
void
— UnitGroupAdd - Add Unit Group To Unit Group Old —
void
— libNtve_gf_AddUnitGroupToUnitGroup - Add Unit Group To Unit Group —
void
— UnitGroupAddUnitGroup - Unit Object Group Call For Help —
void
— UnitObjectGroupCallForHelp - Remove Unit From Unit Group —
void
— UnitGroupRemove - Remove Unit Group From Unit Group Old —
void
— libNtve_gf_RemoveUnitGroupFromUnitGroup - Remove Unit Group From Unit Group —
void
— UnitGroupRemoveUnitGroup - Remove All Units From Unit Group —
void
— UnitGroupClear - Pause All Units In Unit Group —
void
— UnitGroupPauseAll - Create Unit Object Group From Unit Group —
int
— UnitObjectGroupFromUnitGroup - Number Of Units In Unit Group —
int
— UnitGroupCount - Unit In Unit Group —
bool
— UnitGroupHasUnit - Unit From Unit Group —
unit
— UnitGroupUnit - Random Unit From Unit Group —
unit
— UnitGroupRandomUnit - Copy Of Unit Group —
unitgroup
— UnitGroupCopy - Closest Unit To Point Old —
unit
— libNtve_gf_ClosestUnitToPoint - Closest Unit To Point —
unit
— UnitGroupClosestToPoint - Center Of Unit Group Old —
point
— libNtve_gf_CenterOfUnitGroup - Center Of Unit Group —
point
— UnitGroupCenterOfGroup
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:317
}
else {
lv_randomHut = UnitGroupRandomUnit(gv_civilianSpawners, c_unitCountAlive);
if ((RandomFixed(0.0, 100.0) >= 33.0)) {
UnitCargoCreate(lv_randomHut, "Civilian", 1);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:1398
if ((lv_timeTick == 0)) {
for (auto8EFED1E5_i = 1; auto8EFED1E5_i <= auto8EFED1E5_n; auto8EFED1E5_i += 1) {
lv_tempUnit = UnitGroupRandomUnit(lv_zerglingGroup, c_unitCountAlive);
UnitGroupRemove(lv_zerglingGroup, lv_tempUnit);
UnitGroupAdd(gv_zergOnTheLoose2, lv_tempUnit);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:2262
if ((UnitGroupCount(gv_colonistsOnTheMove, c_unitCountAlive) > 0)) {
AIAttackWaveSetTargetEscort(gv_p4_COLONISTS, gv_colonistsOnTheMove, 0);
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 45.0);
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 315.0);
if ((gv_escortIndex > 2)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:2263
AIAttackWaveSetTargetEscort(gv_p4_COLONISTS, gv_colonistsOnTheMove, 0);
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 45.0);
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 315.0);
if ((gv_escortIndex > 2)) {
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 135.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:2265
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 315.0);
if ((gv_escortIndex > 2)) {
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 135.0);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:2269
if ((gv_escortIndex > 4)) {
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 225.0);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:2440
if ((UnitIsAlive(gv_pingConvoy) == false)) {
gv_pingConvoy = UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:2623
libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());
UIAlertPoint("Trigger", gv_p1_USER, StringToText(""), null, UnitGetPosition(UnitGroupRandomUnit(gv_convoyGuards, c_unitCountAlive)));
auto34BCDBA6_val = gv_convoyGuardCyclingLineIndex;
if (auto34BCDBA6_val == 1) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:919
}
lv_tempUnit = UnitGroupRandomUnit(lv_attackersLeft, c_unitCountAlive);
UnitIssueOrder(lv_tempUnit, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(230)), c_orderQueueReplace);
UnitGroupRemove(lv_attackersLeft, lv_tempUnit);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:929
}
lv_tempUnit = UnitGroupRandomUnit(lv_attackersRight, c_unitCountAlive);
UnitIssueOrder(lv_tempUnit, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(230)), c_orderQueueReplace);
UnitGroupRemove(lv_attackersRight, lv_tempUnit);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:1417
if (auto7ECFBFDB_var == null) { break; }
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.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:1762
for (auto59089212_i = 1; auto59089212_i <= auto59089212_n; auto59089212_i += 1) {
if ((gv_timeOfDay == ge_PRESET_TimeOfDay_Night) && (UnitGroupCount(lv_spawners, c_unitCountAlive) > 0)) {
lv_pickedSpawner = UnitGroupRandomUnit(lv_spawners, c_unitCountAlive);
libNtve_gf_CreateUnitsAtPoint2(1, "InfestedTerranCampaign", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lv_pickedSpawner));
AISetUnitSuicide(UnitLastCreated(), true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:4933
Wait(0.75, c_timeReal);
while ((UnitGroupCount(lv_tempUnitGroup, c_unitCountAlive) >= 1)) {
lv_randomUnit = UnitGroupRandomUnit(lv_tempUnitGroup, c_unitCountAlive);
UnitIssueOrder(lv_randomUnit, Order(AbilityCommand("BurrowInfestedTerranCampaignDown", 0)), c_orderQueueReplace);
UnitGroupRemove(lv_tempUnitGroup, lv_randomUnit);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:4954
Wait(1.0, c_timeReal);
while ((UnitGroupCount(lv_tempUnitGroup, c_unitCountAlive) >= 1)) {
lv_randomUnit = UnitGroupRandomUnit(lv_tempUnitGroup, c_unitCountAlive);
UnitBehaviorAdd(lv_randomUnit, "SolarCombustion", lv_randomUnit, 1);
UnitGroupRemove(lv_tempUnitGroup, lv_randomUnit);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:389
for (auto6E2B3EC3_i = 1; auto6E2B3EC3_i <= auto6E2B3EC3_n; auto6E2B3EC3_i += 1) {
if ((gv_currentWaveSources != null) && (UnitGroupCount(gv_currentWaveSources, c_unitCountAlive) > 0)) {
UnitIssueOrder(gv_superWarpGateP02, OrderTargetingPoint(lp_trainCmd, UnitGetPosition(UnitGroupRandomUnit(gv_currentWaveSources, c_unitCountAlive))), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1799
TriggerEnable(TriggerGetCurrent(), false);
lv_target_Group = UnitGroup(null, gv_pLAYER01_USER, RegionCircle(UnitGetPosition(UnitFromId(765)), 12.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
UnitIssueOrder(gv_purifier, OrderTargetingPoint(AbilityCommand("VortexPurifier", 0), UnitGetPosition(UnitGroupRandomUnit(lv_target_Group, c_unitCountAlive))), c_orderQueueAddToFront);
Wait(4.0, c_timeGame);
gf_TerrorFleetWarpIn(libNtve_gf_DifficultyValueInt(4, 5, 6, 8), AbilityCommand("SuperWarpGateTrain", 1), 4.0, 45.0, 0.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:3519
UnitBehaviorRemove(autoE3E72505_var, "ColonistWander", 1);
UnitBehaviorAdd(autoE3E72505_var, "Run", autoE3E72505_var, 1);
UnitIssueOrder(autoE3E72505_var, OrderTargetingUnit(null, UnitGroupRandomUnit(UnitGroup("ColonistShip", gv_pLAYER03_COLONIST, EventUnitRegion(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive)), c_orderQueueReplace);
}
auto3A20565F_g = UnitGroup("ColonistFemale", gv_pLAYER03_COLONIST, EventUnitRegion(), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:3528
UnitBehaviorRemove(auto3A20565F_var, "ColonistWander", 1);
UnitBehaviorAdd(auto3A20565F_var, "Run", auto3A20565F_var, 1);
UnitIssueOrder(auto3A20565F_var, OrderTargetingUnit(null, UnitGroupRandomUnit(UnitGroup("ColonistShip", gv_pLAYER03_COLONIST, EventUnitRegion(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive)), c_orderQueueReplace);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:354
// Implementation
gv_infestationRegion[lp_colonyIndex] = lp_area;
gv_infestationVirophageUnit[lp_colonyIndex] = UnitGroupRandomUnit(UnitGroup("Virophage", c_playerAny, lp_area, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive);
if ((gv_infestationVirophageUnit[lp_colonyIndex] == null)) {
gv_infestationVirophageSpot[lp_colonyIndex] = null;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:493
lv_overlordIndex = 1;
for ( ; ( (auto115E2612_ai >= 0 && lv_overlordIndex <= auto115E2612_ae) || (auto115E2612_ai < 0 && lv_overlordIndex >= auto115E2612_ae) ) ; lv_overlordIndex += auto115E2612_ai ) {
lv_overlord = UnitGroupRandomUnit(lv_overlordPool, c_unitCountAlive);
if ((lv_overlord == null)) {
return ;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:526
lv_overseerIndex = 1;
for ( ; ( (autoA9D381FC_ai >= 0 && lv_overseerIndex <= autoA9D381FC_ae) || (autoA9D381FC_ai < 0 && lv_overseerIndex >= autoA9D381FC_ae) ) ; lv_overseerIndex += autoA9D381FC_ai ) {
lv_overseer = UnitGroupRandomUnit(lv_overseerPool, c_unitCountAlive);
if ((lv_overseer == null)) {
return ;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:626
auto63BB9904_n = lp_attempts;
for (auto63BB9904_i = 1; auto63BB9904_i <= auto63BB9904_n; auto63BB9904_i += 1) {
lv_overlord = UnitGroupRandomUnit(UnitGroup("Overlord", gv_p07_ZERG_INFESTED, gv_infestationRegion[lp_colonyIndex], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
if (((gv_gameOver == true) || (lv_overlord == null))) {
return ;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:702
autoD24B01C0_val = lv_rND;
if (autoD24B01C0_val == 1) {
lv_sPEAKER = UnitGroupRandomUnit(UnitGroup("Colonist", gv_p05_COLONIST, lp_location, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
libNtve_gf_AttachModelToUnit(lv_sPEAKER, "TalkIcon", "Ref_Origin");
TriggerQueueEnter();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:711
}
else if (autoD24B01C0_val == 2) {
lv_sPEAKER = UnitGroupRandomUnit(UnitGroup("Colonist", gv_p05_COLONIST, lp_location, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
libNtve_gf_AttachModelToUnit(lv_sPEAKER, "TalkIcon", "Ref_Origin");
TriggerQueueEnter();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:720
}
else if (autoD24B01C0_val == 3) {
lv_sPEAKER = UnitGroupRandomUnit(UnitGroup("Colonist", gv_p05_COLONIST, lp_location, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
libNtve_gf_AttachModelToUnit(lv_sPEAKER, "TalkIcon", "Ref_Origin");
TriggerQueueEnter();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:830
// Implementation
lv_colonist = UnitGroupRandomUnit(UnitGroup("Colonist", c_playerAny, lp_locale, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
if (((lv_colonist == null) || (UnitOrder(lv_colonist, 0) != null))) {
return ;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:839
}
else {
lv_building = UnitGroupRandomUnit(UnitGroup(null, gv_p05_COLONIST, lp_locale, UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
if ((lv_building != null)) {
UnitIssueOrder(lv_colonist, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(lv_building)), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:2230
lv_colonyIndex = 1;
for ( ; ( (autoB5362C4D_ai >= 0 && lv_colonyIndex <= autoB5362C4D_ae) || (autoB5362C4D_ai < 0 && lv_colonyIndex >= autoB5362C4D_ae) ) ; lv_colonyIndex += autoB5362C4D_ai ) {
lv_feederling = UnitGroupRandomUnit(UnitGroup("Feederling", gv_p07_ZERG_INFESTED, gv_infestationRegion[lv_colonyIndex], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
if ((lv_feederling != null) && (UnitOrder(lv_feederling, 0) == null)) {
lv_egg = UnitGroupRandomUnit(UnitGroup(gv_eGG_UNIT, c_playerAny, gv_infestationRegion[lv_colonyIndex], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1693
autoD4B68B02_var = UnitGroupUnitFromEnd(autoD4B68B02_g, autoD4B68B02_u);
if (autoD4B68B02_var == null) { break; }
libNtve_gf_AICast(autoD4B68B02_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup(null, gv_p01_USER, RegionFromId(47), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))));
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1745
auto70B70FB3_var = UnitGroupUnitFromEnd(auto70B70FB3_g, auto70B70FB3_u);
if (auto70B70FB3_var == null) { break; }
libNtve_gf_AICast(auto70B70FB3_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup(null, gv_p01_USER, RegionFromId(48), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))));
}
autoE44AEF93_g = UnitGroup(null, 2, RegionFromId(58), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1752
autoE44AEF93_var = UnitGroupUnitFromEnd(autoE44AEF93_g, autoE44AEF93_u);
if (autoE44AEF93_var == null) { break; }
libNtve_gf_AICast(autoE44AEF93_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup(null, gv_p01_USER, RegionFromId(48), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))));
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:1801
autoD081A4BB_var = UnitGroupUnitFromEnd(autoD081A4BB_g, autoD081A4BB_u);
if (autoD081A4BB_var == null) { break; }
libNtve_gf_AICast(autoD081A4BB_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup(null, gv_p01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))));
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:1366
libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(autoC0A4CB95_var), c_animNameDefault, "Fidget Inferior End", 0, c_animTimeDefault);
UnitBehaviorAdd(autoC0A4CB95_var, "Run", autoC0A4CB95_var, 1);
UnitIssueOrder(autoC0A4CB95_var, OrderTargetingUnit(null, UnitGroupRandomUnit(UnitGroup("Hut", gv_p06_CIVILIANS, RegionCircle(UnitGetPosition(EventUnit()), 50.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive)), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2287
TriggerEnable(TriggerGetCurrent(), false);
gv_supplyDepotSCV = UnitGroupRandomUnit(UnitGroup("SCV", gv_p07_HORNERBASE, RegionFromId(18), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
Wait(0.5, c_timeGame);
if ((libCamp_gf_StoryResearchStateCheck(libCamp_ge_StoryResearchID_ResearchP21OrbitalDepots, libCamp_ge_StoryResearchState_ResearchStatePurchased) == true)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:2477
UnitSetCustomValue(auto3A77AE5A_var, 0, 99.0);
UnitBehaviorAdd(auto3A77AE5A_var, "Run", auto3A77AE5A_var, 1);
UnitIssueOrder(auto3A77AE5A_var, OrderTargetingUnit(null, UnitGroupRandomUnit(UnitGroup("Hut", c_playerAny, RegionCircle(UnitGetPosition(EventUnit()), 50.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive)), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:10072
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)) {
AICast(gv_hybrid, OrderTargetingUnit(AbilityCommand("ConsumeDNA", 0), UnitGroupRandomUnit(lv_zergGroup, c_unitCountAlive)), null, false);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:10123
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)) {
AICast(gv_hybrid, OrderTargetingUnit(AbilityCommand("ConsumeDNA", 0), UnitGroupRandomUnit(lv_protossGroup, c_unitCountAlive)), null, false);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:1901
}
lv_speaker = UnitGroupRandomUnit(gv_dropGroup, c_unitCountAlive);
UIAlertUnit("Trigger", gv_p1_USER, StringExternal("Param/Value/A3BF4F95"), null, lv_speaker);
TriggerQueueEnter();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:2075
UnitIssueOrder(autoC3475AE5_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(gv_southieTarget)), c_orderQueueReplace);
}
gv_southieSpeaker = UnitGroupRandomUnit(lv_mARINES, c_unitCountAlive);
TriggerQueueEnter();
if ((UnitIsAlive(gv_southieSpeaker) == true)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:2045
TriggerQueueEnter();
if ((UnitGroupCount(gv_marinesRescued, c_unitCountAlive) > 0)) {
lv_marineTalker = UnitGroupRandomUnit(gv_marinesRescued, c_unitCountAlive);
libNtve_gf_AttachModelToUnit(lv_marineTalker, "TalkIcon", "Ref_Origin");
lv_talkIcon = libNtve_gf_ActorLastCreated();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:2775
Wait(2.0, c_timeGame);
}
gv_marineTaunter = UnitGroupRandomUnit(gv_mineGuardGroup, c_unitCountAlive);
TriggerExecute(gt_MarineTauntQ, true, false);
gv_mineGuardsState = ge_PRESET_MineGuardsState_Active;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:3301
libCamp_gf_SendTransmissionCampaign(null, SoundLink("TTosh01Swann00002", -1), c_transmissionDurationAdd, 0.0, true);
libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Game);
UIAlertUnit("Trigger", gv_p01_USER, StringExternal("Param/Value/CF04682F"), null, UnitGroupRandomUnit(gv_toshReapers, c_unitCountAlive));
MinimapPing(PlayerGroupAll(), RegionGetCenter(RegionFromId(18)), 2.0, Color(0.00, 100.00, 0.00));
Wait(2.0, c_timeReal);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:295
}
lv_targetTerrazineIndex = FixedToInt(UnitGetCustomValue(UnitGroupRandomUnit(lv_terrazineGroup, c_unitCountAlive), 0));
}
campaigns/liberty.sc2campaign — base.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.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:574
}
lv_probe01 = UnitGroupRandomUnit(UnitGroup("Probe", c_playerAny, RegionFromId(36), UnitFilter(0, 0, 0, 0), 0), c_unitCountAlive);
lv_probe01DistanceToCanister = DistanceBetweenPoints(UnitGetPosition(lv_probe01), UnitGetPosition(lv_canisterHarvestTarget));
lv_probe02 = UnitGroupRandomUnit(UnitGroup("Probe", c_playerAny, RegionFromId(38), UnitFilter(0, 0, 0, 0), 0), c_unitCountAlive);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:576
lv_probe01 = UnitGroupRandomUnit(UnitGroup("Probe", c_playerAny, RegionFromId(36), UnitFilter(0, 0, 0, 0), 0), c_unitCountAlive);
lv_probe01DistanceToCanister = DistanceBetweenPoints(UnitGetPosition(lv_probe01), UnitGetPosition(lv_canisterHarvestTarget));
lv_probe02 = UnitGroupRandomUnit(UnitGroup("Probe", c_playerAny, RegionFromId(38), UnitFilter(0, 0, 0, 0), 0), c_unitCountAlive);
lv_probe02DistanceToCanister = DistanceBetweenPoints(UnitGetPosition(lv_probe02), UnitGetPosition(lv_canisterHarvestTarget));
if ((lv_probe01DistanceToCanister <= lv_probe02DistanceToCanister)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:2680
UnitSetCustomValue(EventUnit(), 2, 0.0);
if ((UnitGetOwner(EventUnit()) == gv_p2_PROTOSS_EAST_ATTACKERS)) {
UnitIssueOrder(EventUnit(), OrderTargetingUnit(AbilityCommand("ProbeHarvest", 0), UnitGroupRandomUnit(UnitGroup("MineralField", c_playerAny, RegionFromId(36), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive)), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:2684
if ((UnitGetOwner(EventUnit()) == gv_p4_PROTOSS_WEST_ESCORTS)) {
UnitIssueOrder(EventUnit(), OrderTargetingUnit(AbilityCommand("ProbeHarvest", 0), UnitGroupRandomUnit(UnitGroup("MineralField", c_playerAny, RegionFromId(38), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive)), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:320
libNtve_gf_AddUnitGroupToUnitGroup(UnitGroup("SiegeTank", gv_p0_NEUTRAL, lp_locale, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), lv_vehicles);
if ((UnitGroupCount(lv_vehicles, c_unitCountAlive) > 0)) {
UnitIssueOrder(lp_worker, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(lv_vehicles, c_unitCountAlive))), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:351
lv_vehicle = UnitGroupUnitFromEnd(auto5B9DB599_g, auto5B9DB599_u);
if (lv_vehicle == null) { break; }
lv_prisoner = UnitGroupRandomUnit(lv_prisonerGroup, c_unitCountAlive);
UnitSetOwner(lv_prisoner, gv_p2_RAYNOR_LIGHTBLUE, false);
UnitIssueOrder(lv_prisoner, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(lv_vehicle)), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:364
lv_prisoner = UnitGroupUnitFromEnd(auto3DCCD67D_g, auto3DCCD67D_u);
if (lv_prisoner == null) { break; }
lv_vehicle = UnitGroupRandomUnit(lv_vehicleGroup, c_unitCountAlive);
UnitIssueOrder(lv_prisoner, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(lv_vehicle)), c_orderQueueReplace);
libNtve_gf_TurnAnimationPropertiesOn(libNtve_gf_MainActorofUnit(lv_prisoner), "Work");
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2702
if ((gv_bonusClear01 == true)) {
gf_CellBlockMoveWorker(UnitGroupRandomUnit(UnitGroup("PrisonerCivilian", gv_p7_PRISONER_YELLOW, RegionFromId(13), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive), RegionFromId(26));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2706
if ((gv_bonusClear02 == true)) {
gf_CellBlockMoveWorker(UnitGroupRandomUnit(UnitGroup("PrisonerCivilian", gv_p7_PRISONER_YELLOW, RegionFromId(15), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive), RegionFromId(51));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:783
// Implementation
lv_mineralField = UnitGroupRandomUnit(UnitGroup("MineralField", 0, lp_mineralFieldArea, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive);
if ((lv_mineralField == null)) {
UnitCreate(1, "MineralField", 0, 0, RegionGetCenter(lp_mineralFieldArea), 270.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:1604
// Transmission - SoundLink("TTychus01Swann00006", 0)
libCamp_gf_SendTransmissionCampaign(null, SoundLink("TTychus01Swann00006", -1), c_transmissionDurationAdd, 0.0, true);
UIAlertUnit("Trigger", gv_p1_USER, StringToText(""), null, UnitGroupRandomUnit(UnitGroup("Marauder", gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive));
libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Game);
TriggerQueueExit();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2788
auto3E3124EF_var = 1;
for ( ; auto3E3124EF_var <= auto3E3124EF_ae; auto3E3124EF_var += 1 ) {
lv_unit = UnitGroupRandomUnit(gv_phasePrismUnitGroups[2], c_unitCountAlive);
if ((UnitGroupCount(UnitCargoGroup(lv_unit), c_unitCountAlive) == 0)) {
UnitIssueOrder(lv_unit, OrderTargetingPoint(AbilityCommand("move", 0), gv_phasePrismAttackPoints[2][auto3E3124EF_var]), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2856
auto0B859F94_var = 1;
for ( ; auto0B859F94_var <= auto0B859F94_ae; auto0B859F94_var += 1 ) {
lv_unit = UnitGroupRandomUnit(gv_phasePrismUnitGroups[1], c_unitCountAlive);
if ((UnitGroupCount(UnitCargoGroup(lv_unit), c_unitCountAlive) == 0)) {
UnitIssueOrder(lv_unit, OrderTargetingPoint(AbilityCommand("move", 0), gv_phasePrismAttackPoints[1][auto0B859F94_var]), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2924
autoFDA0D90C_var = 1;
for ( ; autoFDA0D90C_var <= autoFDA0D90C_ae; autoFDA0D90C_var += 1 ) {
lv_unit = UnitGroupRandomUnit(gv_phasePrismUnitGroups[3], c_unitCountAlive);
if ((UnitGroupCount(UnitCargoGroup(lv_unit), c_unitCountAlive) == 0)) {
UnitIssueOrder(lv_unit, OrderTargetingPoint(AbilityCommand("move", 0), gv_phasePrismAttackPoints[3][autoFDA0D90C_var]), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:3601
UIAlertPoint("Trigger", gv_p01_USER, StringExternal("Param/Value/CE9DBEA6"), null, PointFromId(794));
MinimapPing(PlayerGroupAll(), RegionGetCenter(RegionFromId(62)), 2.0, Color(100.00, 100.00, 0.00));
libNtve_gf_AttachModelToUnit(UnitGroupRandomUnit(gv_gROUPAliveInside, c_unitCountAlive), "TalkIcon", "Origin");
lv_talkActor = libNtve_gf_ActorLastCreated();
libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:5077
TriggerQueueEnter();
TriggerEnable(gt_IntroMedivacsFinished, true);
lv_chosenMedivac = UnitGroupRandomUnit(UnitGroup("Medivac", gv_p06_MOEBIUS_SEC_FORCE, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:5248
TriggerEnable(TriggerGetCurrent(), false);
TriggerQueueEnter();
libNtve_gf_AttachModelToUnit(UnitGroupRandomUnit(gv_gROUPAliveInside, c_unitCountAlive), "TalkIcon", "Origin");
libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:5697
for (auto6DD76DC9_i = 1; auto6DD76DC9_i <= auto6DD76DC9_n; auto6DD76DC9_i += 1) {
lv_unit = UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, RegionFromId(33), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
libNtve_gf_UnitCreateFacingPoint(1, "Feederling", 0, gv_p2_ZERG, UnitGetPosition(lv_unit), UnitGetPosition(lv_unit));
UnitSetCustomValue(UnitLastCreated(), 0, 1.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:5702
}
for (auto17B0F6A4_i = 1; auto17B0F6A4_i <= auto17B0F6A4_n; auto17B0F6A4_i += 1) {
lv_unit = UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, RegionFromId(83), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
libNtve_gf_UnitCreateFacingPoint(1, "Feederling", 0, gv_p2_ZERG, UnitGetPosition(lv_unit), UnitGetPosition(lv_unit));
UnitSetCustomValue(UnitLastCreated(), 0, 2.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:5707
}
for (auto05BF46D0_i = 1; auto05BF46D0_i <= auto05BF46D0_n; auto05BF46D0_i += 1) {
lv_unit = UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, RegionFromId(91), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
libNtve_gf_UnitCreateFacingPoint(1, "Feederling", 0, gv_p2_ZERG, UnitGetPosition(lv_unit), UnitGetPosition(lv_unit));
UnitSetCustomValue(UnitLastCreated(), 0, 3.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:5782
if (auto937566B9_var == null) { break; }
if ((UnitGetCustomValue(auto937566B9_var, 0) >= 1.0) && (UnitOrder(auto937566B9_var, 0) == null)) {
UnitIssueOrder(auto937566B9_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, gv_feederlingRegions[FixedToInt(UnitGetCustomValue(auto937566B9_var, 0))], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))), c_orderQueueReplace);
UnitIssueOrder(auto937566B9_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, gv_feederlingRegions[FixedToInt(UnitGetCustomValue(auto937566B9_var, 0))], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))), c_orderQueueAddToEnd);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:5783
if ((UnitGetCustomValue(auto937566B9_var, 0) >= 1.0) && (UnitOrder(auto937566B9_var, 0) == null)) {
UnitIssueOrder(auto937566B9_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, gv_feederlingRegions[FixedToInt(UnitGetCustomValue(auto937566B9_var, 0))], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))), c_orderQueueReplace);
UnitIssueOrder(auto937566B9_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, gv_feederlingRegions[FixedToInt(UnitGetCustomValue(auto937566B9_var, 0))], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))), c_orderQueueAddToEnd);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:6906
for (auto9BB06C66_i = 1; auto9BB06C66_i <= auto9BB06C66_n; auto9BB06C66_i += 1) {
lv_unit = UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, RegionFromId(87), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
libNtve_gf_UnitCreateFacingPoint(1, "Feederling", 0, gv_p2_ZERG, UnitGetPosition(lv_unit), UnitGetPosition(lv_unit));
UnitSetCustomValue(UnitLastCreated(), 0, 4.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:6911
}
for (auto4AF4F173_i = 1; auto4AF4F173_i <= auto4AF4F173_n; auto4AF4F173_i += 1) {
lv_unit = UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, RegionFromId(88), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
libNtve_gf_UnitCreateFacingPoint(1, "Feederling", 0, gv_p2_ZERG, UnitGetPosition(lv_unit), UnitGetPosition(lv_unit));
UnitSetCustomValue(UnitLastCreated(), 0, 5.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:6916
}
for (auto5163F932_i = 1; auto5163F932_i <= auto5163F932_n; auto5163F932_i += 1) {
lv_unit = UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, RegionFromId(89), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
libNtve_gf_UnitCreateFacingPoint(1, "Feederling", 0, gv_p2_ZERG, UnitGetPosition(lv_unit), UnitGetPosition(lv_unit));
UnitSetCustomValue(UnitLastCreated(), 0, 6.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7631
for (auto5763245B_i = 1; auto5763245B_i <= auto5763245B_n; auto5763245B_i += 1) {
lv_unit = UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, RegionFromId(119), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
libNtve_gf_UnitCreateFacingPoint(1, "Feederling", 0, gv_p2_ZERG, UnitGetPosition(lv_unit), UnitGetPosition(lv_unit));
UnitSetCustomValue(UnitLastCreated(), 0, 7.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7684
if (auto5B595CD1_var == null) { break; }
if ((UnitGetCustomValue(auto5B595CD1_var, 0) >= 1.0) && (UnitOrder(auto5B595CD1_var, 0) == null)) {
UnitIssueOrder(auto5B595CD1_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(lv_cocoons, c_unitCountAlive))), c_orderQueueReplace);
UnitIssueOrder(auto5B595CD1_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(lv_cocoons, c_unitCountAlive))), c_orderQueueAddToEnd);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:520
else {
if ((OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(lv_defender, 0)) != AbilityCommand("move", 0)) && (UnitGroupCount(lv_nearbyEnemies, c_unitCountAlive) > 0) && (UnitGetOwner(lv_defender) == gv_pLAYER_P08_MUTALISK_TOWERS)) {
UnitIssueOrder(lv_defender, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupRandomUnit(lv_nearbyEnemies, c_unitCountAlive))), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2750
if ((libNtve_gf_RandomPercent() >= 33.0)) {
if ((RandomInt(0, 1) == 0)) {
lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupLeft, c_unitCountAlive);
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2753
}
else {
lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupRight, c_unitCountAlive);
}
UnitSetCustomValue(lv_unit, 1, (2.0 + ModF((UnitGetCustomValue(lv_unit, 1) + 6.0), 12.0)));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2761
if ((libNtve_gf_RandomPercent() >= 96.0)) {
if ((RandomInt(0, 1) == 0)) {
lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupLeft, c_unitCountAlive);
UnitGroupRemove(gv_zergEncircleGroupLeft, lv_unit);
UnitGroupAdd(gv_zergEncircleGroupRight, lv_unit);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2766
}
else {
lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupRight, c_unitCountAlive);
UnitGroupRemove(gv_zergEncircleGroupRight, lv_unit);
UnitGroupAdd(gv_zergEncircleGroupLeft, lv_unit);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:3589
if ((libNtve_gf_RandomPercent() >= 33.0)) {
if ((RandomInt(0, 1) == 0)) {
lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupLeft, c_unitCountAlive);
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:3592
}
else {
lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupRight, c_unitCountAlive);
}
UnitSetCustomValue(lv_unit, 1, (2.0 + ModF((UnitGetCustomValue(lv_unit, 1) + 6.0), 12.0)));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:3600
if ((libNtve_gf_RandomPercent() >= 96.0)) {
if ((RandomInt(0, 1) == 0)) {
lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupLeft, c_unitCountAlive);
UnitGroupRemove(gv_zergEncircleGroupLeft, lv_unit);
UnitGroupAdd(gv_zergEncircleGroupRight, lv_unit);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:3605
}
else {
lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupRight, c_unitCountAlive);
UnitGroupRemove(gv_zergEncircleGroupRight, lv_unit);
UnitGroupAdd(gv_zergEncircleGroupLeft, lv_unit);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:3677
autoA635E69B_var = UnitGroupUnitFromEnd(autoA635E69B_g, autoA635E69B_u);
if (autoA635E69B_var == null) { break; }
UnitIssueOrder(autoA635E69B_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupRandomUnit(lv_unitGroup, c_unitCountAlive))), c_orderQueueReplace);
}
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:4263
if (auto5DEA0F36_var == null) { break; }
if ((UnitGroupCount(lv_unitGroup, c_unitCountAlive) >= 1)) {
UnitIssueOrder(auto5DEA0F36_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(UnitGroupRandomUnit(lv_unitGroup, c_unitCountAlive))), c_orderQueueReplace);
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:1812
for (auto793B532F_i = 1; auto793B532F_i <= auto793B532F_n; auto793B532F_i += 1) {
lv_gravitonTargets = gf_EnemiesWithinRange(gv_hybridPhysical, 8.0, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))));
lv_target = UnitGroupRandomUnit(lv_gravitonTargets, c_unitCountAlive);
if ((lv_target != null)) {
UnitGroupRemove(lv_gravitonTargets, lv_target);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:1885
for (auto8910C1F6_i = 1; auto8910C1F6_i <= auto8910C1F6_n; auto8910C1F6_i += 1) {
lv_plasmaTargets = gf_EnemiesWithinRange(gv_hybridPhysical, 8.0, UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))));
lv_target = UnitGroupRandomUnit(lv_plasmaTargets, c_unitCountAlive);
if ((lv_target != null)) {
UnitGroupRemove(lv_plasmaTargets, lv_target);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2map — MapScript.galaxy:317
}
else {
lv_randomHut = UnitGroupRandomUnit(gv_civilianSpawners, c_unitCountAlive);
if ((RandomFixed(0.0, 100.0) >= 33.0)) {
UnitCargoCreate(lv_randomHut, "Civilian", 1);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2map — MapScript.galaxy:1398
if ((lv_timeTick == 0)) {
for (auto8EFED1E5_i = 1; auto8EFED1E5_i <= auto8EFED1E5_n; auto8EFED1E5_i += 1) {
lv_tempUnit = UnitGroupRandomUnit(lv_zerglingGroup, c_unitCountAlive);
UnitGroupRemove(lv_zerglingGroup, lv_tempUnit);
UnitGroupAdd(gv_zergOnTheLoose2, lv_tempUnit);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2map — MapScript.galaxy:2262
if ((UnitGroupCount(gv_colonistsOnTheMove, c_unitCountAlive) > 0)) {
AIAttackWaveSetTargetEscort(gv_p4_COLONISTS, gv_colonistsOnTheMove, 0);
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 45.0);
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 315.0);
if ((gv_escortIndex > 2)) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2map — MapScript.galaxy:2263
AIAttackWaveSetTargetEscort(gv_p4_COLONISTS, gv_colonistsOnTheMove, 0);
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 45.0);
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 315.0);
if ((gv_escortIndex > 2)) {
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 135.0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2map — MapScript.galaxy:2265
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 315.0);
if ((gv_escortIndex > 2)) {
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 135.0);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2map — MapScript.galaxy:2269
if ((gv_escortIndex > 4)) {
AIAttackWaveAddEscortType(gv_p4_COLONISTS, "Marine", UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive), 2.5, 225.0);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2map — MapScript.galaxy:2440
if ((UnitIsAlive(gv_pingConvoy) == false)) {
gv_pingConvoy = UnitGroupRandomUnit(gv_colonistsOnTheMove, c_unitCountAlive);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2map — MapScript.galaxy:2623
libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());
UIAlertPoint("Trigger", gv_p1_USER, StringToText(""), null, UnitGetPosition(UnitGroupRandomUnit(gv_convoyGuards, c_unitCountAlive)));
auto34BCDBA6_val = gv_convoyGuardCyclingLineIndex;
if (auto34BCDBA6_val == 1) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2map — MapScript.galaxy:919
}
lv_tempUnit = UnitGroupRandomUnit(lv_attackersLeft, c_unitCountAlive);
UnitIssueOrder(lv_tempUnit, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(230)), c_orderQueueReplace);
UnitGroupRemove(lv_attackersLeft, lv_tempUnit);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2map — MapScript.galaxy:929
}
lv_tempUnit = UnitGroupRandomUnit(lv_attackersRight, c_unitCountAlive);
UnitIssueOrder(lv_tempUnit, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(230)), c_orderQueueReplace);
UnitGroupRemove(lv_attackersRight, lv_tempUnit);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2map — MapScript.galaxy:1417
if (auto7ECFBFDB_var == null) { break; }
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.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2map — MapScript.galaxy:1762
for (auto59089212_i = 1; auto59089212_i <= auto59089212_n; auto59089212_i += 1) {
if ((gv_timeOfDay == ge_PRESET_TimeOfDay_Night) && (UnitGroupCount(lv_spawners, c_unitCountAlive) > 0)) {
lv_pickedSpawner = UnitGroupRandomUnit(lv_spawners, c_unitCountAlive);
libNtve_gf_CreateUnitsAtPoint2(1, "InfestedTerranCampaign", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lv_pickedSpawner));
AISetUnitSuicide(UnitLastCreated(), true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2map — MapScript.galaxy:4933
Wait(0.75, c_timeReal);
while ((UnitGroupCount(lv_tempUnitGroup, c_unitCountAlive) >= 1)) {
lv_randomUnit = UnitGroupRandomUnit(lv_tempUnitGroup, c_unitCountAlive);
UnitIssueOrder(lv_randomUnit, Order(AbilityCommand("BurrowInfestedTerranCampaignDown", 0)), c_orderQueueReplace);
UnitGroupRemove(lv_tempUnitGroup, lv_randomUnit);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2map — MapScript.galaxy:4954
Wait(1.0, c_timeReal);
while ((UnitGroupCount(lv_tempUnitGroup, c_unitCountAlive) >= 1)) {
lv_randomUnit = UnitGroupRandomUnit(lv_tempUnitGroup, c_unitCountAlive);
UnitBehaviorAdd(lv_randomUnit, "SolarCombustion", lv_randomUnit, 1);
UnitGroupRemove(lv_tempUnitGroup, lv_randomUnit);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:389
for (auto6E2B3EC3_i = 1; auto6E2B3EC3_i <= auto6E2B3EC3_n; auto6E2B3EC3_i += 1) {
if ((gv_currentWaveSources != null) && (UnitGroupCount(gv_currentWaveSources, c_unitCountAlive) > 0)) {
UnitIssueOrder(gv_superWarpGateP02, OrderTargetingPoint(lp_trainCmd, UnitGetPosition(UnitGroupRandomUnit(gv_currentWaveSources, c_unitCountAlive))), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1799
TriggerEnable(TriggerGetCurrent(), false);
lv_target_Group = UnitGroup(null, gv_pLAYER01_USER, RegionCircle(UnitGetPosition(UnitFromId(765)), 12.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
UnitIssueOrder(gv_purifier, OrderTargetingPoint(AbilityCommand("VortexPurifier", 0), UnitGetPosition(UnitGroupRandomUnit(lv_target_Group, c_unitCountAlive))), c_orderQueueAddToFront);
Wait(4.0, c_timeGame);
gf_TerrorFleetWarpIn(libNtve_gf_DifficultyValueInt(4, 5, 6, 8), AbilityCommand("SuperWarpGateTrain", 1), 4.0, 45.0, 0.0);