# Reset Ability Cooldowns
Grammar — Reset spendLocation|Location cooldowns on ability abilityCommand|Ability on unit u
Flags —Native
|Action
Resets the specified cooldowns on the specified ability on the specified unit.
# Arguments
unit
— Unitabilcmd
— Ability Commandint
<preset::Unit_Color_Change_Option24> — Spend Location
Returns — void
native void UnitAbilityReset(
unit inUnit,
abilcmd inAbilCmd,
int inLocation,
);
# Related
Category: Unit / Charges And Cooldowns
- Add Charge Remaining Regen Time For Unit Behavior —
void
— UnitBehaviorAddChargeRegenRemaining - Add Charge Remaining Regen Time For Unit Ability —
void
— UnitAbilityAddChargeRegenRemaining - Add Charge Remaining Regen Time For Unit —
void
— UnitAddChargeRegenRemaining - Add Charge Full Regen Time For Unit Behavior —
void
— UnitBehaviorAddChargeRegenFull - Add Charge Full Regen Time For Unit Ability —
void
— UnitAbilityAddChargeRegenFull - Add Charge Full Regen Time For Unit —
void
— UnitAddChargeRegenFull - Add Charge Used For Unit Behavior —
void
— UnitBehaviorAddChargeUsed - Add Charge Used For Unit Ability —
void
— UnitAbilityAddChargeUsed - Add Charge Used For Unit —
void
— UnitAddChargeUsed - Remove Charge Used For Unit Behavior —
void
— libNtve_gf_UnitBehaviorRemoveChargeUsed - Remove Charge Used For Unit Ability —
void
— libNtve_gf_UnitAbilityRemoveChargeUsed - Remove Charge Used For Unit —
void
— libNtve_gf_UnitRemoveChargeUsed - Charge Regen Remaining For Unit Behavior —
fixed
— UnitBehaviorGetChargeRegen - Charge Regen Remaining For Unit Ability —
fixed
— UnitAbilityGetChargeRegen - Charge Regen Remaining For Unit —
fixed
— UnitGetChargeRegen - Charge Regen Full For Unit Behavior —
fixed
— UnitBehaviorGetChargeRegenFull - Charge Regen Full For Unit Ability —
fixed
— UnitAbilityGetChargeRegenFull - Charge Regen Full For Unit —
fixed
— UnitGetChargeRegenFull - Charge Used For Unit Behavior —
fixed
— UnitBehaviorGetChargeUsed - Charge Used For Unit Ability —
fixed
— UnitAbilityGetChargeUsed - Charge Used For Unit —
fixed
— UnitGetChargeUsed - Add Cooldown For Unit Behavior —
void
— UnitBehaviorAddCooldown - Add Cooldown For Unit Ability —
void
— UnitAbilityAddCooldown - Modify Cooldown For Unit —
void
— UnitModifyCooldown - Clear Cooldowns For Unit —
void
— UnitClearCooldowns - Remove Cooldown For Unit Behavior —
void
— libNtve_gf_UnitBehaviorRemoveCooldown - Remove Cooldown For Unit Ability —
void
— libNtve_gf_UnitAbilityRemoveCooldown - Remove Cooldown For Unit —
void
— libNtve_gf_UnitRemoveCooldown - Cooldown For Unit Behavior —
fixed
— UnitBehaviorGetCooldown - Cooldown For Unit Abilty —
fixed
— UnitAbilityGetCooldown - Cooldown For Unit —
fixed
— UnitGetCooldown - Activate Ability Cooldowns —
void
— UnitAbilitySpendExplicit - Reset Ability Cooldowns —
void
— UnitAbilityReset - Ability Charge Info For Unit —
fixed
— UnitAbilityChargeInfo
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:1460
if ((UnitGroupHasUnit(gv_infestorAggressionInhibitor, EventUnit()) == false)) {
UnitGroupAdd(gv_infestorAggressionInhibitor, EventUnit());
UnitAbilityReset(EventUnit(), AbilityCommand("InfestedTerrans", 0), c_spendLocationAll);
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:883
libNtve_gf_ShowHideUnit(gv_nova, true);
libNtve_gf_MakeUnitInvulnerable(gv_nova, false);
UnitAbilityReset(gv_nova, AbilityCommand("NovaSnipe", 0), c_spendLocationAll);
UnitIssueOrder(gv_nova, Order(AbilityCommand("ReleaseMinion", 0)), c_orderQueueAddToEnd);
UnitAbilityReset(gv_nova, AbilityCommand("Domination", 0), c_spendLocationAll);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:885
UnitAbilityReset(gv_nova, AbilityCommand("NovaSnipe", 0), c_spendLocationAll);
UnitIssueOrder(gv_nova, Order(AbilityCommand("ReleaseMinion", 0)), c_orderQueueAddToEnd);
UnitAbilityReset(gv_nova, AbilityCommand("Domination", 0), c_spendLocationAll);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:2763
if ((UnitGroupCount(UnitGroup("AutoTurret", gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility);
UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("Tychus03OmegaStorm", 0), libNtve_gf_CenterOfUnitGroup(UnitGroup("AutoTurret", gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 8.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
Wait(2.0, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:2771
if ((UnitGroupCount(UnitGroup("SiegeTankSieged", gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility);
UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("Tychus03OmegaStorm", 0), libNtve_gf_CenterOfUnitGroup(UnitGroup("SiegeTankSieged", gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 8.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
Wait(2.0, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:2779
if ((UnitGroupCount(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 5.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 5)) {
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility);
UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("Tychus03OmegaStorm", 0), libNtve_gf_CenterOfUnitGroup(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 5.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
Wait(2.0, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:656
// Automatic Variable Declarations
// Implementation
UnitAbilityReset(gv_tHEONERAYNOR, AbilityCommand("RaynorSnipe", 0), c_spendLocationAll);
UnitAbilityReset(gv_tHEONETYCHUS, AbilityCommand("BonesTossGrenade", 0), c_spendLocationAll);
UnitAbilityReset(gv_tHEONESWANN, AbilityCommand("DutchPlaceTurret", 0), c_spendLocationAll);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:657
// Implementation
UnitAbilityReset(gv_tHEONERAYNOR, AbilityCommand("RaynorSnipe", 0), c_spendLocationAll);
UnitAbilityReset(gv_tHEONETYCHUS, AbilityCommand("BonesTossGrenade", 0), c_spendLocationAll);
UnitAbilityReset(gv_tHEONESWANN, AbilityCommand("DutchPlaceTurret", 0), c_spendLocationAll);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:658
UnitAbilityReset(gv_tHEONERAYNOR, AbilityCommand("RaynorSnipe", 0), c_spendLocationAll);
UnitAbilityReset(gv_tHEONETYCHUS, AbilityCommand("BonesTossGrenade", 0), c_spendLocationAll);
UnitAbilityReset(gv_tHEONESWANN, AbilityCommand("DutchPlaceTurret", 0), c_spendLocationAll);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:4986
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("EnergyNova", 0), true);
UnitAbilityReset(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll);
TriggerExecute(gt_BriefingZergAttacksMajor, true, false);
Wait(10.0, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:5644
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Artifact", c_unitCreateIgnorePlacement, gv_pLAYER_USER, lv_artifactPosition);
gv_artifact = UnitLastCreated();
UnitAbilityReset(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll);
Wait(0.5, c_timeGame);
libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(gv_artifact), "Work");
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:416
UnitSetPropertyFixed(autoD29854AF_var, c_unitPropShieldsPercent, 100.0);
if ((UnitGetType(autoD29854AF_var) == "Zeratul")) {
UnitAbilityReset(gv_tHEONEZERATUL, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll);
UnitAbilityReset(gv_tHEONEZERATUL, AbilityCommand("ZeratulStun", 0), c_spendLocationAll);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:417
if ((UnitGetType(autoD29854AF_var) == "Zeratul")) {
UnitAbilityReset(gv_tHEONEZERATUL, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll);
UnitAbilityReset(gv_tHEONEZERATUL, AbilityCommand("ZeratulStun", 0), c_spendLocationAll);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:421
if ((UnitGetType(autoD29854AF_var) == "Stalker")) {
UnitAbilityReset(autoD29854AF_var, AbilityCommand("Blink", 0), c_spendLocationAll);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:317
// Implementation
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll);
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulStun", 0), c_spendLocationAll);
SoundPlay(SoundLink("Protoss_PowerUpSmall", 1), PlayerGroupAll(), 100.0, 0.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:318
// Implementation
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll);
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulStun", 0), c_spendLocationAll);
SoundPlay(SoundLink("Protoss_PowerUpSmall", 1), PlayerGroupAll(), 100.0, 0.0);
libNtve_gf_AttachModelToUnit(gv_zeratul, "ShieldTransferImpact", "Ref_Center");
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:4980
UnitSetPropertyFixed(gv_zeratul, c_unitPropLifePercent, 100.0);
UnitSetPropertyFixed(gv_zeratul, c_unitPropEnergyPercent, 100.0);
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulStun", 0), c_spendLocationAll);
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll);
UnitBehaviorRemove(gv_zeratul, "Read", 1);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:4981
UnitSetPropertyFixed(gv_zeratul, c_unitPropEnergyPercent, 100.0);
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulStun", 0), c_spendLocationAll);
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll);
UnitBehaviorRemove(gv_zeratul, "Read", 1);
UnitBehaviorRemove(gv_zeratul, "SuppressCloak", 1);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2map — MapScript.galaxy:1460
if ((UnitGroupHasUnit(gv_infestorAggressionInhibitor, EventUnit()) == false)) {
UnitGroupAdd(gv_infestorAggressionInhibitor, EventUnit());
UnitAbilityReset(EventUnit(), AbilityCommand("InfestedTerrans", 0), c_spendLocationAll);
}
else {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:883
libNtve_gf_ShowHideUnit(gv_nova, true);
libNtve_gf_MakeUnitInvulnerable(gv_nova, false);
UnitAbilityReset(gv_nova, AbilityCommand("NovaSnipe", 0), c_spendLocationAll);
UnitIssueOrder(gv_nova, Order(AbilityCommand("ReleaseMinion", 0)), c_orderQueueAddToEnd);
UnitAbilityReset(gv_nova, AbilityCommand("Domination", 0), c_spendLocationAll);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2map — MapScript.galaxy:885
UnitAbilityReset(gv_nova, AbilityCommand("NovaSnipe", 0), c_spendLocationAll);
UnitIssueOrder(gv_nova, Order(AbilityCommand("ReleaseMinion", 0)), c_orderQueueAddToEnd);
UnitAbilityReset(gv_nova, AbilityCommand("Domination", 0), c_spendLocationAll);
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus03.sc2map — MapScript.galaxy:2763
if ((UnitGroupCount(UnitGroup("AutoTurret", gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility);
UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("Tychus03OmegaStorm", 0), libNtve_gf_CenterOfUnitGroup(UnitGroup("AutoTurret", gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 8.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
Wait(2.0, c_timeGame);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus03.sc2map — MapScript.galaxy:2771
if ((UnitGroupCount(UnitGroup("SiegeTankSieged", gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility);
UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("Tychus03OmegaStorm", 0), libNtve_gf_CenterOfUnitGroup(UnitGroup("SiegeTankSieged", gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 8.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
Wait(2.0, c_timeGame);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus03.sc2map — MapScript.galaxy:2779
if ((UnitGroupCount(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 5.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 5)) {
UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility);
UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("Tychus03OmegaStorm", 0), libNtve_gf_CenterOfUnitGroup(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 5.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
Wait(2.0, c_timeGame);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:656
// Automatic Variable Declarations
// Implementation
UnitAbilityReset(gv_tHEONERAYNOR, AbilityCommand("RaynorSnipe", 0), c_spendLocationAll);
UnitAbilityReset(gv_tHEONETYCHUS, AbilityCommand("BonesTossGrenade", 0), c_spendLocationAll);
UnitAbilityReset(gv_tHEONESWANN, AbilityCommand("DutchPlaceTurret", 0), c_spendLocationAll);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:657
// Implementation
UnitAbilityReset(gv_tHEONERAYNOR, AbilityCommand("RaynorSnipe", 0), c_spendLocationAll);
UnitAbilityReset(gv_tHEONETYCHUS, AbilityCommand("BonesTossGrenade", 0), c_spendLocationAll);
UnitAbilityReset(gv_tHEONESWANN, AbilityCommand("DutchPlaceTurret", 0), c_spendLocationAll);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2map — MapScript.galaxy:658
UnitAbilityReset(gv_tHEONERAYNOR, AbilityCommand("RaynorSnipe", 0), c_spendLocationAll);
UnitAbilityReset(gv_tHEONETYCHUS, AbilityCommand("BonesTossGrenade", 0), c_spendLocationAll);
UnitAbilityReset(gv_tHEONESWANN, AbilityCommand("DutchPlaceTurret", 0), c_spendLocationAll);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2map — MapScript.galaxy:4986
TechTreeAbilityAllow(gv_pLAYER_USER, AbilityCommand("EnergyNova", 0), true);
UnitAbilityReset(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll);
TriggerExecute(gt_BriefingZergAttacksMajor, true, false);
Wait(10.0, c_timeGame);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2map — MapScript.galaxy:5644
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Artifact", c_unitCreateIgnorePlacement, gv_pLAYER_USER, lv_artifactPosition);
gv_artifact = UnitLastCreated();
UnitAbilityReset(gv_artifact, AbilityCommand("EnergyNova", 0), c_spendLocationAll);
Wait(0.5, c_timeGame);
libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(gv_artifact), "Work");
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:416
UnitSetPropertyFixed(autoD29854AF_var, c_unitPropShieldsPercent, 100.0);
if ((UnitGetType(autoD29854AF_var) == "Zeratul")) {
UnitAbilityReset(gv_tHEONEZERATUL, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll);
UnitAbilityReset(gv_tHEONEZERATUL, AbilityCommand("ZeratulStun", 0), c_spendLocationAll);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:417
if ((UnitGetType(autoD29854AF_var) == "Zeratul")) {
UnitAbilityReset(gv_tHEONEZERATUL, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll);
UnitAbilityReset(gv_tHEONEZERATUL, AbilityCommand("ZeratulStun", 0), c_spendLocationAll);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul01.sc2map — MapScript.galaxy:421
if ((UnitGetType(autoD29854AF_var) == "Stalker")) {
UnitAbilityReset(autoD29854AF_var, AbilityCommand("Blink", 0), c_spendLocationAll);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul03.sc2map — MapScript.galaxy:317
// Implementation
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll);
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulStun", 0), c_spendLocationAll);
SoundPlay(SoundLink("Protoss_PowerUpSmall", 1), PlayerGroupAll(), 100.0, 0.0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul03.sc2map — MapScript.galaxy:318
// Implementation
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll);
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulStun", 0), c_spendLocationAll);
SoundPlay(SoundLink("Protoss_PowerUpSmall", 1), PlayerGroupAll(), 100.0, 0.0);
libNtve_gf_AttachModelToUnit(gv_zeratul, "ShieldTransferImpact", "Ref_Center");
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul03.sc2map — MapScript.galaxy:4980
UnitSetPropertyFixed(gv_zeratul, c_unitPropLifePercent, 100.0);
UnitSetPropertyFixed(gv_zeratul, c_unitPropEnergyPercent, 100.0);
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulStun", 0), c_spendLocationAll);
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll);
UnitBehaviorRemove(gv_zeratul, "Read", 1);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul03.sc2map — MapScript.galaxy:4981
UnitSetPropertyFixed(gv_zeratul, c_unitPropEnergyPercent, 100.0);
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulStun", 0), c_spendLocationAll);
UnitAbilityReset(gv_zeratul, AbilityCommand("ZeratulBlink", 0), c_spendLocationAll);
UnitBehaviorRemove(gv_zeratul, "Read", 1);
UnitBehaviorRemove(gv_zeratul, "SuppressCloak", 1);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:11683
UnitIssueOrder(gv_kerrigan, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
libNtve_gf_MakeUnitFacePoint(gv_kerrigan, PointFromId(423), 0.0);
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll);
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll);
UnitSetPosition(gv_kerrigan2, PointFromId(1185), false);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:11684
libNtve_gf_MakeUnitFacePoint(gv_kerrigan, PointFromId(423), 0.0);
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll);
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll);
UnitSetPosition(gv_kerrigan2, PointFromId(1185), false);
UnitIssueOrder(gv_kerrigan2, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:12016
UnitIssueOrder(gv_kerrigan, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(499)), c_orderQueueReplace);
libNtve_gf_MakeUnitFacePoint(gv_kerrigan, PointFromId(527), 0.0);
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll);
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll);
libNtve_gf_ShowHideUnit(gv_kerrigan2, true);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:12017
libNtve_gf_MakeUnitFacePoint(gv_kerrigan, PointFromId(527), 0.0);
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll);
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll);
libNtve_gf_ShowHideUnit(gv_kerrigan2, true);
UnitSetPropertyFixed(gv_kerrigan2, c_unitPropLifePercent, 100.0);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:12370
UnitSetPosition(gv_kerrigan, PointFromId(1632), false);
libNtve_gf_MakeUnitFacePoint(gv_kerrigan, PointFromId(681), 0.0);
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll);
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll);
UnitSetPosition(gv_kerrigan2, PointFromId(1633), false);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:12371
libNtve_gf_MakeUnitFacePoint(gv_kerrigan, PointFromId(681), 0.0);
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll);
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll);
UnitSetPosition(gv_kerrigan2, PointFromId(1633), false);
libNtve_gf_MakeUnitFacePoint(gv_kerrigan2, PointFromId(681), 0.0);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:12955
UnitSetPropertyFixed(gv_kerrigan, c_unitPropLifePercent, 100.0);
UnitSetPropertyFixed(gv_kerrigan, c_unitPropEnergyPercent, 100.0);
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll);
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll);
UIAlertClear(gv_pLAYER_01_USER);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:12956
UnitSetPropertyFixed(gv_kerrigan, c_unitPropEnergyPercent, 100.0);
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll);
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll);
UIAlertClear(gv_pLAYER_01_USER);
VisRevealerCreate(gv_pLAYER_01_USER, RegionFromId(39));
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:11683
UnitIssueOrder(gv_kerrigan, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
libNtve_gf_MakeUnitFacePoint(gv_kerrigan, PointFromId(423), 0.0);
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll);
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll);
UnitSetPosition(gv_kerrigan2, PointFromId(1185), false);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:11684
libNtve_gf_MakeUnitFacePoint(gv_kerrigan, PointFromId(423), 0.0);
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll);
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll);
UnitSetPosition(gv_kerrigan2, PointFromId(1185), false);
UnitIssueOrder(gv_kerrigan2, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:12016
UnitIssueOrder(gv_kerrigan, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(499)), c_orderQueueReplace);
libNtve_gf_MakeUnitFacePoint(gv_kerrigan, PointFromId(527), 0.0);
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll);
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll);
libNtve_gf_ShowHideUnit(gv_kerrigan2, true);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:12017
libNtve_gf_MakeUnitFacePoint(gv_kerrigan, PointFromId(527), 0.0);
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll);
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll);
libNtve_gf_ShowHideUnit(gv_kerrigan2, true);
UnitSetPropertyFixed(gv_kerrigan2, c_unitPropLifePercent, 100.0);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:12370
UnitSetPosition(gv_kerrigan, PointFromId(1632), false);
libNtve_gf_MakeUnitFacePoint(gv_kerrigan, PointFromId(681), 0.0);
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll);
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll);
UnitSetPosition(gv_kerrigan2, PointFromId(1633), false);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:12371
libNtve_gf_MakeUnitFacePoint(gv_kerrigan, PointFromId(681), 0.0);
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll);
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll);
UnitSetPosition(gv_kerrigan2, PointFromId(1633), false);
libNtve_gf_MakeUnitFacePoint(gv_kerrigan2, PointFromId(681), 0.0);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:12955
UnitSetPropertyFixed(gv_kerrigan, c_unitPropLifePercent, 100.0);
UnitSetPropertyFixed(gv_kerrigan, c_unitPropEnergyPercent, 100.0);
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll);
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll);
UIAlertClear(gv_pLAYER_01_USER);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2map — MapScript.galaxy:12956
UnitSetPropertyFixed(gv_kerrigan, c_unitPropEnergyPercent, 100.0);
UnitAbilityReset(gv_kerrigan, AbilityCommand("PsionicLift", 0), c_spendLocationAll);
UnitAbilityReset(gv_kerrigan, AbilityCommand("MindBolt", 0), c_spendLocationAll);
UIAlertClear(gv_pLAYER_01_USER);
VisRevealerCreate(gv_pLAYER_01_USER, RegionFromId(39));
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:4663
// Implementation
if ((UnitAbilityExists(lp_hero, AbilityCommandGetAbility(lp_abilityCommand)) == true)) {
UnitAbilityReset(lp_hero, lp_abilityCommand, c_spendLocationAll);
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:8986
libCore_gf_SendTransmissionCampaign(libStEx_gv_hERO_FriendlyUther, "TutorialVO|Line00727", c_transmissionDurationAdd, 0.0, false, libCore_ge_TransmissionPortraitOptioins_HidePortraitAfter, libCore_ge_TransmissionCueSoundOptions_DefaultCueSoundBehavior);
Wait(1.0, c_timeGame);
UnitAbilityReset(libGame_gv_players[1].lv_heroUnit, AbilityCommand("ZeratulBlinkStorm", 0), c_spendLocationAll);
UnitIssueOrder(libStEx_gv_hERO_PlayerUnit, Order(AbilityCommand("Mount", 0)), c_orderQueueReplace);
Wait(2.0, c_timeGame);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:8986
libCore_gf_SendTransmissionCampaign(libStEx_gv_hERO_FriendlyUther, "TutorialVO|Line00727", c_transmissionDurationAdd, 0.0, false, libCore_ge_TransmissionPortraitOptioins_HidePortraitAfter, libCore_ge_TransmissionCueSoundOptions_DefaultCueSoundBehavior);
Wait(1.0, c_timeGame);
UnitAbilityReset(libGame_gv_players[1].lv_heroUnit, AbilityCommand("ZeratulBlinkStorm", 0), c_spendLocationAll);
UnitIssueOrder(libStEx_gv_hERO_PlayerUnit, Order(AbilityCommand("Mount", 0)), c_orderQueueReplace);
Wait(2.0, c_timeGame);
mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod — base.stormdata/LibPEB1.galaxy:7038
libPEB1_gv_pEB1SpawnPodsTargetCount = libPVEB_gf_PVEDifficultyValueInt(18, 24);
UnitBehaviorAdd(libPEB1_gv_slivan, "SlivanBossDropPodPeriodicCast", libPEB1_gv_slivan, 1);
UnitAbilityReset(libPEB1_gv_slivan, AbilityCommand("SlivanBossSlimeSpit", 0), c_spendLocationAll);
return true;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:7531
libNtve_gf_UIErrorMessage(libCore_gv_playerGroupFromPlayer[lv_player], StringExternal("Param/Value/lib_GDHL_D9EC6B41"), SoundLink("UI_GenericError", -1));
UnitBehaviorRemove(lv_unit, "BarbarianLeap", 1);
UnitAbilityReset(lv_unit, AbilityCommand("BarbarianLeap", 0), c_spendLocationAll);
return true;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:7603
libNtve_gf_UIErrorMessage(libCore_gv_playerGroupFromPlayer[UnitGetOwner(lv_eventUnit)], StringExternal("Param/Value/lib_GDHL_EC6CBAAF"), SoundLink("UI_GenericError", -1));
UnitBehaviorRemove(lv_eventUnit, "BarbarianLeap", 1);
UnitAbilityReset(lv_eventUnit, AbilityCommand("BarbarianLeap", 0), c_spendLocationAll);
return true;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:19120
if ((UnitHasBehavior2(lv_rexxar, "RexxarMishaFollowRexxarCarry") == true)) {
UnitAbilityReset(lv_rexxar, AbilityCommand("RexxarMishaFollowCancel", 0), c_spendLocationUnit);
UnitIssueOrder(lv_rexxar, Order(AbilityCommand("RexxarMishaFollowCancel", 0)), c_orderQueueAddToFront);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:20925
}
UnitAbilityReset(lv_sgtHammerUnit, AbilityCommand("SgtHammerSiegeMode", 0), c_spendLocationAll);
UnitAbilitySpendExplicit(lv_sgtHammerUnit, AbilityCommand("SgtHammerSiegeMode", 0), c_spendLocationAll, 0.0, 1.0, 1.0, 1.0);
return true;
mods/heroesmapmods/battlegroundmapmods/infernalshrines.stormmod — base.stormdata/LibMSHE.galaxy:2090
libNtve_gf_UIErrorMessage(libCore_gv_playerGroupFromPlayer[EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster)], StringExternal("Param/Value/lib_MSHE_D63B1DB4"), SoundLink("UI_GenericError", -1));
UnitBehaviorRemove(EventPlayerEffectUsedUnit(c_effectUnitCaster), "MercPunisherLanerLeap", 1);
UnitAbilityReset(EventPlayerEffectUsedUnit(c_effectUnitCaster), AbilityCommand("MercPunisherLanerLeap", 0), c_spendLocationAll);
return true;
}
mods/heroesmapmods/battlegroundmapmods/infernalshrinesdata.stormmod — base.stormdata/LibMSHD.galaxy:152
libNtve_gf_UIErrorMessage(libCore_gv_playerGroupFromPlayer[EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster)], StringExternal("Param/Value/lib_MSHD_D63B1DB4"), SoundLink("UI_GenericError", -1));
UnitBehaviorRemove(EventPlayerEffectUsedUnit(c_effectUnitCaster), "MercPunisherLanerLeap", 1);
UnitAbilityReset(EventPlayerEffectUsedUnit(c_effectUnitCaster), AbilityCommand("MercPunisherLanerLeap", 0), c_spendLocationAll);
return true;
}
mods/heromods/thefirelords.stormmod — base.stormdata/LibHMaj.galaxy:507
}
UnitAbilityReset(EventUnitCreatedUnit(), AbilityCommand("RagnarosMoltenCore", 0), c_spendLocationUnit);
return true;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5130
libCOMI_gv_cM_Horner_BomberPlatforms_ReadyCount[lp_player] = UnitGroupCount(libCOMI_gv_cM_Horner_BomberPlatforms_Ready[lp_player], c_unitCountAlive);
if (((libCOMI_gv_cM_Horner_BomberPlatforms_ReadyCount[lp_player] == 0) && (lv_smallestCooldown > 0.0) && (lv_behaviorCount > 0))) {
UnitAbilityReset(libCOMI_gv_cM_GlobalCasterUnit[lp_player], AbilityCommand("HHBomberPlatformAreaBombTopBarDummyTimer", 0), c_spendLocationAbility);
UnitAbilityAddCooldown(libCOMI_gv_cM_GlobalCasterUnit[lp_player], "HHBomberPlatformAreaBombTopBarDummyTimer", "Abil/HHBomberPlatformAreaBombTopBarDummyTimer", 60.0);
UnitAbilityAddCooldown(libCOMI_gv_cM_GlobalCasterUnit[lp_player], "HHBomberPlatformAreaBombTopBarDummyTimer", "Abil/HHBomberPlatformAreaBombTopBarDummyTimer", (-1.0 * (60.0 - lv_smallestCooldown)));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:15747
lv_cooldown = UnitWeaponPeriod(EventPlayerEffectUsedUnit(c_effectUnitCaster), 1);
lv_multiplier = UnitWeaponSpeedMultiplier(EventPlayerEffectUsedUnit(c_effectUnitCaster), 1);
UnitAbilityReset(EventPlayerEffectUsedUnit(c_effectUnitCaster), AbilityCommand("LocustLaunch", 0), c_spendLocationUnit);
UnitModifyCooldown(EventPlayerEffectUsedUnit(c_effectUnitCaster), "Abil/LocustLaunch", ((lv_cooldown * lv_multiplier) / 16.0), c_cooldownOperationSet);
UnitBehaviorSetDurationRemaining(EventPlayerEffectUsedUnit(c_effectUnitCaster), "SwarmHostEggAnimation", ((lv_cooldown * lv_multiplier) / 16.0));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:15788
lv_cooldown = UnitAbilityGetCooldown(lv_unit, "RavagerAbathurCorrosiveBile", "Abil/RavagerAbathurCorrosiveBile");
lv_multiplier = UnitWeaponSpeedMultiplier(lv_unit, 1);
UnitAbilityReset(lv_unit, AbilityCommand("RavagerAbathurCorrosiveBile", 0), c_spendLocationAll);
UnitAbilityAddCooldown(lv_unit, "RavagerAbathurCorrosiveBile", "Abil/RavagerAbathurCorrosiveBile", (lv_cooldown*lv_multiplier));
return true;
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:3528
// Implementation
if ((UnitAbilityExists(lp_hero, AbilityCommandGetAbility(lp_abilityCommand)) == true)) {
UnitAbilityReset(lp_hero, lp_abilityCommand, c_spendLocationAll);
}