# Ability Command For Order
Grammar — Ability command for o
Flags —Native
|Function
Returns the ability command for the order.
# Arguments
order
— Order
Returns — abilcmd
native abilcmd OrderGetAbilityCommand(order inOrder);
# Related
Category: Order / Order Properties
- Player For Order —
int
— OrderGetPlayer - Ability Command For Order —
abilcmd
— OrderGetAbilityCommand - Flag Is Enabled For Order —
bool
— OrderGetFlag - Target Item For Order —
unit
— OrderGetTargetItem - Target Point For Order —
point
— OrderGetTargetPoint - Target Position For Order —
point
— OrderGetTargetPosition - Target Type For Order —
int
<preset::OrderTargetType> — OrderGetTargetType - Target Unit For Order —
unit
— OrderGetTargetUnit - Order Is Valid —
bool
— UnitOrderIsValid - Order Set Flag —
void
— OrderSetFlag
# Examples
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:16
ord = AICreateOrder(player, c_AB_Repair, 0);
repaircmd = OrderGetAbilityCommand (ord);
if (UnitCheckAbilCmdState(aiUnit, repaircmd, c_cmdStateIsAutoCast) == true) {
ord = OrderSetAutoCast(repaircmd, false);
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:124
}
curAbilCmd = OrderGetAbilityCommand(curOrd);
if (AbilityCommandGetAbility(curAbilCmd) != c_AB_OdinBarrage ||
AbilityCommandGetCommand(curAbilCmd) != 0) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:3678
for ( ; ( (auto08C32D67_ai >= 0 && lv_orderIndex <= auto08C32D67_ae) || (auto08C32D67_ai <= 0 && lv_orderIndex >= auto08C32D67_ae) ) ; lv_orderIndex += auto08C32D67_ai ) {
lv_order = UnitOrder(lp_unit, lv_orderIndex);
if ((AbilityCommandGetAbility(OrderGetAbilityCommand(lv_order)) == "move")) {
return OrderGetTargetPoint(lv_order);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:20937
lv_lastActionType = gv_bGActors[lv_bGActorID].lv_nodes[lv_lastNodeID].lv_type;
if ((OrderGetAbilityCommand(UnitOrder(gf_GetBGActor(lv_bGActorID), 0)) != AbilityCommand("move", 1))) {
Wait(0.125, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:519
}
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/tvalerian02b.sc2map/MapScript.galaxy:519
}
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/tvalerian02b.sc2map/MapScript.galaxy:519
}
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:5375
autoE5915620_var = UnitGroupUnitFromEnd(autoE5915620_g, autoE5915620_u);
if (autoE5915620_var == null) { break; }
if ((UnitHasBehavior(autoE5915620_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 0))) {
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(126))), c_orderQueueReplace);
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(127))), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:5375
autoE5915620_var = UnitGroupUnitFromEnd(autoE5915620_g, autoE5915620_u);
if (autoE5915620_var == null) { break; }
if ((UnitHasBehavior(autoE5915620_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 0))) {
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(126))), c_orderQueueReplace);
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(127))), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:5375
autoE5915620_var = UnitGroupUnitFromEnd(autoE5915620_g, autoE5915620_u);
if (autoE5915620_var == null) { break; }
if ((UnitHasBehavior(autoE5915620_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 0))) {
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(126))), c_orderQueueReplace);
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(127))), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7473
auto0685ADAD_var = UnitGroupUnitFromEnd(auto0685ADAD_g, auto0685ADAD_u);
if (auto0685ADAD_var == null) { break; }
if ((UnitHasBehavior(auto0685ADAD_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 0))) {
if ((UnitGetCustomValue(auto0685ADAD_var, 0) < UnitGetCustomValue(auto0685ADAD_var, 5))) {
UnitSetCustomValue(auto0685ADAD_var, 0, (UnitGetCustomValue(auto0685ADAD_var, 0) + 0.5));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7473
auto0685ADAD_var = UnitGroupUnitFromEnd(auto0685ADAD_g, auto0685ADAD_u);
if (auto0685ADAD_var == null) { break; }
if ((UnitHasBehavior(auto0685ADAD_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 0))) {
if ((UnitGetCustomValue(auto0685ADAD_var, 0) < UnitGetCustomValue(auto0685ADAD_var, 5))) {
UnitSetCustomValue(auto0685ADAD_var, 0, (UnitGetCustomValue(auto0685ADAD_var, 0) + 0.5));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:7473
auto0685ADAD_var = UnitGroupUnitFromEnd(auto0685ADAD_g, auto0685ADAD_u);
if (auto0685ADAD_var == null) { break; }
if ((UnitHasBehavior(auto0685ADAD_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 0))) {
if ((UnitGetCustomValue(auto0685ADAD_var, 0) < UnitGetCustomValue(auto0685ADAD_var, 5))) {
UnitSetCustomValue(auto0685ADAD_var, 0, (UnitGetCustomValue(auto0685ADAD_var, 0) + 0.5));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:3678
for ( ; ( (auto08C32D67_ai >= 0 && lv_orderIndex <= auto08C32D67_ae) || (auto08C32D67_ai <= 0 && lv_orderIndex >= auto08C32D67_ae) ) ; lv_orderIndex += auto08C32D67_ai ) {
lv_order = UnitOrder(lp_unit, lv_orderIndex);
if ((AbilityCommandGetAbility(OrderGetAbilityCommand(lv_order)) == "move")) {
return OrderGetTargetPoint(lv_order);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:20937
lv_lastActionType = gv_bGActors[lv_bGActorID].lv_nodes[lv_lastNodeID].lv_type;
if ((OrderGetAbilityCommand(UnitOrder(gf_GetBGActor(lv_bGActorID), 0)) != AbilityCommand("move", 1))) {
Wait(0.125, c_timeGame);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02b.sc2map — MapScript.galaxy:519
}
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/tvalerian02b.sc2map — MapScript.galaxy:519
}
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/tvalerian02b.sc2map — MapScript.galaxy:519
}
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:5375
autoE5915620_var = UnitGroupUnitFromEnd(autoE5915620_g, autoE5915620_u);
if (autoE5915620_var == null) { break; }
if ((UnitHasBehavior(autoE5915620_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 0))) {
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(126))), c_orderQueueReplace);
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(127))), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:5375
autoE5915620_var = UnitGroupUnitFromEnd(autoE5915620_g, autoE5915620_u);
if (autoE5915620_var == null) { break; }
if ((UnitHasBehavior(autoE5915620_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 0))) {
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(126))), c_orderQueueReplace);
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(127))), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:5375
autoE5915620_var = UnitGroupUnitFromEnd(autoE5915620_g, autoE5915620_u);
if (autoE5915620_var == null) { break; }
if ((UnitHasBehavior(autoE5915620_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(autoE5915620_var, 0)) != AbilityCommand("move", 0))) {
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(126))), c_orderQueueReplace);
UnitIssueOrder(autoE5915620_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionRandomPoint(RegionFromId(127))), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:7473
auto0685ADAD_var = UnitGroupUnitFromEnd(auto0685ADAD_g, auto0685ADAD_u);
if (auto0685ADAD_var == null) { break; }
if ((UnitHasBehavior(auto0685ADAD_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 0))) {
if ((UnitGetCustomValue(auto0685ADAD_var, 0) < UnitGetCustomValue(auto0685ADAD_var, 5))) {
UnitSetCustomValue(auto0685ADAD_var, 0, (UnitGetCustomValue(auto0685ADAD_var, 0) + 0.5));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:7473
auto0685ADAD_var = UnitGroupUnitFromEnd(auto0685ADAD_g, auto0685ADAD_u);
if (auto0685ADAD_var == null) { break; }
if ((UnitHasBehavior(auto0685ADAD_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 0))) {
if ((UnitGetCustomValue(auto0685ADAD_var, 0) < UnitGetCustomValue(auto0685ADAD_var, 5))) {
UnitSetCustomValue(auto0685ADAD_var, 0, (UnitGetCustomValue(auto0685ADAD_var, 0) + 0.5));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:7473
auto0685ADAD_var = UnitGroupUnitFromEnd(auto0685ADAD_g, auto0685ADAD_u);
if (auto0685ADAD_var == null) { break; }
if ((UnitHasBehavior(auto0685ADAD_var, "ZeratulStun") == false) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("attack", 0)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 3)) && (OrderGetAbilityCommand(UnitOrder(auto0685ADAD_var, 0)) != AbilityCommand("move", 0))) {
if ((UnitGetCustomValue(auto0685ADAD_var, 0) < UnitGetCustomValue(auto0685ADAD_var, 5))) {
UnitSetCustomValue(auto0685ADAD_var, 0, (UnitGetCustomValue(auto0685ADAD_var, 0) + 0.5));
campaigns/swarm.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:16
ord = AICreateOrder(player, c_AB_Repair, 0);
repaircmd = OrderGetAbilityCommand (ord);
if (UnitCheckAbilCmdState(aiUnit, repaircmd, c_cmdStateIsAutoCast) == true) {
ord = OrderSetAutoCast(repaircmd, false);
campaigns/swarm.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:124
}
curAbilCmd = OrderGetAbilityCommand(curOrd);
if (AbilityCommandGetAbility(curAbilCmd) != c_AB_OdinBarrage ||
AbilityCommandGetCommand(curAbilCmd) != 0) {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:744
lv_index = 0;
for ( ; ( (auto0F8AD8A8_ai >= 0 && lv_index <= auto0F8AD8A8_ae) || (auto0F8AD8A8_ai < 0 && lv_index >= auto0F8AD8A8_ae) ) ; lv_index += auto0F8AD8A8_ai ) {
if ((OrderGetAbilityCommand(UnitOrder(lp_u, lv_index)) == lp_abilityCommand)) {
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:525
lv_indexOrder = 1;
for ( ; ( (auto806F3943_ai >= 0 && lv_indexOrder <= auto806F3943_ae) || (auto806F3943_ai < 0 && lv_indexOrder >= auto806F3943_ae) ) ; lv_indexOrder += auto806F3943_ai ) {
if ((OrderGetAbilityCommand(UnitOrder(lv_indexUnit, (lv_indexOrder - 1))) == AbilityCommand("attack", 0))) {
return true;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:3623
lv_indexOrder = 1;
for ( ; ( (auto1450145F_ai >= 0 && lv_indexOrder <= auto1450145F_ae) || (auto1450145F_ai < 0 && lv_indexOrder >= auto1450145F_ae) ) ; lv_indexOrder += auto1450145F_ai ) {
if ((OrderGetAbilityCommand(UnitOrder(lv_indexUnit, (lv_indexOrder - 1))) == AbilityCommand("attack", 0))) {
lv_idle = false;
break;
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zspace02.sc2map/MapScript.galaxy:2765
UnitIssueOrder(gv_kerrigan, Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);
Wait(1.0, c_timeGame);
while (!((OrderGetAbilityCommand(UnitOrder(gv_kerrigan, 0)) == AbilityCommand("move", 2)))) {
Wait(0.0625, c_timeGame);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:1625
lv_index = 0;
for ( ; ( (auto9042254E_ai >= 0 && lv_index <= auto9042254E_ae) || (auto9042254E_ai < 0 && lv_index >= auto9042254E_ae) ) ; lv_index += auto9042254E_ai ) {
if ((AbilityCommandGetAbility(OrderGetAbilityCommand(UnitOrder(lp_harvester, lv_index))) == "attack") && (OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index)) != null) && (UnitGetType(OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index))) == "SpaceCowCorpse")) {
return true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab03.sc2map — MapScript.galaxy:744
lv_index = 0;
for ( ; ( (auto0F8AD8A8_ai >= 0 && lv_index <= auto0F8AD8A8_ae) || (auto0F8AD8A8_ai < 0 && lv_index >= auto0F8AD8A8_ae) ) ; lv_index += auto0F8AD8A8_ai ) {
if ((OrderGetAbilityCommand(UnitOrder(lp_u, lv_index)) == lp_abilityCommand)) {
return true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2map — MapScript.galaxy:525
lv_indexOrder = 1;
for ( ; ( (auto806F3943_ai >= 0 && lv_indexOrder <= auto806F3943_ae) || (auto806F3943_ai < 0 && lv_indexOrder >= auto806F3943_ae) ) ; lv_indexOrder += auto806F3943_ai ) {
if ((OrderGetAbilityCommand(UnitOrder(lv_indexUnit, (lv_indexOrder - 1))) == AbilityCommand("attack", 0))) {
return true;
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2map — MapScript.galaxy:3623
lv_indexOrder = 1;
for ( ; ( (auto1450145F_ai >= 0 && lv_indexOrder <= auto1450145F_ae) || (auto1450145F_ai < 0 && lv_indexOrder >= auto1450145F_ae) ) ; lv_indexOrder += auto1450145F_ai ) {
if ((OrderGetAbilityCommand(UnitOrder(lv_indexUnit, (lv_indexOrder - 1))) == AbilityCommand("attack", 0))) {
lv_idle = false;
break;
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace02.sc2map — MapScript.galaxy:2765
UnitIssueOrder(gv_kerrigan, Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);
Wait(1.0, c_timeGame);
while (!((OrderGetAbilityCommand(UnitOrder(gv_kerrigan, 0)) == AbilityCommand("move", 2)))) {
Wait(0.0625, c_timeGame);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:1625
lv_index = 0;
for ( ; ( (auto9042254E_ai >= 0 && lv_index <= auto9042254E_ae) || (auto9042254E_ai < 0 && lv_index >= auto9042254E_ae) ) ; lv_index += auto9042254E_ai ) {
if ((AbilityCommandGetAbility(OrderGetAbilityCommand(UnitOrder(lp_harvester, lv_index))) == "attack") && (OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index)) != null) && (UnitGetType(OrderGetTargetUnit(UnitOrder(lp_harvester, lv_index))) == "SpaceCowCorpse")) {
return true;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:2400
if (auto26F8CB2D_var == null) { break; }
lv_currentOrder = UnitOrder(auto26F8CB2D_var, 0);
if ((((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("DroneHarvest", 0)) && ((UnitGetType(OrderGetTargetUnit(lv_currentOrder)) == "MineralField") || (UnitGetType(OrderGetTargetUnit(lv_currentOrder)) == "RichMineralField"))) || ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("DroneHarvest", 1)) && ((UnitHasBehavior(auto26F8CB2D_var, "CarryMineralFieldMinerals") == true) || (UnitHasBehavior(auto26F8CB2D_var, "CarryHighYieldMineralFieldMinerals") == true))))) {
lv_droneCount += 1;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:2400
if (auto26F8CB2D_var == null) { break; }
lv_currentOrder = UnitOrder(auto26F8CB2D_var, 0);
if ((((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("DroneHarvest", 0)) && ((UnitGetType(OrderGetTargetUnit(lv_currentOrder)) == "MineralField") || (UnitGetType(OrderGetTargetUnit(lv_currentOrder)) == "RichMineralField"))) || ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("DroneHarvest", 1)) && ((UnitHasBehavior(auto26F8CB2D_var, "CarryMineralFieldMinerals") == true) || (UnitHasBehavior(auto26F8CB2D_var, "CarryHighYieldMineralFieldMinerals") == true))))) {
lv_droneCount += 1;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:2472
if (auto6B3B066C_var == null) { break; }
lv_currentOrder = UnitOrder(auto6B3B066C_var, 0);
if ((((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("DroneHarvest", 0)) && (OrderGetTargetUnit(lv_currentOrder) == lp_extractor)) || ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("DroneHarvest", 1)) && (UnitHasBehavior(auto6B3B066C_var, "CarryHarvestableVespeneGeyserGasZerg") == true)))) {
lv_droneCount += 1;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:2472
if (auto6B3B066C_var == null) { break; }
lv_currentOrder = UnitOrder(auto6B3B066C_var, 0);
if ((((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("DroneHarvest", 0)) && (OrderGetTargetUnit(lv_currentOrder) == lp_extractor)) || ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("DroneHarvest", 1)) && (UnitHasBehavior(auto6B3B066C_var, "CarryHarvestableVespeneGeyserGasZerg") == true)))) {
lv_droneCount += 1;
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:2483
if (auto4D844F3D_var == null) { break; }
lv_currentOrder = UnitOrder(auto4D844F3D_var, 0);
if ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("DroneHarvest", 0)) && (OrderGetTargetUnit(lv_currentOrder) == lp_extractor)) {
lv_droneCount += 1;
}
campaigns/void.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:16
ord = AICreateOrder(player, c_AB_Repair, 0);
repaircmd = OrderGetAbilityCommand (ord);
if (UnitCheckAbilCmdState(aiUnit, repaircmd, c_cmdStateIsAutoCast) == true) {
ord = OrderSetAutoCast(repaircmd, false);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:2948
IntLoopBegin(0, 10);
for ( ; !IntLoopDone() ; IntLoopStep() ) {
if ((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), IntLoopCurrent())) == AbilityCommand("attack", 0)) && (OrderGetTargetType(UnitOrder(UnitGroupLoopCurrent(), IntLoopCurrent())) == c_orderTargetUnit) && (UnitGetOwner(OrderGetTargetUnit(UnitOrder(UnitGroupLoopCurrent(), IntLoopCurrent()))) == gv_p01_USER)) {
UnitGroupAdd(gv_combatHelperUnitGroup, UnitGroupLoopCurrent());
ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), "HaloStart");
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3014
}
if (!(((OrderGetAbilityCommand(EventUnitOrder()) != AbilityCommand("attack", 0)) || ((OrderGetAbilityCommand(EventUnitOrder()) == AbilityCommand("attack", 0)) && (OrderGetTargetType(EventUnitOrder()) != c_orderTargetUnit)) || ((OrderGetAbilityCommand(EventUnitOrder()) == AbilityCommand("attack", 0)) && (OrderGetTargetType(EventUnitOrder()) == c_orderTargetUnit) && (UnitGetOwner(OrderGetTargetUnit(EventUnitOrder())) != gv_p01_USER))))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3014
}
if (!(((OrderGetAbilityCommand(EventUnitOrder()) != AbilityCommand("attack", 0)) || ((OrderGetAbilityCommand(EventUnitOrder()) == AbilityCommand("attack", 0)) && (OrderGetTargetType(EventUnitOrder()) != c_orderTargetUnit)) || ((OrderGetAbilityCommand(EventUnitOrder()) == AbilityCommand("attack", 0)) && (OrderGetTargetType(EventUnitOrder()) == c_orderTargetUnit) && (UnitGetOwner(OrderGetTargetUnit(EventUnitOrder())) != gv_p01_USER))))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3014
}
if (!(((OrderGetAbilityCommand(EventUnitOrder()) != AbilityCommand("attack", 0)) || ((OrderGetAbilityCommand(EventUnitOrder()) == AbilityCommand("attack", 0)) && (OrderGetTargetType(EventUnitOrder()) != c_orderTargetUnit)) || ((OrderGetAbilityCommand(EventUnitOrder()) == AbilityCommand("attack", 0)) && (OrderGetTargetType(EventUnitOrder()) == c_orderTargetUnit) && (UnitGetOwner(OrderGetTargetUnit(EventUnitOrder())) != gv_p01_USER))))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3072
}
if (!((OrderGetAbilityCommand(UnitOrder(EventUnit(), 0)) == AbilityCommand("move", 0)))) {
return false;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3101
UnitGroupLoopBegin(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(EventUnit()), 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == AbilityCommand("move", 0))) {
UnitGroupAdd(gv_combatHelperUnitGroup, UnitGroupLoopCurrent());
ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), "HaloStart");
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3351
UnitGroupLoopBegin(UnitGroup("SCV", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == AbilityCommand("TerranBuild", 1))) {
lv_validBuildOrder = true;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3369
UnitGroupLoopBegin(UnitGroup("Probe", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == AbilityCommand("ProtossBuild", 1))) {
lv_validBuildOrder = true;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3547
UnitGroupLoopBegin(UnitGroup(lv_workerType, gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == lv_gatherAbil) && (UnitGetType(OrderGetTargetUnit(UnitOrder(UnitGroupLoopCurrent(), 0))) == lv_geyserType)) || ((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == lv_gatherReturnAbil) && (UnitHasBehavior2(UnitGroupLoopCurrent(), lv_carryBehavior) == true)))) {
}
else {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/sc2tutorial.sc2map/MapScript.galaxy:3547
UnitGroupLoopBegin(UnitGroup(lv_workerType, gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == lv_gatherAbil) && (UnitGetType(OrderGetTargetUnit(UnitOrder(UnitGroupLoopCurrent(), 0))) == lv_geyserType)) || ((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == lv_gatherReturnAbil) && (UnitHasBehavior2(UnitGroupLoopCurrent(), lv_carryBehavior) == true)))) {
}
else {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:2410
auto50687FF9_var = UnitGroupUnitFromEnd(auto50687FF9_g, auto50687FF9_u);
if (auto50687FF9_var == null) { break; }
if ((OrderGetAbilityCommand(UnitOrder(auto50687FF9_var, 0)) == AbilityCommand("ProtossBuild", 1)) && (DistanceBetweenPoints(OrderGetTargetPoint(UnitOrder(auto50687FF9_var, 0)), UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 1))) <= 6.5)) {
lv_gatewayValid1 = true;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:2414
}
if ((OrderGetAbilityCommand(UnitOrder(auto50687FF9_var, 0)) == AbilityCommand("ProtossBuild", 1)) && (DistanceBetweenPoints(OrderGetTargetPoint(UnitOrder(auto50687FF9_var, 0)), UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 2))) <= 6.5)) {
lv_gatewayValid2 = true;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:3102
autoDD24C83D_var = UnitGroupUnitFromEnd(autoDD24C83D_g, autoDD24C83D_u);
if (autoDD24C83D_var == null) { break; }
if ((OrderGetAbilityCommand(UnitOrder(autoDD24C83D_var, 0)) == AbilityCommand("ProtossBuild", 2))) {
lv_validBuildOrder = true;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:3332
auto220BF287_var = UnitGroupUnitFromEnd(auto220BF287_g, auto220BF287_u);
if (auto220BF287_var == null) { break; }
if ((!((((OrderGetAbilityCommand(UnitOrder(auto220BF287_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto220BF287_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto220BF287_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto220BF287_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))))) {
UnitGroupAdd(lv_validProbes, auto220BF287_var);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:3332
auto220BF287_var = UnitGroupUnitFromEnd(auto220BF287_g, auto220BF287_u);
if (auto220BF287_var == null) { break; }
if ((!((((OrderGetAbilityCommand(UnitOrder(auto220BF287_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto220BF287_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto220BF287_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto220BF287_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))))) {
UnitGroupAdd(lv_validProbes, auto220BF287_var);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:3453
auto70400E0A_var = UnitGroupUnitFromEnd(auto70400E0A_g, auto70400E0A_u);
if (auto70400E0A_var == null) { break; }
if ((((OrderGetAbilityCommand(UnitOrder(auto70400E0A_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto70400E0A_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto70400E0A_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto70400E0A_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))) {
lv_probesOnGas += 1;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:3453
auto70400E0A_var = UnitGroupUnitFromEnd(auto70400E0A_g, auto70400E0A_u);
if (auto70400E0A_var == null) { break; }
if ((((OrderGetAbilityCommand(UnitOrder(auto70400E0A_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto70400E0A_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto70400E0A_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto70400E0A_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))) {
lv_probesOnGas += 1;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:3811
auto4D4BD4E5_var = UnitGroupUnitFromEnd(auto4D4BD4E5_g, auto4D4BD4E5_u);
if (auto4D4BD4E5_var == null) { break; }
if ((((OrderGetAbilityCommand(UnitOrder(auto4D4BD4E5_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto4D4BD4E5_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto4D4BD4E5_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto4D4BD4E5_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))) {
lv_probesOnGas += 1;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur02.sc2map/MapScript.galaxy:3811
auto4D4BD4E5_var = UnitGroupUnitFromEnd(auto4D4BD4E5_g, auto4D4BD4E5_u);
if (auto4D4BD4E5_var == null) { break; }
if ((((OrderGetAbilityCommand(UnitOrder(auto4D4BD4E5_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto4D4BD4E5_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto4D4BD4E5_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto4D4BD4E5_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))) {
lv_probesOnGas += 1;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:6580
}
if (!((OrderGetAbilityCommand(UnitOrder(gv_narud, 0)) != AbilityCommand("attack", 0)))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:2948
IntLoopBegin(0, 10);
for ( ; !IntLoopDone() ; IntLoopStep() ) {
if ((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), IntLoopCurrent())) == AbilityCommand("attack", 0)) && (OrderGetTargetType(UnitOrder(UnitGroupLoopCurrent(), IntLoopCurrent())) == c_orderTargetUnit) && (UnitGetOwner(OrderGetTargetUnit(UnitOrder(UnitGroupLoopCurrent(), IntLoopCurrent()))) == gv_p01_USER)) {
UnitGroupAdd(gv_combatHelperUnitGroup, UnitGroupLoopCurrent());
ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), "HaloStart");
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3014
}
if (!(((OrderGetAbilityCommand(EventUnitOrder()) != AbilityCommand("attack", 0)) || ((OrderGetAbilityCommand(EventUnitOrder()) == AbilityCommand("attack", 0)) && (OrderGetTargetType(EventUnitOrder()) != c_orderTargetUnit)) || ((OrderGetAbilityCommand(EventUnitOrder()) == AbilityCommand("attack", 0)) && (OrderGetTargetType(EventUnitOrder()) == c_orderTargetUnit) && (UnitGetOwner(OrderGetTargetUnit(EventUnitOrder())) != gv_p01_USER))))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3014
}
if (!(((OrderGetAbilityCommand(EventUnitOrder()) != AbilityCommand("attack", 0)) || ((OrderGetAbilityCommand(EventUnitOrder()) == AbilityCommand("attack", 0)) && (OrderGetTargetType(EventUnitOrder()) != c_orderTargetUnit)) || ((OrderGetAbilityCommand(EventUnitOrder()) == AbilityCommand("attack", 0)) && (OrderGetTargetType(EventUnitOrder()) == c_orderTargetUnit) && (UnitGetOwner(OrderGetTargetUnit(EventUnitOrder())) != gv_p01_USER))))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3014
}
if (!(((OrderGetAbilityCommand(EventUnitOrder()) != AbilityCommand("attack", 0)) || ((OrderGetAbilityCommand(EventUnitOrder()) == AbilityCommand("attack", 0)) && (OrderGetTargetType(EventUnitOrder()) != c_orderTargetUnit)) || ((OrderGetAbilityCommand(EventUnitOrder()) == AbilityCommand("attack", 0)) && (OrderGetTargetType(EventUnitOrder()) == c_orderTargetUnit) && (UnitGetOwner(OrderGetTargetUnit(EventUnitOrder())) != gv_p01_USER))))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3072
}
if (!((OrderGetAbilityCommand(UnitOrder(EventUnit(), 0)) == AbilityCommand("move", 0)))) {
return false;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3101
UnitGroupLoopBegin(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(EventUnit()), 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == AbilityCommand("move", 0))) {
UnitGroupAdd(gv_combatHelperUnitGroup, UnitGroupLoopCurrent());
ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), "HaloStart");
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3351
UnitGroupLoopBegin(UnitGroup("SCV", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == AbilityCommand("TerranBuild", 1))) {
lv_validBuildOrder = true;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3369
UnitGroupLoopBegin(UnitGroup("Probe", gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == AbilityCommand("ProtossBuild", 1))) {
lv_validBuildOrder = true;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3547
UnitGroupLoopBegin(UnitGroup(lv_workerType, gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == lv_gatherAbil) && (UnitGetType(OrderGetTargetUnit(UnitOrder(UnitGroupLoopCurrent(), 0))) == lv_geyserType)) || ((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == lv_gatherReturnAbil) && (UnitHasBehavior2(UnitGroupLoopCurrent(), lv_carryBehavior) == true)))) {
}
else {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/sc2tutorial.sc2map — MapScript.galaxy:3547
UnitGroupLoopBegin(UnitGroup(lv_workerType, gv_p01_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0));
for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
if ((((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == lv_gatherAbil) && (UnitGetType(OrderGetTargetUnit(UnitOrder(UnitGroupLoopCurrent(), 0))) == lv_geyserType)) || ((OrderGetAbilityCommand(UnitOrder(UnitGroupLoopCurrent(), 0)) == lv_gatherReturnAbil) && (UnitHasBehavior2(UnitGroupLoopCurrent(), lv_carryBehavior) == true)))) {
}
else {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:2410
auto50687FF9_var = UnitGroupUnitFromEnd(auto50687FF9_g, auto50687FF9_u);
if (auto50687FF9_var == null) { break; }
if ((OrderGetAbilityCommand(UnitOrder(auto50687FF9_var, 0)) == AbilityCommand("ProtossBuild", 1)) && (DistanceBetweenPoints(OrderGetTargetPoint(UnitOrder(auto50687FF9_var, 0)), UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 1))) <= 6.5)) {
lv_gatewayValid1 = true;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:2414
}
if ((OrderGetAbilityCommand(UnitOrder(auto50687FF9_var, 0)) == AbilityCommand("ProtossBuild", 1)) && (DistanceBetweenPoints(OrderGetTargetPoint(UnitOrder(auto50687FF9_var, 0)), UnitGetPosition(UnitGroupUnit(gv_tBuildPylonGateways, 2))) <= 6.5)) {
lv_gatewayValid2 = true;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:3102
autoDD24C83D_var = UnitGroupUnitFromEnd(autoDD24C83D_g, autoDD24C83D_u);
if (autoDD24C83D_var == null) { break; }
if ((OrderGetAbilityCommand(UnitOrder(autoDD24C83D_var, 0)) == AbilityCommand("ProtossBuild", 2))) {
lv_validBuildOrder = true;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:3332
auto220BF287_var = UnitGroupUnitFromEnd(auto220BF287_g, auto220BF287_u);
if (auto220BF287_var == null) { break; }
if ((!((((OrderGetAbilityCommand(UnitOrder(auto220BF287_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto220BF287_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto220BF287_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto220BF287_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))))) {
UnitGroupAdd(lv_validProbes, auto220BF287_var);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:3332
auto220BF287_var = UnitGroupUnitFromEnd(auto220BF287_g, auto220BF287_u);
if (auto220BF287_var == null) { break; }
if ((!((((OrderGetAbilityCommand(UnitOrder(auto220BF287_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto220BF287_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto220BF287_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto220BF287_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))))) {
UnitGroupAdd(lv_validProbes, auto220BF287_var);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:3453
auto70400E0A_var = UnitGroupUnitFromEnd(auto70400E0A_g, auto70400E0A_u);
if (auto70400E0A_var == null) { break; }
if ((((OrderGetAbilityCommand(UnitOrder(auto70400E0A_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto70400E0A_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto70400E0A_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto70400E0A_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))) {
lv_probesOnGas += 1;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:3453
auto70400E0A_var = UnitGroupUnitFromEnd(auto70400E0A_g, auto70400E0A_u);
if (auto70400E0A_var == null) { break; }
if ((((OrderGetAbilityCommand(UnitOrder(auto70400E0A_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto70400E0A_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto70400E0A_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto70400E0A_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))) {
lv_probesOnGas += 1;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:3811
auto4D4BD4E5_var = UnitGroupUnitFromEnd(auto4D4BD4E5_g, auto4D4BD4E5_u);
if (auto4D4BD4E5_var == null) { break; }
if ((((OrderGetAbilityCommand(UnitOrder(auto4D4BD4E5_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto4D4BD4E5_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto4D4BD4E5_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto4D4BD4E5_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))) {
lv_probesOnGas += 1;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur02.sc2map — MapScript.galaxy:3811
auto4D4BD4E5_var = UnitGroupUnitFromEnd(auto4D4BD4E5_g, auto4D4BD4E5_u);
if (auto4D4BD4E5_var == null) { break; }
if ((((OrderGetAbilityCommand(UnitOrder(auto4D4BD4E5_var, 0)) == AbilityCommand("ProbeHarvest", 0)) && (UnitGetType(OrderGetTargetUnit(UnitOrder(auto4D4BD4E5_var, 0))) == "Assimilator")) || ((OrderGetAbilityCommand(UnitOrder(auto4D4BD4E5_var, 0)) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior2(auto4D4BD4E5_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))) {
lv_probesOnGas += 1;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2map — MapScript.galaxy:6580
}
if (!((OrderGetAbilityCommand(UnitOrder(gv_narud, 0)) != AbilityCommand("attack", 0)))) {
return false;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2324
if (autoD777BD30_var == null) { break; }
lv_currentOrder = UnitOrder(autoD777BD30_var, 0);
if ((((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("ProbeHarvest", 0)) && ((UnitGetType(OrderGetTargetUnit(lv_currentOrder)) == "MineralField") || (UnitGetType(OrderGetTargetUnit(lv_currentOrder)) == "RichMineralField"))) || ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("ProbeHarvest", 1)) && ((UnitHasBehavior(autoD777BD30_var, "CarryMineralFieldMinerals") == true) || (UnitHasBehavior(autoD777BD30_var, "CarryHighYieldMineralFieldMinerals") == true))))) {
lv_probeCount += 1;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2324
if (autoD777BD30_var == null) { break; }
lv_currentOrder = UnitOrder(autoD777BD30_var, 0);
if ((((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("ProbeHarvest", 0)) && ((UnitGetType(OrderGetTargetUnit(lv_currentOrder)) == "MineralField") || (UnitGetType(OrderGetTargetUnit(lv_currentOrder)) == "RichMineralField"))) || ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("ProbeHarvest", 1)) && ((UnitHasBehavior(autoD777BD30_var, "CarryMineralFieldMinerals") == true) || (UnitHasBehavior(autoD777BD30_var, "CarryHighYieldMineralFieldMinerals") == true))))) {
lv_probeCount += 1;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2395
if (auto7D3CC923_var == null) { break; }
lv_currentOrder = UnitOrder(auto7D3CC923_var, 0);
if ((((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("ProbeHarvest", 0)) && (OrderGetTargetUnit(lv_currentOrder) == lp_assimilator)) || ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior(auto7D3CC923_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))) {
lv_probeCount += 1;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2395
if (auto7D3CC923_var == null) { break; }
lv_currentOrder = UnitOrder(auto7D3CC923_var, 0);
if ((((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("ProbeHarvest", 0)) && (OrderGetTargetUnit(lv_currentOrder) == lp_assimilator)) || ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("ProbeHarvest", 1)) && (UnitHasBehavior(auto7D3CC923_var, "CarryHarvestableVespeneGeyserGasProtoss") == true)))) {
lv_probeCount += 1;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:2406
if (autoB8EF7717_var == null) { break; }
lv_currentOrder = UnitOrder(autoB8EF7717_var, 0);
if ((OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("DroneHarvest", 0)) && (OrderGetTargetUnit(lv_currentOrder) == lp_assimilator)) {
lv_probeCount += 1;
}
mods/balancemulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:41
}
if (!((OrderGetAbilityCommand(lv_order) == AbilityCommand("BattlecruiserAttack", 0)))) {
return false;
}
mods/balancemulti.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:267
}
if (!(((OrderGetAbilityCommand(lv_order) != AbilityCommand("BattlecruiserAttack", 0)) || (UnitIsAlive(lv_target) == false)))) {
return false;
}
mods/balancemultilanmethodcleanedup.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:41
}
if (!((OrderGetAbilityCommand(lv_order) == AbilityCommand("BattlecruiserAttack", 0)))) {
return false;
}
mods/balancemultilanmethodcleanedup.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:267
}
if (!(((OrderGetAbilityCommand(lv_order) != AbilityCommand("BattlecruiserAttack", 0)) || (UnitIsAlive(lv_target) == false)))) {
return false;
}
mods/balancemultislowwarpprism.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:41
}
if (!((OrderGetAbilityCommand(lv_order) == AbilityCommand("BattlecruiserAttack", 0)))) {
return false;
}
mods/balancemultislowwarpprism.sc2mod — base.sc2data/TriggerLibs/VoidMultiLib.galaxy:267
}
if (!(((OrderGetAbilityCommand(lv_order) != AbilityCommand("BattlecruiserAttack", 0)) || (UnitIsAlive(lv_target) == false)))) {
return false;
}
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TacticalAI.galaxy:277
//--------------------------------------------------------------------------------------------------
bool AIIsAttackOrder (order o) {
return StringEqual(AbilityCommandGetAbility(OrderGetAbilityCommand(o)), c_AB_Attack, true);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TacticalAI.galaxy:284
//--------------------------------------------------------------------------------------------------
bool AIIsMoveOrder (order o) {
return StringEqual(AbilityCommandGetAbility(OrderGetAbilityCommand(o)), c_AB_Move, true);
}
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactProtAI.galaxy:1068
curOrder = UnitOrder(aiUnit, 0);
if ((curOrder != null) && (OrderGetAbilityCommand(curOrder) == AbilityCommand(chrono, 0)) && (OrderGetTargetType(curOrder) == c_orderTargetUnit)) {
// should only happen in void with the new chrono boost
curTarget = OrderGetTargetUnit(curOrder);
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:160
}
curAbilCmd = OrderGetAbilityCommand(curOrd);
if (AbilityCommandGetAbility(curAbilCmd) != c_AB_Bombardment ||
AbilityCommandGetCommand(curAbilCmd) != 0) {
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1613
// make sure AutoCast is only On if (airOnly == false) and vice versa
autoCastOrd = AICreateOrder(player, c_AB_LockOn, 0);
autoCastCmd = OrderGetAbilityCommand (autoCastOrd);
if (UnitCheckAbilCmdState(aiUnit, autoCastCmd, c_cmdStateIsAutoCast) == airOnly) {
autoCastOrd = OrderSetAutoCast(autoCastCmd, !airOnly);
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactTerrAI.galaxy:1623
curOrder = UnitOrder(aiUnit, 0);
if ((curOrder != null) && (OrderGetAbilityCommand(curOrder) == AbilityCommand("attack", 0)) && (OrderGetTargetType(curOrder) == c_orderTargetUnit)) {
curTarget = OrderGetTargetUnit(curOrder);
}
mods/heroesbrawlmods/arenamodemods/templearena.stormmod — base.stormdata/LibAMCT.galaxy:2206
lv_currentOrder = UnitOrder(lv_creepUnit, 0);
if ((!(((lv_currentOrder == null) || (OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("move", 0)) || (OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("move", 4)) || (OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("attack", 0)) || (OrderGetAbilityCommand(lv_currentOrder) == AbilityCommand("AttackAlly", 0)))))) {
return true;
}