# Remaining Time Of Timer
Grammar — Remaining time of t
Flags —Native
|Function
Returns the remaining amount of time left on the specified timer. Note that due to rounding limitations, the remaining time of an expired timer may be slightly negative rather than exactly zero. Make sure to check for less than or equal to zero to account for this.
# Arguments
timer
— Timer
Returns — fixed
native fixed TimerGetRemaining(timer t);
# Related
Category: Timer / Timer Windows
- Create Timer Window —
int
<preset::TimerWindow> — TimerWindowCreate - Last Created Timer Window —
int
<preset::TimerWindow> — TimerWindowLastCreated - Show/Hide Timer Window —
void
— TimerWindowShow - Timer Window Is Visible —
bool
— TimerWindowVisible - Destroy Timer Window —
void
— TimerWindowDestroy - Anchor Timer Window —
void
— TimerWindowSetAnchor - Move Timer Window —
void
— TimerWindowSetPosition - Reset Timer Window Position —
void
— TimerWindowResetPosition - Set Title For Timer Window —
void
— TimerWindowSetTitle - Set Timer For Timer Window —
void
— TimerWindowSetTimer - Set Time Format For Timer Window —
void
— TimerWindowSetFormat - Set Style For Timer Window —
void
— TimerWindowSetStyle - Set Gap Width For Timer Window —
void
— TimerWindowSetGapWidth - Set Height For Timer Window —
void
— TimerWindowSetFixedHeight - Set Timer Window Color —
void
— TimerWindowSetColor - Show/Hide Timer Window Border —
void
— TimerWindowShowBorder - Show/Hide Timer Window Progress Bar —
void
— TimerWindowShowProgressBar - Set Timer Window Progress Color —
void
— TimerWindowSetProgressColor - Set Timer Window Image Type —
void
— TimerWindowSetImageType - Elapsed Time Of Timer —
fixed
— TimerGetElapsed - Remaining Time Of Timer —
fixed
— TimerGetRemaining
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:5071
libNtve_gf_MakeUnitInvulnerable(UnitFromId(693), true);
libNtve_gf_MakeUnitInvulnerable(UnitFromId(1483), true);
while (!(((UnitGroupCount(gv_colonistsOnTheMove, c_unitCountAlive) == 0) || (TimerGetRemaining(lv_Timer) == 0.0)))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:2608
TriggerEnable(TriggerGetCurrent(), false);
while (!((TimerGetRemaining(gv_mainTimer) <= 80.0))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1296
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/BFCA447F"), null, gv_purifier);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1396
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/BF5546F5"), null, gv_purifier);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1506
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/D1A1218F"), null, gv_purifier);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1620
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/F6DE8350"), null, gv_purifier);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1727
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/CCF54A48"), null, gv_purifier);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:558
lv_defenderIndex = 0;
while (true) {
if (((libNtve_gf_UnitGroupIsDead(gv_infestationOverlords[lp_colonyIndex]) == true) || (lv_defenderIndex >= gv_infestationDefenderCount[lp_colonyIndex]) || (TimerGetRemaining(lv_timeoutTimer) <= 0.0))) {
return ;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:660
UnitIssueOrder(lp_transport, Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);
while (true) {
if (((UnitIsAlive(lp_cargo) == false) || (libNtve_gf_UnitIsInsideTransport(lp_cargo) == false) || (TimerGetRemaining(lv_timeoutTimer) <= 0.0))) {
return ;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:680
UnitIssueOrder(lp_drone, OrderTargetingPoint(AbilityCommand("ZergBuild", 16), gv_infestationVirophageSpot[lp_colonyIndex]), c_orderQueueAddToEnd);
while (true) {
if (((UnitIsAlive(lp_drone) == false) || (gv_infestationVirophageUnit[lp_colonyIndex] != null) || (TimerGetRemaining(lv_timeoutTimer) <= 0.0))) {
return ;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:2116
Wait(1.0, c_timeGame);
TriggerQueueEnter();
if ((TimerGetRemaining(gv_aberrationWarningCooldown) > 0.0)) {
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1784
TimerStart(lv_timeout, 6.0, false, c_timeGame);
while (!(((TimerGetRemaining(lv_timeout) <= 0.0) || (UnitIsAlive(gv_tippedDetectorUnit) == false)))) {
Wait(0.25, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:4600
}
if ((libNtve_gf_DifficultyValueInt(0, 0, 1, 1) == 1) && (TimerGetRemaining(gv_achievementHardTimer) != 0.0)) {
AchievementAward(gv_p01_USER, "THorner04_3");
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:4299
}
if ((libNtve_gf_DifficultyValueInt(0, 0, 1, 1) == 1) && (TimerGetRemaining(gv_achievementHardTimer) != 0.0)) {
AchievementAward(gv_pLAYER_01_USER, "TRaynor02_3");
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:3327
AIAttackWaveAddUnits4(4, 4, 4, 4, "Marine");
AIAttackWaveAddUnits4(1, 1, 1, 1, "Medic");
if ((TimerGetRemaining(gv_maraudersComeOnline) == 0.0)) {
AIAttackWaveAddUnits4(1, 1, 1, 1, "Marauder");
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:3555
if (auto7A07393A_val == 0) {
AIAttackWaveAddUnits4(6, 6, 7, 7, "Marine");
if ((TimerGetRemaining(gv_maraudersComeOnline) == 0.0)) {
AIAttackWaveAddUnits4(1, 1, 2, 2, "Hellion");
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:4167
while (true) {
Wait(1.0, c_timeAI);
if (((UnitGroupCount(lv_initialMarineGroup, c_unitCountAlive) < 4) || (TimerGetRemaining(lv_indicatorTimeout) == 0.0))) {
libNtve_gf_KillModel(gv_actorMindblastIndicator);
TextTagDestroy(gv_textTagMindBlast);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:4567
}
if ((libNtve_gf_DifficultyValueInt(0, 0, 1, 1) == 1) && (TimerGetRemaining(gv_achievementHardTimer) != 0.0)) {
AchievementAward(gv_p1_USER, "TTosh03A_3");
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2290
TimerStart(lv_expirationTimer, 10.0, false, c_timeGame);
TriggerQueueEnter();
if (((gv_gameOver == true) || (TimerGetRemaining(lv_expirationTimer) == 0.0))) {
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2651
VisRevealerCreate(gv_p1_USER, RegionFromId(21));
VisRevealerEnable(VisRevealerLastCreated(), true);
if ((TimerGetRemaining(gv_zergSpeedBumpTimer) < 180.0)) {
libNtve_gf_CreateUnitsAtPoint2(36, "Zergling", 0, gv_p2_ZERG, RegionGetCenter(RegionFromId(15)));
lv_extraUnits = UnitLastCreatedGroup();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2664
}
if ((TimerGetRemaining(gv_zergSpeedBumpTimer) < 120.0)) {
libNtve_gf_CreateUnitsAtPoint2(8, "Hydralisk", 0, gv_p2_ZERG, RegionGetCenter(RegionFromId(15)));
lv_extraUnits = UnitLastCreatedGroup();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2677
}
if ((TimerGetRemaining(gv_zergSpeedBumpTimer) < 60.0)) {
libNtve_gf_CreateUnitsAtPoint2(8, "Hydralisk", 0, gv_p2_ZERG, RegionGetCenter(RegionFromId(15)));
lv_extraUnits = UnitLastCreatedGroup();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2690
}
while (!((TimerGetRemaining(gv_zergSpeedBumpTimer) < 180.0))) {
Wait(1.0, c_timeAI);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2745
}
if (!((TimerGetRemaining(gv_zergSpeedBumpTimer) > 0.0))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2948
lv_dropPoint = UnitGetPosition(EventUnit());
if ((TimerGetRemaining(gv_zergSpeedBumpTimer) > 60.0)) {
Wait(2.0, c_timeAI);
for (auto847A9D30_i = 1; auto847A9D30_i <= auto847A9D30_n; auto847A9D30_i += 1) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2997
lv_dropPoint = UnitGetPosition(EventUnit());
if ((TimerGetRemaining(gv_zergSpeedBumpTimer) > 45.0)) {
Wait(2.0, c_timeAI);
for (auto86AC6593_i = 1; auto86AC6593_i <= auto86AC6593_n; auto86AC6593_i += 1) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:3046
lv_dropPoint = UnitGetPosition(EventUnit());
if ((TimerGetRemaining(gv_zergSpeedBumpTimer) > 45.0)) {
Wait(2.0, c_timeAI);
for (auto01D7D1C9_i = 1; auto01D7D1C9_i <= auto01D7D1C9_n; auto01D7D1C9_i += 1) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:3095
lv_dropPoint = UnitGetPosition(EventUnit());
if ((TimerGetRemaining(gv_zergSpeedBumpTimer) > 30.0)) {
Wait(2.0, c_timeAI);
for (autoBAB15F7B_i = 1; autoBAB15F7B_i <= autoBAB15F7B_n; autoBAB15F7B_i += 1) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:2520
gv_fLAGKerrigansearching = true;
UnitBehaviorAdd(gv_uNIT_KERRIGAN, "ProgressBar", gv_uNIT_KERRIGAN, 1);
UnitBehaviorSetDuration(gv_uNIT_KERRIGAN, "ProgressBar", FixedToInt(TimerGetRemaining(gv_kerriganSearchTimer)));
UnitForceStatusBar(gv_uNIT_KERRIGAN, true);
UnitIssueOrder(EventUnit(), OrderTargetingUnit(AbilityCommand("KerriganSearch", 0), lv_tARGETunit), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:2732
lv_eTA = (gv_kerriganSearchTime * IntToFixed(gf_CountTargetsOfCurrentStage()));
lv_eTA = (lv_eTA - (gv_kerriganSearchTime - TimerGetRemaining(gv_kerriganSearchTimer)));
if ((lv_eTA > 0.0)) {
TimerStart(gv_kerrigansETATIMER, lv_eTA, false, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:2418
}
if (!((TimerGetRemaining(gv_tIMERVortexCooldown) <= 0.0))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:483
lv_mutaRadius = gv_cMutaRadiusCheckFast;
lv_mutaSpewSize = gv_cMutaSpewSizeFast;
if ((TimerGetRemaining(lv_cooldownTimer) > 0.0)) {
TimerStart(lv_cooldownTimer, MinF(TimerGetRemaining(lv_cooldownTimer), lv_mutaSpawnPeriod), false, c_timeAI);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:484
lv_mutaSpewSize = gv_cMutaSpewSizeFast;
if ((TimerGetRemaining(lv_cooldownTimer) > 0.0)) {
TimerStart(lv_cooldownTimer, MinF(TimerGetRemaining(lv_cooldownTimer), lv_mutaSpawnPeriod), false, c_timeAI);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:499
}
if ((gv_inCinematic == false) && (TimerGetRemaining(lv_cooldownTimer) <= 0.0) && (UnitGroupCount(gv_mutaDefenders[FixedToInt(UnitGetCustomValue(lp_spawner, 0))], c_unitCountAlive) < gv_mutaSpawnMax) && (UnitGroupCount(lv_nearbyEnemies, c_unitCountAlive) > 0)) {
gv_firstMutaSpawner = lp_spawner;
TriggerExecute(gt_PlatformInfestedLineQ, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:1261
}
TextExpressionSetToken("Param/Expression/3E1FEF24", "A", StringToText(FixedToString(TimerGetRemaining(gv_leviathanDeathWindow), c_fixedPrecisionAny)));
TriggerDebugOutput(1, TextExpressionAssemble("Param/Expression/3E1FEF24"), false);
if ((libNtve_gf_DifficultyValueInt(0, 1, 1, 1) == 1) && (TimerGetRemaining(gv_leviathanDeathWindow) > 0.0)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:1263
TextExpressionSetToken("Param/Expression/3E1FEF24", "A", StringToText(FixedToString(TimerGetRemaining(gv_leviathanDeathWindow), c_fixedPrecisionAny)));
TriggerDebugOutput(1, TextExpressionAssemble("Param/Expression/3E1FEF24"), false);
if ((libNtve_gf_DifficultyValueInt(0, 1, 1, 1) == 1) && (TimerGetRemaining(gv_leviathanDeathWindow) > 0.0)) {
AchievementAward(gv_pLAYER_P01_USER, "Anniversary_TValerian02B");
TriggerDebugOutput(1, StringExternal("Param/Value/D09C0E7C"), false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:4968
}
if ((libNtve_gf_DifficultyValueInt(0, 0, 1, 1) == 1) && (TimerGetRemaining(gv_achievementHardTimer) != 0.0)) {
AchievementAward(gv_pLAYER_P01_USER, "TValerian02B_3");
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:3000
}
if ((TimerGetRemaining(lv_pingTimeout) == 0.0)) {
UnitGroupClear(gv_airPingGroup);
UnitGroupClear(gv_airPingGroupBehind);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:5413
}
if ((libNtve_gf_DifficultyValueInt(0, 0, 1, 1) == 1) && (TimerGetRemaining(gv_achievementHardTimer) != 0.0)) {
AchievementAward(gv_p1_USER, "TZeratul02_3");
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul03.sc2map/MapScript.galaxy:3607
}
if ((libNtve_gf_DifficultyValueInt(0, 0, 1, 1) == 1) && (TimerGetRemaining(gv_achievementHardTimer) != 0.0)) {
AchievementAward(gv_p01_USER, "TZeratul03_3");
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul04.sc2map/MapScript.galaxy:5325
}
lv_tIMER = FixedToInt(TimerGetRemaining(gv_protectArchiveTimer));
ObjectiveSetName(gv_objectiveProtectArchive, (StringExternal("Param/Value/0A3D9279") + libCamp_gf_FormatTimeCampaign(lv_tIMER) + StringExternal("Param/Value/3BC7D8C2") + libCamp_gf_StoryResearchSupplementTextForObjective(libCamp_ge_StoryResearchObject_ResearchObjectProtecttheArchive, libCamp_ge_StoryResearchObjectiveTextStyle_Lumpsum, 1, 0)));
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:942
// Conditions
if (testConds) {
if (!((TimerGetRemaining(gv_mainTimer) <= 30.0))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:1036
// Conditions
if (testConds) {
if (!(((TimerGetRemaining(gv_mainTimer) <= 240.0) || (TimerGetRemaining(gv_mainTimer) <= 120.0)))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:1036
// Conditions
if (testConds) {
if (!(((TimerGetRemaining(gv_mainTimer) <= 240.0) || (TimerGetRemaining(gv_mainTimer) <= 120.0)))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:1046
}
if ((TimerGetRemaining(gv_mainTimer) <= 119.0) && (ObjectiveGetState(gv_objectiveEconomySilver) == c_objectiveStateActive)) {
ObjectiveSetState(gv_objectiveEconomySilver, c_objectiveStateFailed);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:1051
else {
}
if ((TimerGetRemaining(gv_mainTimer) <= 239.0) && (ObjectiveGetState(gv_objectiveEconomyGold) == c_objectiveStateActive)) {
ObjectiveSetState(gv_objectiveEconomyGold, c_objectiveStateFailed);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:1174
}
gv_finalScore = FixedToInt(TimerGetRemaining(gv_mainTimer));
ObjectiveSetName(gv_objectiveEconomyMarines, (TextReplaceWord(StringExternal("Param/Value/70AC623B"), StringExternal("Param/Value/D01F147F"), IntToText(gv_marineBuiltCount), c_stringReplaceAll, c_stringCase) + TextReplaceWord(StringExternal("Param/Value/011A991C"), StringExternal("Param/Value/42E17BA4"), IntToText(gv_marineNeeded), c_stringReplaceAll, c_stringCase) + StringExternal("Param/Value/56D1A642")));
ObjectiveSetName(gv_objectiveEconomyTanks, (TextReplaceWord(StringExternal("Param/Value/A649D76F"), StringExternal("Param/Value/59A897C1"), IntToText(gv_tankBuiltCount), c_stringReplaceAll, c_stringCase) + TextReplaceWord(StringExternal("Param/Value/AF8FC965"), StringExternal("Param/Value/1298E03A"), IntToText(gv_tanksNeeded), c_stringReplaceAll, c_stringCase) + StringExternal("Param/Value/E7488F48")));
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:1292
gv_gameOver = true;
gv_playerVictory = true;
gv_finalScore = FixedToInt(TimerGetRemaining(gv_mainTimer));
if ((gv_cheatUsed == false)) {
if ((libChal_gf_ChallengeScoreFromBank(libChal_ge_ChallengeType_Economy) <= -1)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:1372
TriggerQueueClear(c_triggerQueueRetain);
TriggerStop(gt_Attackwavez);
gv_finalScore = FixedToInt(TimerGetRemaining(gv_mainTimer));
Wait(2.0, c_timeReal);
gv_retryCount = (gv_retryCount + 1);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/protosspsionics.sc2map/MapScript.galaxy:199
}
while (!((TimerGetRemaining(gv_mainTimer) <= 5.0))) {
Wait(0.5, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/protosspsionics.sc2map/MapScript.galaxy:218
}
while (!((TimerGetRemaining(gv_mainTimer) <= 0.0))) {
Wait(0.5, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/protosspsionics.sc2map/MapScript.galaxy:1083
// Conditions
if (testConds) {
if (!((TimerGetRemaining(gv_mainTimer) <= 10.0))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/protosspsionics.sc2map/MapScript.galaxy:1125
// Conditions
if (testConds) {
if (!((TimerGetRemaining(gv_mainTimer) <= 5.0))) {
return false;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:495
PlayerModifyPropertyInt(gv_pLAYER_USER, c_playerPropMinerals, c_playerPropOperSetTo, 215);
TriggerExecute(gt_DisplayTipsZerg, true, false);
while (!((TimerGetRemaining(gv_prepTimer) <= 15.0))) {
Wait(0.25, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:499
}
TriggerExecute(gt_WarnPlayerZerglingRush, true, false);
while (!((TimerGetRemaining(gv_prepTimer) <= 0.0))) {
Wait(0.25, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:751
libNtve_gf_CreateUnitsWithDefaultFacing(1, "Gateway", c_unitCreateConstruct, gv_p3_ENEMY_PROTOSS, RegionGetCenter(RegionFromId(4)));
UnitSetProgressComplete(UnitLastCreated(), 1, 15);
while (!((TimerGetRemaining(gv_prepTimer) <= 15.0))) {
Wait(0.25, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:755
}
TriggerExecute(gt_WarnPlayerGatewayRush, true, false);
while (!((TimerGetRemaining(gv_prepTimer) <= 0.0))) {
Wait(0.25, c_timeGame);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2map — MapScript.galaxy:5071
libNtve_gf_MakeUnitInvulnerable(UnitFromId(693), true);
libNtve_gf_MakeUnitInvulnerable(UnitFromId(1483), true);
while (!(((UnitGroupCount(gv_colonistsOnTheMove, c_unitCountAlive) == 0) || (TimerGetRemaining(lv_Timer) == 0.0)))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2map — MapScript.galaxy:2608
TriggerEnable(TriggerGetCurrent(), false);
while (!((TimerGetRemaining(gv_mainTimer) <= 80.0))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1296
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/BFCA447F"), null, gv_purifier);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1396
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/BF5546F5"), null, gv_purifier);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1506
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/D1A1218F"), null, gv_purifier);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1620
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/F6DE8350"), null, gv_purifier);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1727
gv_powerUpTimeProgress = 0.0;
UnitBehaviorAdd(gv_purifier, "ProgressBar", gv_purifier, 1);
UnitBehaviorSetDuration(gv_purifier, "ProgressBar", FixedToInt(TimerGetRemaining(gv_poweringUpTime)));
UnitForceStatusBar(gv_purifier, true);
UIAlertUnit("Trigger", gv_pLAYER01_USER, StringExternal("Param/Value/CCF54A48"), null, gv_purifier);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2map — MapScript.galaxy:558
lv_defenderIndex = 0;
while (true) {
if (((libNtve_gf_UnitGroupIsDead(gv_infestationOverlords[lp_colonyIndex]) == true) || (lv_defenderIndex >= gv_infestationDefenderCount[lp_colonyIndex]) || (TimerGetRemaining(lv_timeoutTimer) <= 0.0))) {
return ;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2map — MapScript.galaxy:660
UnitIssueOrder(lp_transport, Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);
while (true) {
if (((UnitIsAlive(lp_cargo) == false) || (libNtve_gf_UnitIsInsideTransport(lp_cargo) == false) || (TimerGetRemaining(lv_timeoutTimer) <= 0.0))) {
return ;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2map — MapScript.galaxy:680
UnitIssueOrder(lp_drone, OrderTargetingPoint(AbilityCommand("ZergBuild", 16), gv_infestationVirophageSpot[lp_colonyIndex]), c_orderQueueAddToEnd);
while (true) {
if (((UnitIsAlive(lp_drone) == false) || (gv_infestationVirophageUnit[lp_colonyIndex] != null) || (TimerGetRemaining(lv_timeoutTimer) <= 0.0))) {
return ;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2map — MapScript.galaxy:2116
Wait(1.0, c_timeGame);
TriggerQueueEnter();
if ((TimerGetRemaining(gv_aberrationWarningCooldown) > 0.0)) {
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2map — MapScript.galaxy:1784
TimerStart(lv_timeout, 6.0, false, c_timeGame);
while (!(((TimerGetRemaining(lv_timeout) <= 0.0) || (UnitIsAlive(gv_tippedDetectorUnit) == false)))) {
Wait(0.25, c_timeGame);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner04.sc2map — MapScript.galaxy:4600
}
if ((libNtve_gf_DifficultyValueInt(0, 0, 1, 1) == 1) && (TimerGetRemaining(gv_achievementHardTimer) != 0.0)) {
AchievementAward(gv_p01_USER, "THorner04_3");
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor02.sc2map — MapScript.galaxy:4299
}
if ((libNtve_gf_DifficultyValueInt(0, 0, 1, 1) == 1) && (TimerGetRemaining(gv_achievementHardTimer) != 0.0)) {
AchievementAward(gv_pLAYER_01_USER, "TRaynor02_3");
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2map — MapScript.galaxy:3327
AIAttackWaveAddUnits4(4, 4, 4, 4, "Marine");
AIAttackWaveAddUnits4(1, 1, 1, 1, "Medic");
if ((TimerGetRemaining(gv_maraudersComeOnline) == 0.0)) {
AIAttackWaveAddUnits4(1, 1, 1, 1, "Marauder");
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2map — MapScript.galaxy:3555
if (auto7A07393A_val == 0) {
AIAttackWaveAddUnits4(6, 6, 7, 7, "Marine");
if ((TimerGetRemaining(gv_maraudersComeOnline) == 0.0)) {
AIAttackWaveAddUnits4(1, 1, 2, 2, "Hellion");
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2map — MapScript.galaxy:4167
while (true) {
Wait(1.0, c_timeAI);
if (((UnitGroupCount(lv_initialMarineGroup, c_unitCountAlive) < 4) || (TimerGetRemaining(lv_indicatorTimeout) == 0.0))) {
libNtve_gf_KillModel(gv_actorMindblastIndicator);
TextTagDestroy(gv_textTagMindBlast);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2map — MapScript.galaxy:4567
}
if ((libNtve_gf_DifficultyValueInt(0, 0, 1, 1) == 1) && (TimerGetRemaining(gv_achievementHardTimer) != 0.0)) {
AchievementAward(gv_p1_USER, "TTosh03A_3");
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2map — MapScript.galaxy:2290
TimerStart(lv_expirationTimer, 10.0, false, c_timeGame);
TriggerQueueEnter();
if (((gv_gameOver == true) || (TimerGetRemaining(lv_expirationTimer) == 0.0))) {
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2map — MapScript.galaxy:2651
VisRevealerCreate(gv_p1_USER, RegionFromId(21));
VisRevealerEnable(VisRevealerLastCreated(), true);
if ((TimerGetRemaining(gv_zergSpeedBumpTimer) < 180.0)) {
libNtve_gf_CreateUnitsAtPoint2(36, "Zergling", 0, gv_p2_ZERG, RegionGetCenter(RegionFromId(15)));
lv_extraUnits = UnitLastCreatedGroup();
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2map — MapScript.galaxy:2664
}
if ((TimerGetRemaining(gv_zergSpeedBumpTimer) < 120.0)) {
libNtve_gf_CreateUnitsAtPoint2(8, "Hydralisk", 0, gv_p2_ZERG, RegionGetCenter(RegionFromId(15)));
lv_extraUnits = UnitLastCreatedGroup();
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2map — MapScript.galaxy:2677
}
if ((TimerGetRemaining(gv_zergSpeedBumpTimer) < 60.0)) {
libNtve_gf_CreateUnitsAtPoint2(8, "Hydralisk", 0, gv_p2_ZERG, RegionGetCenter(RegionFromId(15)));
lv_extraUnits = UnitLastCreatedGroup();
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2map — MapScript.galaxy:2690
}
while (!((TimerGetRemaining(gv_zergSpeedBumpTimer) < 180.0))) {
Wait(1.0, c_timeAI);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2map — MapScript.galaxy:2745
}
if (!((TimerGetRemaining(gv_zergSpeedBumpTimer) > 0.0))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2map — MapScript.galaxy:2948
lv_dropPoint = UnitGetPosition(EventUnit());
if ((TimerGetRemaining(gv_zergSpeedBumpTimer) > 60.0)) {
Wait(2.0, c_timeAI);
for (auto847A9D30_i = 1; auto847A9D30_i <= auto847A9D30_n; auto847A9D30_i += 1) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2map — MapScript.galaxy:2997
lv_dropPoint = UnitGetPosition(EventUnit());
if ((TimerGetRemaining(gv_zergSpeedBumpTimer) > 45.0)) {
Wait(2.0, c_timeAI);
for (auto86AC6593_i = 1; auto86AC6593_i <= auto86AC6593_n; auto86AC6593_i += 1) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2map — MapScript.galaxy:3046
lv_dropPoint = UnitGetPosition(EventUnit());
if ((TimerGetRemaining(gv_zergSpeedBumpTimer) > 45.0)) {
Wait(2.0, c_timeAI);
for (auto01D7D1C9_i = 1; auto01D7D1C9_i <= auto01D7D1C9_n; auto01D7D1C9_i += 1) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2map — MapScript.galaxy:3095
lv_dropPoint = UnitGetPosition(EventUnit());
if ((TimerGetRemaining(gv_zergSpeedBumpTimer) > 30.0)) {
Wait(2.0, c_timeAI);
for (autoBAB15F7B_i = 1; autoBAB15F7B_i <= autoBAB15F7B_n; autoBAB15F7B_i += 1) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus03.sc2map — MapScript.galaxy:2520
gv_fLAGKerrigansearching = true;
UnitBehaviorAdd(gv_uNIT_KERRIGAN, "ProgressBar", gv_uNIT_KERRIGAN, 1);
UnitBehaviorSetDuration(gv_uNIT_KERRIGAN, "ProgressBar", FixedToInt(TimerGetRemaining(gv_kerriganSearchTimer)));
UnitForceStatusBar(gv_uNIT_KERRIGAN, true);
UnitIssueOrder(EventUnit(), OrderTargetingUnit(AbilityCommand("KerriganSearch", 0), lv_tARGETunit), c_orderQueueReplace);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus03.sc2map — MapScript.galaxy:2732
lv_eTA = (gv_kerriganSearchTime * IntToFixed(gf_CountTargetsOfCurrentStage()));
lv_eTA = (lv_eTA - (gv_kerriganSearchTime - TimerGetRemaining(gv_kerriganSearchTimer)));
if ((lv_eTA > 0.0)) {
TimerStart(gv_kerrigansETATIMER, lv_eTA, false, c_timeGame);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2map — MapScript.galaxy:2418
}
if (!((TimerGetRemaining(gv_tIMERVortexCooldown) <= 0.0))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02b.sc2map — MapScript.galaxy:483
lv_mutaRadius = gv_cMutaRadiusCheckFast;
lv_mutaSpewSize = gv_cMutaSpewSizeFast;
if ((TimerGetRemaining(lv_cooldownTimer) > 0.0)) {
TimerStart(lv_cooldownTimer, MinF(TimerGetRemaining(lv_cooldownTimer), lv_mutaSpawnPeriod), false, c_timeAI);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02b.sc2map — MapScript.galaxy:484
lv_mutaSpewSize = gv_cMutaSpewSizeFast;
if ((TimerGetRemaining(lv_cooldownTimer) > 0.0)) {
TimerStart(lv_cooldownTimer, MinF(TimerGetRemaining(lv_cooldownTimer), lv_mutaSpawnPeriod), false, c_timeAI);
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02b.sc2map — MapScript.galaxy:499
}
if ((gv_inCinematic == false) && (TimerGetRemaining(lv_cooldownTimer) <= 0.0) && (UnitGroupCount(gv_mutaDefenders[FixedToInt(UnitGetCustomValue(lp_spawner, 0))], c_unitCountAlive) < gv_mutaSpawnMax) && (UnitGroupCount(lv_nearbyEnemies, c_unitCountAlive) > 0)) {
gv_firstMutaSpawner = lp_spawner;
TriggerExecute(gt_PlatformInfestedLineQ, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02b.sc2map — MapScript.galaxy:1261
}
TextExpressionSetToken("Param/Expression/3E1FEF24", "A", StringToText(FixedToString(TimerGetRemaining(gv_leviathanDeathWindow), c_fixedPrecisionAny)));
TriggerDebugOutput(1, TextExpressionAssemble("Param/Expression/3E1FEF24"), false);
if ((libNtve_gf_DifficultyValueInt(0, 1, 1, 1) == 1) && (TimerGetRemaining(gv_leviathanDeathWindow) > 0.0)) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02b.sc2map — MapScript.galaxy:1263
TextExpressionSetToken("Param/Expression/3E1FEF24", "A", StringToText(FixedToString(TimerGetRemaining(gv_leviathanDeathWindow), c_fixedPrecisionAny)));
TriggerDebugOutput(1, TextExpressionAssemble("Param/Expression/3E1FEF24"), false);
if ((libNtve_gf_DifficultyValueInt(0, 1, 1, 1) == 1) && (TimerGetRemaining(gv_leviathanDeathWindow) > 0.0)) {
AchievementAward(gv_pLAYER_P01_USER, "Anniversary_TValerian02B");
TriggerDebugOutput(1, StringExternal("Param/Value/D09C0E7C"), false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02b.sc2map — MapScript.galaxy:4968
}
if ((libNtve_gf_DifficultyValueInt(0, 0, 1, 1) == 1) && (TimerGetRemaining(gv_achievementHardTimer) != 0.0)) {
AchievementAward(gv_pLAYER_P01_USER, "TValerian02B_3");
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2map — MapScript.galaxy:3000
}
if ((TimerGetRemaining(lv_pingTimeout) == 0.0)) {
UnitGroupClear(gv_airPingGroup);
UnitGroupClear(gv_airPingGroupBehind);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2map — MapScript.galaxy:5413
}
if ((libNtve_gf_DifficultyValueInt(0, 0, 1, 1) == 1) && (TimerGetRemaining(gv_achievementHardTimer) != 0.0)) {
AchievementAward(gv_p1_USER, "TZeratul02_3");
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul03.sc2map — MapScript.galaxy:3607
}
if ((libNtve_gf_DifficultyValueInt(0, 0, 1, 1) == 1) && (TimerGetRemaining(gv_achievementHardTimer) != 0.0)) {
AchievementAward(gv_p01_USER, "TZeratul03_3");
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul04.sc2map — MapScript.galaxy:5325
}
lv_tIMER = FixedToInt(TimerGetRemaining(gv_protectArchiveTimer));
ObjectiveSetName(gv_objectiveProtectArchive, (StringExternal("Param/Value/0A3D9279") + libCamp_gf_FormatTimeCampaign(lv_tIMER) + StringExternal("Param/Value/3BC7D8C2") + libCamp_gf_StoryResearchSupplementTextForObjective(libCamp_ge_StoryResearchObject_ResearchObjectProtecttheArchive, libCamp_ge_StoryResearchObjectiveTextStyle_Lumpsum, 1, 0)));
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/economy.sc2map — MapScript.galaxy:942
// Conditions
if (testConds) {
if (!((TimerGetRemaining(gv_mainTimer) <= 30.0))) {
return false;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/economy.sc2map — MapScript.galaxy:1036
// Conditions
if (testConds) {
if (!(((TimerGetRemaining(gv_mainTimer) <= 240.0) || (TimerGetRemaining(gv_mainTimer) <= 120.0)))) {
return false;
}