# Power Level
Grammar — Power level for inPlayer at inPosition with inType
Flags —Native
|Function
Returns the power level provided to a player at the specified point.
# Arguments
int
— Playerpoint
— Positionstring
— Type
Returns — int
native int PowerLevel(
int inPlayer,
point inPos,
string inLink,
);
# Related
Category: Environment / Creep And Power
- Set Creep Speed —
void
— CreepSetSpeed - Modify Creep —
void
— CreepModify - Creep Is Present —
bool
— CreepIsPresent - Creep Adjacent —
int
— CreepAdjacent - FunctionDef/Name/lib_Ntve_00000250 —
int
— PowerLevel - Power Level —
int
— PowerLevel - FunctionDef/Name/lib_Ntve_00000251 —
bool
— PowerIsProvidedBy - Power Is Provided By —
bool
— PowerIsProvidedBy
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2198
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(25)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
gv_buildingsMainPowered += 1;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2232
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(17)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
gv_buildingsMainPowered += 1;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2266
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(10)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
gv_buildingsMainPowered += 1;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2300
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(162)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
gv_buildingsMainPowered += 1;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2334
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(11)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
gv_buildingsMainPowered += 1;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:2368
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(199)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
gv_buildingsMainPowered += 1;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:3038
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(43)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
UnitSetState(UnitFromId(43), c_unitStateTargetable, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:3080
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(563)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
UnitSetState(UnitFromId(563), c_unitStateTargetable, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:3124
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(179)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
UnitSetState(UnitFromId(179), c_unitStateTargetable, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1218
}
if ((PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(88)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
libNtve_gf_RescueUnit(UnitFromId(88), gv_p01_USER, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1263
}
if ((PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(173)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
libNtve_gf_RescueUnit(UnitFromId(173), gv_p01_USER, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1313
}
if ((PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(287)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
gv_obelisksPowered += 1;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1362
}
if ((PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(285)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
gv_obelisksPowered += 1;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1406
}
if ((PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(29)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
libNtve_gf_RescueUnit(UnitFromId(29), gv_p01_USER, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1446
}
if ((PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(170)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
libNtve_gf_RescueUnit(UnitFromId(170), gv_p01_USER, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:1486
}
if ((PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(174)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
libNtve_gf_RescueUnit(UnitFromId(174), gv_p01_USER, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2map — MapScript.galaxy:2198
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(25)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
gv_buildingsMainPowered += 1;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2map — MapScript.galaxy:2232
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(17)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
gv_buildingsMainPowered += 1;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2map — MapScript.galaxy:2266
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(10)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
gv_buildingsMainPowered += 1;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2map — MapScript.galaxy:2300
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(162)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
gv_buildingsMainPowered += 1;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2map — MapScript.galaxy:2334
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(11)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
gv_buildingsMainPowered += 1;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2map — MapScript.galaxy:2368
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(199)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
gv_buildingsMainPowered += 1;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2map — MapScript.galaxy:3038
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(43)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
UnitSetState(UnitFromId(43), c_unitStateTargetable, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2map — MapScript.galaxy:3080
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(563)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
UnitSetState(UnitFromId(563), c_unitStateTargetable, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2map — MapScript.galaxy:3124
}
if ((PowerLevel(gv_p1_USER, UnitGetPosition(UnitFromId(179)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
UnitSetState(UnitFromId(179), c_unitStateTargetable, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul03.sc2map — MapScript.galaxy:1218
}
if ((PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(88)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
libNtve_gf_RescueUnit(UnitFromId(88), gv_p01_USER, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul03.sc2map — MapScript.galaxy:1263
}
if ((PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(173)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
libNtve_gf_RescueUnit(UnitFromId(173), gv_p01_USER, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul03.sc2map — MapScript.galaxy:1313
}
if ((PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(287)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
gv_obelisksPowered += 1;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul03.sc2map — MapScript.galaxy:1362
}
if ((PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(285)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
gv_obelisksPowered += 1;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul03.sc2map — MapScript.galaxy:1406
}
if ((PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(29)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
libNtve_gf_RescueUnit(UnitFromId(29), gv_p01_USER, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul03.sc2map — MapScript.galaxy:1446
}
if ((PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(170)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
libNtve_gf_RescueUnit(UnitFromId(170), gv_p01_USER, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul03.sc2map — MapScript.galaxy:1486
}
if ((PowerLevel(gv_p01_USER, UnitGetPosition(UnitFromId(174)), "PowerSource") > 0)) {
TriggerEnable(TriggerGetCurrent(), false);
libNtve_gf_RescueUnit(UnitFromId(174), gv_p01_USER, true);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:2532
}
if (!((PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 1)), "PowerSource") == 1))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:2536
}
if (!((PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 2)), "PowerSource") == 1))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:3768
}
else {
while (!((PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 1)), "PowerSource") == 1) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 2)), "PowerSource") == 1))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:3768
}
else {
while (!((PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 1)), "PowerSource") == 1) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 2)), "PowerSource") == 1))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur03.sc2map/MapScript.galaxy:1350
}
if (((libNtve_gf_UnitGroupIsDead(lv_proxyGroup) == true) || (UnitGroupCount(UnitGroup("Pylon", gv_pLAYER_01_USER, RegionCircle(PointFromId(71), 2.4), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0) || ((UnitIsAlive(UnitFromId(457)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(457)), "PowerSource") > 0)) || ((UnitIsAlive(UnitFromId(439)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(439)), "PowerSource") > 0)) || ((UnitIsAlive(UnitFromId(538)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(538)), "PowerSource") > 0)))) {
libVCUI_gf_TurnSpearofAdunSlotHighlightOnOff(1, false);
libNtve_gf_KillModel(gv_introReticle);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur03.sc2map/MapScript.galaxy:1350
}
if (((libNtve_gf_UnitGroupIsDead(lv_proxyGroup) == true) || (UnitGroupCount(UnitGroup("Pylon", gv_pLAYER_01_USER, RegionCircle(PointFromId(71), 2.4), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0) || ((UnitIsAlive(UnitFromId(457)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(457)), "PowerSource") > 0)) || ((UnitIsAlive(UnitFromId(439)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(439)), "PowerSource") > 0)) || ((UnitIsAlive(UnitFromId(538)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(538)), "PowerSource") > 0)))) {
libVCUI_gf_TurnSpearofAdunSlotHighlightOnOff(1, false);
libNtve_gf_KillModel(gv_introReticle);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur03.sc2map/MapScript.galaxy:1350
}
if (((libNtve_gf_UnitGroupIsDead(lv_proxyGroup) == true) || (UnitGroupCount(UnitGroup("Pylon", gv_pLAYER_01_USER, RegionCircle(PointFromId(71), 2.4), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0) || ((UnitIsAlive(UnitFromId(457)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(457)), "PowerSource") > 0)) || ((UnitIsAlive(UnitFromId(439)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(439)), "PowerSource") > 0)) || ((UnitIsAlive(UnitFromId(538)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(538)), "PowerSource") > 0)))) {
libVCUI_gf_TurnSpearofAdunSlotHighlightOnOff(1, false);
libNtve_gf_KillModel(gv_introReticle);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur03.sc2map/MapScript.galaxy:2190
}
if ((UnitIsAlive(gv_warpGate01) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(gv_warpGate01), "PowerSource") > 0) && (UnitGetOwner(gv_warpGate01) != gv_pLAYER_01_USER)) {
lv_localWarpGatePoweredBool = true;
gv_warpGatesPowered += 1;
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur03.sc2map/MapScript.galaxy:2198
}
if ((UnitIsAlive(gv_warpGate02) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(gv_warpGate02), "PowerSource") > 0) && (UnitGetOwner(gv_warpGate02) != gv_pLAYER_01_USER)) {
lv_localWarpGatePoweredBool = true;
gv_warpGatesPowered += 1;
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur03.sc2map/MapScript.galaxy:2206
}
if ((UnitIsAlive(gv_warpGate03) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(gv_warpGate03), "PowerSource") > 0) && (UnitGetOwner(gv_warpGate03) != gv_pLAYER_01_USER)) {
lv_localWarpGatePoweredBool = true;
gv_warpGatesPowered += 1;
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur05.sc2map/MapScript.galaxy:2481
Wait(2.0, c_timeAI);
gf_SetUpWarpPrism(PointFromId(1454), PointFromId(1478), gv_pLAYER_08_NERAZIM);
while (!((PowerLevel(gv_pLAYER_08_NERAZIM, PointFromId(1477), "PowerSource") > 0) && (PowerLevel(gv_pLAYER_08_NERAZIM, PointFromId(1478), "PowerSource") > 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur05.sc2map/MapScript.galaxy:2481
Wait(2.0, c_timeAI);
gf_SetUpWarpPrism(PointFromId(1454), PointFromId(1478), gv_pLAYER_08_NERAZIM);
while (!((PowerLevel(gv_pLAYER_08_NERAZIM, PointFromId(1477), "PowerSource") > 0) && (PowerLevel(gv_pLAYER_08_NERAZIM, PointFromId(1478), "PowerSource") > 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur05.sc2map/MapScript.galaxy:2586
Wait(2.0, c_timeAI);
gf_SetUpWarpPrism(PointFromId(1455), PointFromId(1480), gv_pLAYER_09_TALDARIM);
while (!((PowerLevel(gv_pLAYER_09_TALDARIM, PointFromId(1479), "PowerSource") > 0) && (PowerLevel(gv_pLAYER_09_TALDARIM, PointFromId(1480), "PowerSource") > 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur05.sc2map/MapScript.galaxy:2586
Wait(2.0, c_timeAI);
gf_SetUpWarpPrism(PointFromId(1455), PointFromId(1480), gv_pLAYER_09_TALDARIM);
while (!((PowerLevel(gv_pLAYER_09_TALDARIM, PointFromId(1479), "PowerSource") > 0) && (PowerLevel(gv_pLAYER_09_TALDARIM, PointFromId(1480), "PowerSource") > 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur05.sc2map/MapScript.galaxy:2689
Wait(2.0, c_timeAI);
gf_SetUpWarpPrism(PointFromId(1456), PointFromId(1482), gv_pLAYER_10_PURIFIER);
while (!((PowerLevel(gv_pLAYER_10_PURIFIER, PointFromId(1481), "PowerSource") > 0) && (PowerLevel(gv_pLAYER_10_PURIFIER, PointFromId(1482), "PowerSource") > 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur05.sc2map/MapScript.galaxy:2689
Wait(2.0, c_timeAI);
gf_SetUpWarpPrism(PointFromId(1456), PointFromId(1482), gv_pLAYER_10_PURIFIER);
while (!((PowerLevel(gv_pLAYER_10_PURIFIER, PointFromId(1481), "PowerSource") > 0) && (PowerLevel(gv_pLAYER_10_PURIFIER, PointFromId(1482), "PowerSource") > 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ppurifier03.sc2map/MapScript.galaxy:1775
auto24921BCC_var = UnitGroupUnitFromEnd(auto24921BCC_g, auto24921BCC_u);
if (auto24921BCC_var == null) { break; }
if ((PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(auto24921BCC_var), "PowerSource") == 0) && (libLotv_gf_DifficultyValueInt2(1, 1, 0, 0) == 1)) {
libVCMI_gf_AttachReticleEffectAndTextTagOnUnit(libVCMI_ge_CampaginReticleType_ProtossMainObjective, libVCMI_ge_CampaginReticleSize_Medium, StringToText(""), auto24921BCC_var, "Ref_Center");
libHots_gf_StoreActorForUnit(auto24921BCC_var, 1, libNtve_gf_ActorLastCreated());
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ppurifier03.sc2map/MapScript.galaxy:1816
autoC012A80F_var = UnitGroupUnitFromEnd(autoC012A80F_g, autoC012A80F_u);
if (autoC012A80F_var == null) { break; }
if ((PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(autoC012A80F_var), "PowerSource") > 0)) {
libNtve_gf_KillModel(libHots_gf_ActorForUnit(autoC012A80F_var, 1));
UnitGroupRemove(gv_unpoweredDefenses, autoC012A80F_var);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:2532
}
if (!((PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 1)), "PowerSource") == 1))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:2536
}
if (!((PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 2)), "PowerSource") == 1))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:3768
}
else {
while (!((PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 1)), "PowerSource") == 1) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 2)), "PowerSource") == 1))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:3768
}
else {
while (!((PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 1)), "PowerSource") == 1) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 2)), "PowerSource") == 1))) {
Wait(1.0, c_timeAI);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur03.sc2map — MapScript.galaxy:1350
}
if (((libNtve_gf_UnitGroupIsDead(lv_proxyGroup) == true) || (UnitGroupCount(UnitGroup("Pylon", gv_pLAYER_01_USER, RegionCircle(PointFromId(71), 2.4), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0) || ((UnitIsAlive(UnitFromId(457)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(457)), "PowerSource") > 0)) || ((UnitIsAlive(UnitFromId(439)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(439)), "PowerSource") > 0)) || ((UnitIsAlive(UnitFromId(538)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(538)), "PowerSource") > 0)))) {
libVCUI_gf_TurnSpearofAdunSlotHighlightOnOff(1, false);
libNtve_gf_KillModel(gv_introReticle);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur03.sc2map — MapScript.galaxy:1350
}
if (((libNtve_gf_UnitGroupIsDead(lv_proxyGroup) == true) || (UnitGroupCount(UnitGroup("Pylon", gv_pLAYER_01_USER, RegionCircle(PointFromId(71), 2.4), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0) || ((UnitIsAlive(UnitFromId(457)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(457)), "PowerSource") > 0)) || ((UnitIsAlive(UnitFromId(439)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(439)), "PowerSource") > 0)) || ((UnitIsAlive(UnitFromId(538)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(538)), "PowerSource") > 0)))) {
libVCUI_gf_TurnSpearofAdunSlotHighlightOnOff(1, false);
libNtve_gf_KillModel(gv_introReticle);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur03.sc2map — MapScript.galaxy:1350
}
if (((libNtve_gf_UnitGroupIsDead(lv_proxyGroup) == true) || (UnitGroupCount(UnitGroup("Pylon", gv_pLAYER_01_USER, RegionCircle(PointFromId(71), 2.4), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0) || ((UnitIsAlive(UnitFromId(457)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(457)), "PowerSource") > 0)) || ((UnitIsAlive(UnitFromId(439)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(439)), "PowerSource") > 0)) || ((UnitIsAlive(UnitFromId(538)) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(538)), "PowerSource") > 0)))) {
libVCUI_gf_TurnSpearofAdunSlotHighlightOnOff(1, false);
libNtve_gf_KillModel(gv_introReticle);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur03.sc2map — MapScript.galaxy:2190
}
if ((UnitIsAlive(gv_warpGate01) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(gv_warpGate01), "PowerSource") > 0) && (UnitGetOwner(gv_warpGate01) != gv_pLAYER_01_USER)) {
lv_localWarpGatePoweredBool = true;
gv_warpGatesPowered += 1;
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur03.sc2map — MapScript.galaxy:2198
}
if ((UnitIsAlive(gv_warpGate02) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(gv_warpGate02), "PowerSource") > 0) && (UnitGetOwner(gv_warpGate02) != gv_pLAYER_01_USER)) {
lv_localWarpGatePoweredBool = true;
gv_warpGatesPowered += 1;
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur03.sc2map — MapScript.galaxy:2206
}
if ((UnitIsAlive(gv_warpGate03) == true) && (PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(gv_warpGate03), "PowerSource") > 0) && (UnitGetOwner(gv_warpGate03) != gv_pLAYER_01_USER)) {
lv_localWarpGatePoweredBool = true;
gv_warpGatesPowered += 1;
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur05.sc2map — MapScript.galaxy:2481
Wait(2.0, c_timeAI);
gf_SetUpWarpPrism(PointFromId(1454), PointFromId(1478), gv_pLAYER_08_NERAZIM);
while (!((PowerLevel(gv_pLAYER_08_NERAZIM, PointFromId(1477), "PowerSource") > 0) && (PowerLevel(gv_pLAYER_08_NERAZIM, PointFromId(1478), "PowerSource") > 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur05.sc2map — MapScript.galaxy:2481
Wait(2.0, c_timeAI);
gf_SetUpWarpPrism(PointFromId(1454), PointFromId(1478), gv_pLAYER_08_NERAZIM);
while (!((PowerLevel(gv_pLAYER_08_NERAZIM, PointFromId(1477), "PowerSource") > 0) && (PowerLevel(gv_pLAYER_08_NERAZIM, PointFromId(1478), "PowerSource") > 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur05.sc2map — MapScript.galaxy:2586
Wait(2.0, c_timeAI);
gf_SetUpWarpPrism(PointFromId(1455), PointFromId(1480), gv_pLAYER_09_TALDARIM);
while (!((PowerLevel(gv_pLAYER_09_TALDARIM, PointFromId(1479), "PowerSource") > 0) && (PowerLevel(gv_pLAYER_09_TALDARIM, PointFromId(1480), "PowerSource") > 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur05.sc2map — MapScript.galaxy:2586
Wait(2.0, c_timeAI);
gf_SetUpWarpPrism(PointFromId(1455), PointFromId(1480), gv_pLAYER_09_TALDARIM);
while (!((PowerLevel(gv_pLAYER_09_TALDARIM, PointFromId(1479), "PowerSource") > 0) && (PowerLevel(gv_pLAYER_09_TALDARIM, PointFromId(1480), "PowerSource") > 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur05.sc2map — MapScript.galaxy:2689
Wait(2.0, c_timeAI);
gf_SetUpWarpPrism(PointFromId(1456), PointFromId(1482), gv_pLAYER_10_PURIFIER);
while (!((PowerLevel(gv_pLAYER_10_PURIFIER, PointFromId(1481), "PowerSource") > 0) && (PowerLevel(gv_pLAYER_10_PURIFIER, PointFromId(1482), "PowerSource") > 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur05.sc2map — MapScript.galaxy:2689
Wait(2.0, c_timeAI);
gf_SetUpWarpPrism(PointFromId(1456), PointFromId(1482), gv_pLAYER_10_PURIFIER);
while (!((PowerLevel(gv_pLAYER_10_PURIFIER, PointFromId(1481), "PowerSource") > 0) && (PowerLevel(gv_pLAYER_10_PURIFIER, PointFromId(1482), "PowerSource") > 0))) {
Wait(1.0, c_timeGame);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier03.sc2map — MapScript.galaxy:1775
auto24921BCC_var = UnitGroupUnitFromEnd(auto24921BCC_g, auto24921BCC_u);
if (auto24921BCC_var == null) { break; }
if ((PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(auto24921BCC_var), "PowerSource") == 0) && (libLotv_gf_DifficultyValueInt2(1, 1, 0, 0) == 1)) {
libVCMI_gf_AttachReticleEffectAndTextTagOnUnit(libVCMI_ge_CampaginReticleType_ProtossMainObjective, libVCMI_ge_CampaginReticleSize_Medium, StringToText(""), auto24921BCC_var, "Ref_Center");
libHots_gf_StoreActorForUnit(auto24921BCC_var, 1, libNtve_gf_ActorLastCreated());
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier03.sc2map — MapScript.galaxy:1816
autoC012A80F_var = UnitGroupUnitFromEnd(autoC012A80F_g, autoC012A80F_u);
if (autoC012A80F_var == null) { break; }
if ((PowerLevel(gv_pLAYER_01_USER, UnitGetPosition(autoC012A80F_var), "PowerSource") > 0)) {
libNtve_gf_KillModel(libHots_gf_ActorForUnit(autoC012A80F_var, 1));
UnitGroupRemove(gv_unpoweredDefenses, autoC012A80F_var);