# Convert Real To Integer
Grammar — Integer(val|Real)
Flags —Native
|Function
Converts a real value into an integer value.
# Arguments
fixed
— Value
Returns — int
native int FixedToInt(fixed x);
# Related
Category: Conversion / Basic Conversions
- Convert String To Text —
text
— StringToText - Convert Game Link To String
- Convert String To Game Link
- Convert String To Catalog Entry
- Convert String To Catalog Reference
- Convert String To Catalog Field Name
- Convert String To Catalog Field Path
- Convert String To Catalog Scope
- Convert Catalog Entry To String
- Convert Catalog Reference To String
- Convert Catalog Reference (Any -> Numeric)
- Convert Catalog Reference (Any -> Upgrade)
- Convert Catalog Reference (Upgrade -> Any)
- Convert Catalog Reference (Numeric -> Any)
- Convert Catalog Field Name To String
- Convert Catalog Field Path To String
- Convert Catalog Scope To String
- Convert String To Image File
- Convert String To Movie File
- Convert String To Cutscene File
- Convert Conversation State Index To String
- Convert String To Conversation State Index
- Convert User Data Instance To String
- Convert String To User Data Instance
- Convert String To Real —
fixed
— StringToFixed - Convert String To Integer —
int
— StringToInt - Convert String To Ability Command —
abilcmd
— StringToAbilCmd - Convert Real To Text —
text
— FixedToText - Convert Real To Text (Advanced) —
text
— FixedToTextAdvanced - Convert Real To String —
string
— FixedToString - Convert Real To Integer —
int
— FixedToInt - Convert Integer To Text —
text
— IntToText - Convert Integer To String —
string
— IntToString - Convert Integer To Real —
fixed
— IntToFixed - Convert Boolean To Text —
text
— libNtve_gf_ConvertBooleanToText - Convert Boolean To Integer —
int
— BoolToInt - Convert Boolean To String —
string
— libNtve_gf_ConvertBooleanToString - Convert String To Boolean —
bool
— libNtve_gf_ConvertStringToBoolean - Convert Point To String —
string
— libNtve_gf_ConvertPointToString - Convert String To Point —
point
— libNtve_gf_ConvertStringToPoint - Convert Image To String
- Convert Game User To Integer
- Format Number —
text
— FormatNumber - Format Duration —
text
— FormatDuration
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:3372
// Implementation
lv_modifiedPoints = FixedToInt((IntToFixed(lp_points) * (1.0 + (IntToFixed(gv_repeatTimes) * gv_c_ScoreBonus))));
return lv_modifiedPoints;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:3492
}
if ((gv_levelTotalEnemy > 0)) {
libNtve_gf_SetDialogItemText(lv_textRight, (IntToText(lv_shotDownTotal) + StringExternal("Param/Value/C4230C9B") + IntToText(FixedToInt((IntToFixed((lv_shotDownTotal * 100)) / IntToFixed(gv_levelTotalEnemy)))) + StringExternal("Param/Value/DDBC414E")), PlayerGroupAll());
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:3526
}
if ((gv_levelTotalPowerups > 0)) {
libNtve_gf_SetDialogItemText(lv_textRight, (IntToText(lv_pickupTotal) + StringExternal("Param/Value/CBF8FDF4") + IntToText(FixedToInt((IntToFixed((lv_pickupTotal * 100)) / IntToFixed(gv_levelTotalPowerups)))) + StringExternal("Param/Value/A4B46239")), PlayerGroupAll());
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:4842
}
}
lv_respawnInterceptorCount = FixedToInt(((IntToFixed(lv_deadInterceptorCount) + 1.0) * 0.666));
auto728B51A3_ae = gv_level1InterceptorCount;
auto728B51A3_ai = 1;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:5846
lv_facingL = 180.0;
lv_facingR = 180.0;
autoF929C3E5_ae = FixedToInt((180.0 / lv_angleDeltaBetweenShots));
autoF929C3E5_ai = 1;
lv_k = 1;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6332
lv_waveInfo.lv_bullet = (lv_waveInfo.lv_bullet - 1);
lv_index = 0;
lv_shootDelay = FixedToInt((lv_shootingInterval + RandomFixed(-10.0, 10.0)));
if ((lv_shootDelay < 10)) {
lv_shootDelay = 10;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:6860
else {
}
lv_turnTimes = FixedToInt((lv_waveInfo.lv_patternParam5 / AbsF(lv_angleInterval)));
lv_speed = ((2.0 * gv_c_Pai) * (lv_radius * (lv_angleInterval / 360.0)));
lv_speed = AbsF((lv_speed / 0.0625));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8073
lv_widthOld = DialogControlGetWidth(gv_bossHPBar, gv_p1_USER);
lv_widthNew = FixedToInt((IntToFixed(gv_bossHPBarInnerWidth) * ((UnitGetPropertyFixed(gv_boss, c_unitPropLife, c_unitPropCurrent) + UnitGetPropertyFixed(gv_boss, c_unitPropShields, c_unitPropCurrent)) / (UnitGetPropertyFixed(gv_boss, c_unitPropLifeMax, c_unitPropCurrent) + UnitGetPropertyFixed(gv_boss, c_unitPropShieldsMax, c_unitPropCurrent)))));
DialogControlSetSize(gv_bossHPBar, PlayerGroupAll(), lv_widthNew, DialogControlGetHeight(gv_bossHPBar, gv_p1_USER));
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8142
}
lv_widthOld = DialogControlGetWidth(gv_unitHPBarDialogBar, gv_p1_USER);
lv_widthNew = FixedToInt((IntToFixed(gv_unitHPBarInnerWidth) * ((UnitGetPropertyFixed(gv_unitHPBarUnit, c_unitPropLife, c_unitPropCurrent) + UnitGetPropertyFixed(gv_unitHPBarUnit, c_unitPropShields, c_unitPropCurrent)) / (UnitGetPropertyFixed(gv_unitHPBarUnit, c_unitPropLifeMax, c_unitPropCurrent) + UnitGetPropertyFixed(gv_unitHPBarUnit, c_unitPropShieldsMax, c_unitPropCurrent)))));
DialogControlSetSize(gv_unitHPBarDialogBar, PlayerGroupAll(), lv_widthNew, DialogControlGetHeight(gv_unitHPBarDialogBar, gv_p1_USER));
TimerStart(gv_unitHPBarFadeTimer, 5.0, false, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:2496
lv_pickedUnit = UnitGroupUnitFromEnd(autoCAF7C36D_g, autoCAF7C36D_u);
if (lv_pickedUnit == null) { break; }
lv_customIntValueOfUnit = FixedToInt(UnitGetCustomValue(lv_pickedUnit, 0));
if ((lv_customIntValueOfUnit > 0) && (lv_customIntValueOfUnit < 100)) {
if ((DistanceBetweenPoints(UnitGetPosition(lv_pickedUnit), gv_escortRouteRallyPoints[lv_customIntValueOfUnit]) <= 1.5)) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:1885
}
PingDestroy(gv_infestableStructuresPings[FixedToInt(UnitGetCustomValue(EventUnit(), 2))]);
return true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1206
}
libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-unit-protoss-mothership.dds", StringExternal("Param/Value/8B755AF6"), FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), PlayerGroupAll());
gv_purifierBossBar = 1;
libNtve_gf_SetBossBarRace(gv_purifierBossBar, libNtve_ge_BossBarRace_Protoss, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1209
gv_purifierBossBar = 1;
libNtve_gf_SetBossBarRace(gv_purifierBossBar, libNtve_ge_BossBarRace_Protoss, true);
libNtve_gf_SetBossBarMaximumValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), true);
libNtve_gf_SetBossBarCurrentValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLife, c_unitPropCurrent)), true);
libNtve_gf_MoveBossBar(gv_purifierBossBar, c_anchorTop, 0, 50);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1210
libNtve_gf_SetBossBarRace(gv_purifierBossBar, libNtve_ge_BossBarRace_Protoss, true);
libNtve_gf_SetBossBarMaximumValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), true);
libNtve_gf_SetBossBarCurrentValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLife, c_unitPropCurrent)), true);
libNtve_gf_MoveBossBar(gv_purifierBossBar, c_anchorTop, 0, 50);
libNtve_gf_ShowHideBossBar(false, gv_purifierBossBar);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1238
}
libNtve_gf_SetBossBarCurrentValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLife, c_unitPropCurrent)), true);
return true;
}
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:1508
}
lv_colonyIndex = FixedToInt(UnitGetCustomValue(EventUnit(), 1));
gv_infestationVirophageUnit[lv_colonyIndex] = EventUnitProgressUnit();
UnitSetCustomValue(gv_infestationVirophageUnit[lv_colonyIndex], 1, IntToFixed(lv_colonyIndex));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1564
}
lv_colonyIndex = FixedToInt(UnitGetCustomValue(EventUnitProgressUnit(), 1));
gf_SetUnitMaxLife(gv_infestationVirophageUnit[lv_colonyIndex], gv_virophageLife);
libNtve_gf_PlayAnimationOnDoodadsInRegion(gv_infestationRegion[lv_colonyIndex], "CreepCloud", c_animNameDefault, "Stand", c_animFlagPlayForever, c_animTimeDefault);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1665
}
lv_colonyIndex = FixedToInt(UnitGetCustomValue(EventUnit(), 1));
gv_infestationVirophageUnit[lv_colonyIndex] = null;
gv_hansonGoneWildTransmissionCounter += 1;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:2063
autoB51C2030_var = UnitGroupUnitFromEnd(autoB51C2030_g, autoB51C2030_u);
if (autoB51C2030_var == null) { break; }
lv_eggType = FixedToInt(UnitGetCustomValue(autoB51C2030_var, (ge_UnitData_udEggType)));
lv_eggScale = UnitGetCustomValue(autoB51C2030_var, (ge_UnitData_udEggScale));
lv_colonyIndex = FixedToInt(UnitGetCustomValue(autoB51C2030_var, (ge_UnitData_udEggColony)));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:2065
lv_eggType = FixedToInt(UnitGetCustomValue(autoB51C2030_var, (ge_UnitData_udEggType)));
lv_eggScale = UnitGetCustomValue(autoB51C2030_var, (ge_UnitData_udEggScale));
lv_colonyIndex = FixedToInt(UnitGetCustomValue(autoB51C2030_var, (ge_UnitData_udEggColony)));
if ((lv_eggScale >= gv_eggData[lv_eggType].lv_burstSize)) {
lv_eggPosition = UnitGetPosition(autoB51C2030_var);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2148
auto499A4BF2_var = UnitGroupUnitFromEnd(auto499A4BF2_g, auto499A4BF2_u);
if (auto499A4BF2_var == null) { break; }
if ((RegionContainsPoint(RegionCircle(gv_trainPath[FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0))], 0.5), UnitGetPosition(auto499A4BF2_var)) == true)) {
if ((FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0)) < 255)) {
UnitSetCustomValue(auto499A4BF2_var, 0, (UnitGetCustomValue(auto499A4BF2_var, 0) + 1.0));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2149
if (auto499A4BF2_var == null) { break; }
if ((RegionContainsPoint(RegionCircle(gv_trainPath[FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0))], 0.5), UnitGetPosition(auto499A4BF2_var)) == true)) {
if ((FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0)) < 255)) {
UnitSetCustomValue(auto499A4BF2_var, 0, (UnitGetCustomValue(auto499A4BF2_var, 0) + 1.0));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2155
}
UnitIssueOrder(auto499A4BF2_var, OrderTargetingPoint(AbilityCommand("move", 0), PointWithOffsetPolar(UnitGetPosition(auto499A4BF2_var), 1.0, AngleBetweenPoints(UnitGetPosition(auto499A4BF2_var), gv_trainPath[FixedToInt(UnitGetCustomValue(auto499A4BF2_var, 0))]))), c_orderQueueReplace);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:4319
AIAttackWaveAddUnits4(0, 0, 1, 2, "Medivac");
AIAttackWaveAddUnits4(0, 0, 1, 2, "Goliath");
AIAttackWaveSend(gv_pLAYER_02_DOMINION, (FixedToInt(gv_trainWaveWait) * 2), false);
TriggerExecute(gt_DominionAttackQ, true, false);
gf_ResearchForAllDominion(libNtve_gf_DifficultyValueInt(0, 0, 0, 1), "TerranInfantryWeaponsLevel2");
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:4335
AIAttackWaveAddUnits4(0, 0, 1, 1, "SiegeTank");
AIAttackWaveAddUnits4(0, 0, 1, 1, "Raven");
AIAttackWaveSend(gv_pLAYER_02_DOMINION, (FixedToInt(gv_trainWaveWait) * 2), false);
Wait(gv_trainWaveWait, c_timeAI);
gf_ResearchForAllDominion(libNtve_gf_DifficultyValueInt(0, 0, 1, 0), "TerranShipWeaponsLevel1");
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:4348
AIAttackWaveAddUnits4(1, 1, 1, 2, "SiegeTank");
AIAttackWaveAddUnits4(0, 0, 1, 1, "Banshee");
AIAttackWaveSend(gv_pLAYER_02_DOMINION, (FixedToInt(gv_trainWaveWait) * 2), false);
Wait(gv_trainWaveWait, c_timeAI);
gf_ResearchForAllDominion(libNtve_gf_DifficultyValueInt(0, 0, 1, 0), "TerranVehicleArmorsLevel2");
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:4362
AIAttackWaveAddUnits4(1, 1, 1, 2, "Banshee");
AIAttackWaveAddUnits4(0, 0, 2, 2, "Goliath");
AIAttackWaveSend(gv_pLAYER_02_DOMINION, (FixedToInt(gv_trainWaveWait) * 2), false);
Wait(gv_trainWaveWait, c_timeAI);
gf_ResearchForAllDominion(libNtve_gf_DifficultyValueInt(0, 0, 0, 1), "TerranVehicleWeaponsLevel3");
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:4374
AIAttackWaveAddUnits4(2, 2, 2, 2, "SiegeTank");
AIAttackWaveAddUnits4(0, 0, 1, 1, "Raven");
AIAttackWaveSend(gv_pLAYER_02_DOMINION, (FixedToInt(gv_trainWaveWait) * 2), true);
AIAttackWaveSetGatherPoint(gv_pLAYER_02_DOMINION, PlayerStartLocation(gv_pLAYER_02_DOMINION));
AIAttackWaveSetTargetPlayer(gv_pLAYER_02_DOMINION, PlayerGroupSingle(gv_pLAYER_01_USER));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:4381
AIAttackWaveAddUnits4(2, 2, 2, 3, "Banshee");
AIAttackWaveAddUnits4(0, 0, 0, 1, "SiegeTank");
AIAttackWaveSend(gv_pLAYER_02_DOMINION, (FixedToInt(gv_trainWaveWait) * 2), true);
AIAttackWaveSetGatherPoint(gv_pLAYER_02_DOMINION, PlayerStartLocation(gv_pLAYER_02_DOMINION));
AIAttackWaveSetTargetPlayer(gv_pLAYER_02_DOMINION, PlayerGroupSingle(gv_pLAYER_01_USER));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:4389
AIAttackWaveAddUnits4(1, 1, 2, 2, "SiegeTank");
AIAttackWaveAddUnits4(0, 0, 2, 3, "Goliath");
AIAttackWaveSend(gv_pLAYER_02_DOMINION, (FixedToInt(gv_trainWaveWait) * 2), true);
}
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1269
gv_odinBossBar = 1;
libNtve_gf_SetBossBarRace(gv_odinBossBar, libNtve_ge_BossBarRace_Terran, true);
libNtve_gf_SetBossBarMaximumValue(gv_odinBossBar, FixedToInt(gv_odinCurrentHealth), true);
libNtve_gf_SetBossBarCurrentValue(gv_odinBossBar, FixedToInt(UnitGetPropertyFixed(gv_odin, c_unitPropLife, c_unitPropCurrent)), true);
libNtve_gf_SetBossBarBoss(gv_odinBossBar, UnitFromId(2), true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1270
libNtve_gf_SetBossBarRace(gv_odinBossBar, libNtve_ge_BossBarRace_Terran, true);
libNtve_gf_SetBossBarMaximumValue(gv_odinBossBar, FixedToInt(gv_odinCurrentHealth), true);
libNtve_gf_SetBossBarCurrentValue(gv_odinBossBar, FixedToInt(UnitGetPropertyFixed(gv_odin, c_unitPropLife, c_unitPropCurrent)), true);
libNtve_gf_SetBossBarBoss(gv_odinBossBar, UnitFromId(2), true);
libNtve_gf_MoveBossBar(gv_odinBossBar, c_anchorTop, 0, 50);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2498
int gf_GetUnitClickableLockCount (unit lp_unit) {
// Implementation
return FixedToInt(UnitGetCustomValue(lp_unit, (ge_CustomDataIndex_CustomDataIndexClickableLock)));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2503
int gf_GetUnitClickableRoom (unit lp_unit) {
// Implementation
return gf_RoomFromIndex(FixedToInt(UnitGetCustomValue(lp_unit, (ge_CustomDataIndex_CustomDataIndexClickableRoom))));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9588
}
lv_index = FixedToInt(UnitGetCustomValue(lv_hotspot, (ge_CustomDataIndex_CustomDataIndexFlashingData)));
if ((lv_index <= 0)) {
return c_textTagNone;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9603
// Implementation
lv_index = FixedToInt(UnitGetCustomValue(lp_unit, (ge_CustomDataIndex_CustomDataIndexFlashingData)));
if ((lv_index <= 0)) {
return false;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9891
// Implementation
lv_index = FixedToInt(UnitGetCustomValue(lp_unit, (ge_CustomDataIndex_CustomDataIndexFlashingData)));
if ((lv_index <= 0)) {
return ;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9998
CameraUseModel(1, gf_RoomUnit(ge_RoomID_RoomArmory), lp_camera, 0.0);
lv_gradientWidthPercent = ConversationDataStateFixedValue(lp_convoID, "Gradient Percent");
lv_gradientWidth = FixedToInt((1600.0 * lv_gradientWidthPercent));
lv_gradientDirection = ConversationDataStateFixedValue(lp_convoID, "Gradient Direction");
DialogSetSize(gv_armoryGradientDialog, lv_gradientWidth, 1200);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:10013
DialogSetVisible(gv_armoryGradientDialog, PlayerGroupAll(), true);
if ((ConversationDataStateFixedValue(lp_convoID, "Active") == 1.0)) {
gf_DisplayArmoryTextBox(ConversationDataStateText(lp_convoID, "Description"), ConversationDataStateText(lp_convoID, "Header"), gv_armoryAnchor[FixedToInt(ConversationDataStateFixedValue(lp_convoID, "Anchor"))], FixedToInt(ConversationDataStateFixedValue(lp_convoID, "OffsetX")), FixedToInt(ConversationDataStateFixedValue(lp_convoID, "OffsetY")), FixedToInt(ConversationDataStateFixedValue(lp_convoID, "Width")), FixedToInt(ConversationDataStateFixedValue(lp_convoID, "Height")), 1, FixedToInt(ConversationDataStateFixedValue(lp_convoID, "Background")), "ArmoryTitle", "ArmoryDescriptionBlue", FixedToInt(ConversationDataStateFixedValue(lp_convoID, "HeaderHeight")));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:10013
DialogSetVisible(gv_armoryGradientDialog, PlayerGroupAll(), true);
if ((ConversationDataStateFixedValue(lp_convoID, "Active") == 1.0)) {
gf_DisplayArmoryTextBox(ConversationDataStateText(lp_convoID, "Description"), ConversationDataStateText(lp_convoID, "Header"), gv_armoryAnchor[FixedToInt(ConversationDataStateFixedValue(lp_convoID, "Anchor"))], FixedToInt(ConversationDataStateFixedValue(lp_convoID, "OffsetX")), FixedToInt(ConversationDataStateFixedValue(lp_convoID, "OffsetY")), FixedToInt(ConversationDataStateFixedValue(lp_convoID, "Width")), FixedToInt(ConversationDataStateFixedValue(lp_convoID, "Height")), 1, FixedToInt(ConversationDataStateFixedValue(lp_convoID, "Background")), "ArmoryTitle", "ArmoryDescriptionBlue", FixedToInt(ConversationDataStateFixedValue(lp_convoID, "HeaderHeight")));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:10013
DialogSetVisible(gv_armoryGradientDialog, PlayerGroupAll(), true);
if ((ConversationDataStateFixedValue(lp_convoID, "Active") == 1.0)) {
gf_DisplayArmoryTextBox(ConversationDataStateText(lp_convoID, "Description"), ConversationDataStateText(lp_convoID, "Header"), gv_armoryAnchor[FixedToInt(ConversationDataStateFixedValue(lp_convoID, "Anchor"))], FixedToInt(ConversationDataStateFixedValue(lp_convoID, "OffsetX")), FixedToInt(ConversationDataStateFixedValue(lp_convoID, "OffsetY")), FixedToInt(ConversationDataStateFixedValue(lp_convoID, "Width")), FixedToInt(ConversationDataStateFixedValue(lp_convoID, "Height")), 1, FixedToInt(ConversationDataStateFixedValue(lp_convoID, "Background")), "ArmoryTitle", "ArmoryDescriptionBlue", FixedToInt(ConversationDataStateFixedValue(lp_convoID, "HeaderHeight")));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:10013
DialogSetVisible(gv_armoryGradientDialog, PlayerGroupAll(), true);
if ((ConversationDataStateFixedValue(lp_convoID, "Active") == 1.0)) {
gf_DisplayArmoryTextBox(ConversationDataStateText(lp_convoID, "Description"), ConversationDataStateText(lp_convoID, "Header"), gv_armoryAnchor[FixedToInt(ConversationDataStateFixedValue(lp_convoID, "Anchor"))], FixedToInt(ConversationDataStateFixedValue(lp_convoID, "OffsetX")), FixedToInt(ConversationDataStateFixedValue(lp_convoID, "OffsetY")), FixedToInt(ConversationDataStateFixedValue(lp_convoID, "Width")), FixedToInt(ConversationDataStateFixedValue(lp_convoID, "Height")), 1, FixedToInt(ConversationDataStateFixedValue(lp_convoID, "Background")), "ArmoryTitle", "ArmoryDescriptionBlue", FixedToInt(ConversationDataStateFixedValue(lp_convoID, "HeaderHeight")));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:295
}
lv_targetTerrazineIndex = FixedToInt(UnitGetCustomValue(UnitGroupRandomUnit(lv_terrazineGroup, c_unitCountAlive), 0));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:303
if ((lv_targetTerrazineIndex == 0)) {
lv_targetTerrazineIndex = FixedToInt(UnitGetCustomValue(UnitGroupRandomUnit(UnitGroup("TerrazineCanister", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive), 0));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:497
if ((lv_closestNodeMinDistance == 0.0)) {
lv_closestNodeMinDistance = lv_checkDistance;
lv_closestNodeIndex = FixedToInt(UnitGetCustomValue(auto96AA0583_var, 0));
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:502
if ((lv_checkDistance < lv_closestNodeMinDistance)) {
lv_closestNodeMinDistance = lv_checkDistance;
lv_closestNodeIndex = FixedToInt(UnitGetCustomValue(auto96AA0583_var, 0));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:533
if ((lv_closestNodeMinDistance == 0.0)) {
lv_closestNodeMinDistance = lv_checkDistance;
lv_closestNodeIndex = FixedToInt(UnitGetCustomValue(auto7CD40DCB_var, 0));
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:538
if ((lv_checkDistance < lv_closestNodeMinDistance)) {
lv_closestNodeMinDistance = lv_checkDistance;
lv_closestNodeIndex = FixedToInt(UnitGetCustomValue(auto7CD40DCB_var, 0));
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:568
lv_pickedUnit = UnitGroupUnitFromEnd(auto8AAC8CF7_g, auto8AAC8CF7_u);
if (lv_pickedUnit == null) { break; }
if ((FixedToInt(UnitGetCustomValue(lv_pickedUnit, 0)) == lp_canisterHarvestTargetIndex)) {
lv_canisterHarvestTarget = lv_pickedUnit;
break;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:608
lv_pickedUnit = UnitGroupUnitFromEnd(auto9C5AF31A_g, auto9C5AF31A_u);
if (lv_pickedUnit == null) { break; }
if ((FixedToInt(UnitGetCustomValue(lv_pickedUnit, 0)) == lp_param_TerrazineIndex)) {
return lv_pickedUnit;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:618
lv_pickedUnit = UnitGroupUnitFromEnd(auto515F8EF4_g, auto515F8EF4_u);
if (lv_pickedUnit == null) { break; }
if ((FixedToInt(UnitGetCustomValue(lv_pickedUnit, 0)) == lp_param_TerrazineIndex)) {
return lv_pickedUnit;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:1697
lv_harvestingSCV = EventUnit();
UnitBehaviorAdd(lv_harvestingSCV, "HarvestingTerrazine", lv_harvestingSCV, 1);
lv_customTerrazineGasValue = FixedToInt(UnitGetCustomValue(EventUnitTargetUnit(), 0));
gv_gasControlCount += 1;
gv_gasHarvestingCount += 1;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:111
gv_maraudersComeOnline = TimerCreate();
gv_achievementHardTimer = TimerCreate();
gv_toshLowestHealth = FixedToInt(UnitGetPropertyFixed(UnitFromId(326), c_unitPropLifeMax, c_unitPropNormal));
gv_objectiveClearMainPrison = c_invalidObjectiveId;
gv_objectiveToshMustSurvive = c_invalidObjectiveId;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:4488
}
lv_displayedLife = FixedToInt(UnitGetPropertyFixed(gv_tosh, c_unitPropLife, c_unitPropCurrent));
if ((lv_displayedLife < 1) && (UnitGetPropertyFixed(gv_tosh, c_unitPropLife, c_unitPropCurrent) > 0.0)) {
lv_displayedLife = 1;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:1818
libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-tips-relicshrine.dds", StringExternal("Param/Value/7AE87D2E"), 100, PlayerGroupAll());
gv_templeDoorBossBar = 1;
libNtve_gf_SetBossBarMaximumValue(gv_templeDoorBossBar, FixedToInt(UnitGetPropertyFixed(gv_tHEONEDRILL, c_unitPropLife, c_unitPropNormal)), true);
libNtve_gf_SetBossBarCurrentValue(gv_templeDoorBossBar, FixedToInt(UnitGetPropertyFixed(gv_tHEONEDOOR, c_unitPropLife, c_unitPropCurrent)), true);
libNtve_gf_SetBossBarBoss(gv_templeDoorBossBar, UnitFromId(125), true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:1819
gv_templeDoorBossBar = 1;
libNtve_gf_SetBossBarMaximumValue(gv_templeDoorBossBar, FixedToInt(UnitGetPropertyFixed(gv_tHEONEDRILL, c_unitPropLife, c_unitPropNormal)), true);
libNtve_gf_SetBossBarCurrentValue(gv_templeDoorBossBar, FixedToInt(UnitGetPropertyFixed(gv_tHEONEDOOR, c_unitPropLife, c_unitPropCurrent)), true);
libNtve_gf_SetBossBarBoss(gv_templeDoorBossBar, UnitFromId(125), true);
libNtve_gf_MoveBossBar(gv_templeDoorBossBar, c_anchorTop, 0, 50);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2359
lv_facing = AngleBetweenPoints(lv_a, lv_b);
lv_d = DistanceBetweenPoints(lv_a, lv_b);
lv_di = FixedToInt((lv_d / 5.0));
lv_x = (PointGetX(lv_a) + (Cos(lv_facing) * 5.0));
lv_y = (PointGetY(lv_a) + (Sin(lv_facing) * 5.0));
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/ttychus04.sc2map/MapScript.galaxy:1128
libNtve_gf_SendActorMessageToGameRegion(gv_wall_of_Fire_VisionRegion, "Signal DoodadDeath");
libNtve_gf_SendActorMessageToGameRegion(gv_wall_of_Fire_VisionRegion, "Signal TreeFire");
lv_iterations = FixedToInt((((PointGetY(PointFromId(142)) - PointGetY(PointFromId(122))) / 3.5) - ModF((PointGetY(PointFromId(142)) - PointGetY(PointFromId(122))), 3.5)));
auto4CA18CCC_ae = lv_iterations;
lv_i = 0;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:5782
if (auto937566B9_var == null) { break; }
if ((UnitGetCustomValue(auto937566B9_var, 0) >= 1.0) && (UnitOrder(auto937566B9_var, 0) == null)) {
UnitIssueOrder(auto937566B9_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, gv_feederlingRegions[FixedToInt(UnitGetCustomValue(auto937566B9_var, 0))], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))), c_orderQueueReplace);
UnitIssueOrder(auto937566B9_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, gv_feederlingRegions[FixedToInt(UnitGetCustomValue(auto937566B9_var, 0))], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))), c_orderQueueAddToEnd);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:5783
if ((UnitGetCustomValue(auto937566B9_var, 0) >= 1.0) && (UnitOrder(auto937566B9_var, 0) == null)) {
UnitIssueOrder(auto937566B9_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, gv_feederlingRegions[FixedToInt(UnitGetCustomValue(auto937566B9_var, 0))], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))), c_orderQueueReplace);
UnitIssueOrder(auto937566B9_var, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(UnitGroupRandomUnit(UnitGroup("Egg", c_playerAny, gv_feederlingRegions[FixedToInt(UnitGetCustomValue(auto937566B9_var, 0))], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive))), c_orderQueueAddToEnd);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7291
gv__3QueenBossBarIndex = 1;
libNtve_gf_DisplayBossBar(gv__3QueenBossBarIndex, "Assets\\Textures\\btn-unit-zerg-queen.dds", StringExternal("Param/Value/070AAF64"), 100, PlayerGroupAll());
libNtve_gf_SetBossBarMaximumValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLifeMax, c_unitPropCurrent)), true);
libNtve_gf_SetBossBarCurrentValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent)), true);
libNtve_gf_SetBossBarRace(gv__3QueenBossBarIndex, libNtve_ge_BossBarRace_Zerg, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7292
libNtve_gf_DisplayBossBar(gv__3QueenBossBarIndex, "Assets\\Textures\\btn-unit-zerg-queen.dds", StringExternal("Param/Value/070AAF64"), 100, PlayerGroupAll());
libNtve_gf_SetBossBarMaximumValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLifeMax, c_unitPropCurrent)), true);
libNtve_gf_SetBossBarCurrentValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent)), true);
libNtve_gf_SetBossBarRace(gv__3QueenBossBarIndex, libNtve_ge_BossBarRace_Zerg, true);
libNtve_gf_MoveBossBar(gv__3QueenBossBarIndex, c_anchorTop, 0, 50);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7322
}
libNtve_gf_SetBossBarCurrentValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent)), true);
return true;
}
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:510
}
auto98F04F6A_g = gv_mutaDefenders[FixedToInt(UnitGetCustomValue(lp_spawner, 0))];
auto98F04F6A_u = UnitGroupCount(auto98F04F6A_g, c_unitCountAll);
for (;; auto98F04F6A_u -= 1) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:2790
}
UnitGroupAdd(gv_mutaDefenders[FixedToInt(UnitGetCustomValue(EventUnit(), 0))], EventUnitCreatedUnit());
UnitSetCustomValue(EventUnitCreatedUnit(), 0, UnitGetCustomValue(EventUnit(), 0));
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:1203
BoardItemSetFontSize(gv_artifactBoard, 1, 1, 18);
BoardShowAll(true, PlayerGroupAll());
libNtve_gf_DisplayScreenButton(1, (StringExternal("Param/Value/EE7FA59B") + StringExternal("Param/Value/470B45ED") + libCamp_gf_FormatTimeCampaign(FixedToInt(UnitAbilityGetCooldown(gv_artifact, "EnergyNova", "Abil/Supernova"))) + StringExternal("Param/Value/21D8590C")), 400, 132, c_anchorTopRight, 15, 225, gt_EnergyNovaButton);
DialogControlSetEnabled(libNtve_gf_ScreenButton(1), PlayerGroupAll(), false);
libNtve_gf_HideScreenButton(true, 1);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:1221
}
else {
libNtve_gf_SetDialogItemText(libNtve_gf_ScreenButton(1), (StringExternal("Param/Value/ADB51156") + StringExternal("Param/Value/D927B1B4") + libCamp_gf_FormatTimeCampaign(FixedToInt(UnitAbilityGetCooldown(gv_artifact, "EnergyNova", "Abil/Supernova"))) + StringExternal("Param/Value/4B589141")), PlayerGroupAll());
DialogControlSetEnabled(libNtve_gf_ScreenButton(1), PlayerGroupAll(), false);
libNtve_gf_StopFlashingScreenButton(1);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:1807
gv_hybridBusy = true;
lv_targetCount = UnitGroupCount(gf_EnemiesWithinRange(gv_hybridPhysical, 8.0, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32)))), c_unitCountAlive);
lv_desiredCasts = FixedToInt((IntToFixed(lv_targetCount) * libNtve_gf_DifficultyValueFixed(0.5, 0.5, 0.6, 0.75)));
lv_desiredCasts = MinI(lv_desiredCasts, libNtve_gf_DifficultyValueInt(5, 5, 8, 9));
auto793B532F_n = lv_desiredCasts;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:1880
gv_hybridBusy = true;
lv_targetCount = UnitGroupCount(gf_EnemiesWithinRange(gv_hybridPhysical, 8.0, UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32)))), c_unitCountAlive);
lv_desiredCasts = FixedToInt((IntToFixed(lv_targetCount) * 0.8));
lv_desiredCasts = MinI(lv_desiredCasts, 4);
auto8910C1F6_n = lv_desiredCasts;
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: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/campaign/tarcade.sc2map — MapScript.galaxy:3372
// Implementation
lv_modifiedPoints = FixedToInt((IntToFixed(lp_points) * (1.0 + (IntToFixed(gv_repeatTimes) * gv_c_ScoreBonus))));
return lv_modifiedPoints;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:3492
}
if ((gv_levelTotalEnemy > 0)) {
libNtve_gf_SetDialogItemText(lv_textRight, (IntToText(lv_shotDownTotal) + StringExternal("Param/Value/C4230C9B") + IntToText(FixedToInt((IntToFixed((lv_shotDownTotal * 100)) / IntToFixed(gv_levelTotalEnemy)))) + StringExternal("Param/Value/DDBC414E")), PlayerGroupAll());
}
else {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:3526
}
if ((gv_levelTotalPowerups > 0)) {
libNtve_gf_SetDialogItemText(lv_textRight, (IntToText(lv_pickupTotal) + StringExternal("Param/Value/CBF8FDF4") + IntToText(FixedToInt((IntToFixed((lv_pickupTotal * 100)) / IntToFixed(gv_levelTotalPowerups)))) + StringExternal("Param/Value/A4B46239")), PlayerGroupAll());
}
else {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:4842
}
}
lv_respawnInterceptorCount = FixedToInt(((IntToFixed(lv_deadInterceptorCount) + 1.0) * 0.666));
auto728B51A3_ae = gv_level1InterceptorCount;
auto728B51A3_ai = 1;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:5846
lv_facingL = 180.0;
lv_facingR = 180.0;
autoF929C3E5_ae = FixedToInt((180.0 / lv_angleDeltaBetweenShots));
autoF929C3E5_ai = 1;
lv_k = 1;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:6332
lv_waveInfo.lv_bullet = (lv_waveInfo.lv_bullet - 1);
lv_index = 0;
lv_shootDelay = FixedToInt((lv_shootingInterval + RandomFixed(-10.0, 10.0)));
if ((lv_shootDelay < 10)) {
lv_shootDelay = 10;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:6860
else {
}
lv_turnTimes = FixedToInt((lv_waveInfo.lv_patternParam5 / AbsF(lv_angleInterval)));
lv_speed = ((2.0 * gv_c_Pai) * (lv_radius * (lv_angleInterval / 360.0)));
lv_speed = AbsF((lv_speed / 0.0625));
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:8073
lv_widthOld = DialogControlGetWidth(gv_bossHPBar, gv_p1_USER);
lv_widthNew = FixedToInt((IntToFixed(gv_bossHPBarInnerWidth) * ((UnitGetPropertyFixed(gv_boss, c_unitPropLife, c_unitPropCurrent) + UnitGetPropertyFixed(gv_boss, c_unitPropShields, c_unitPropCurrent)) / (UnitGetPropertyFixed(gv_boss, c_unitPropLifeMax, c_unitPropCurrent) + UnitGetPropertyFixed(gv_boss, c_unitPropShieldsMax, c_unitPropCurrent)))));
DialogControlSetSize(gv_bossHPBar, PlayerGroupAll(), lv_widthNew, DialogControlGetHeight(gv_bossHPBar, gv_p1_USER));
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:8142
}
lv_widthOld = DialogControlGetWidth(gv_unitHPBarDialogBar, gv_p1_USER);
lv_widthNew = FixedToInt((IntToFixed(gv_unitHPBarInnerWidth) * ((UnitGetPropertyFixed(gv_unitHPBarUnit, c_unitPropLife, c_unitPropCurrent) + UnitGetPropertyFixed(gv_unitHPBarUnit, c_unitPropShields, c_unitPropCurrent)) / (UnitGetPropertyFixed(gv_unitHPBarUnit, c_unitPropLifeMax, c_unitPropCurrent) + UnitGetPropertyFixed(gv_unitHPBarUnit, c_unitPropShieldsMax, c_unitPropCurrent)))));
DialogControlSetSize(gv_unitHPBarDialogBar, PlayerGroupAll(), lv_widthNew, DialogControlGetHeight(gv_unitHPBarDialogBar, gv_p1_USER));
TimerStart(gv_unitHPBarFadeTimer, 5.0, false, c_timeGame);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2map — MapScript.galaxy:2496
lv_pickedUnit = UnitGroupUnitFromEnd(autoCAF7C36D_g, autoCAF7C36D_u);
if (lv_pickedUnit == null) { break; }
lv_customIntValueOfUnit = FixedToInt(UnitGetCustomValue(lv_pickedUnit, 0));
if ((lv_customIntValueOfUnit > 0) && (lv_customIntValueOfUnit < 100)) {
if ((DistanceBetweenPoints(UnitGetPosition(lv_pickedUnit), gv_escortRouteRallyPoints[lv_customIntValueOfUnit]) <= 1.5)) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2map — MapScript.galaxy:1885
}
PingDestroy(gv_infestableStructuresPings[FixedToInt(UnitGetCustomValue(EventUnit(), 2))]);
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1206
}
libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-unit-protoss-mothership.dds", StringExternal("Param/Value/8B755AF6"), FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), PlayerGroupAll());
gv_purifierBossBar = 1;
libNtve_gf_SetBossBarRace(gv_purifierBossBar, libNtve_ge_BossBarRace_Protoss, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1209
gv_purifierBossBar = 1;
libNtve_gf_SetBossBarRace(gv_purifierBossBar, libNtve_ge_BossBarRace_Protoss, true);
libNtve_gf_SetBossBarMaximumValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), true);
libNtve_gf_SetBossBarCurrentValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLife, c_unitPropCurrent)), true);
libNtve_gf_MoveBossBar(gv_purifierBossBar, c_anchorTop, 0, 50);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1210
libNtve_gf_SetBossBarRace(gv_purifierBossBar, libNtve_ge_BossBarRace_Protoss, true);
libNtve_gf_SetBossBarMaximumValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), true);
libNtve_gf_SetBossBarCurrentValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLife, c_unitPropCurrent)), true);
libNtve_gf_MoveBossBar(gv_purifierBossBar, c_anchorTop, 0, 50);
libNtve_gf_ShowHideBossBar(false, gv_purifierBossBar);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2map — MapScript.galaxy:1238
}
libNtve_gf_SetBossBarCurrentValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLife, c_unitPropCurrent)), true);
return true;
}
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);