# Unit XP Get Current Level
Grammar — The current level in veterancyBehavior for unit
Flags —Native
|Function
Returns the current level of a unit
# Arguments
unit
— Unitstring
<gamelink::Behavior> — Veterancy Behavior
Returns — int
native int UnitXPGetCurrentLevel(
unit inUnit,
string inVeterancyBehavior,
);
# Related
Category: Unit / Attributes And Experience
- Unit Gains Experience —
void
— TriggerAddEventUnitGainExperience - Unit Gains Experience Level —
void
— TriggerAddEventUnitGainLevel - Unit XP Get Current XP —
fixed
— UnitXPGetCurrentXP - Unit XP Add XP —
void
— UnitXPAddXP - Unit XP Set Current XP —
void
— UnitXPSetCurrentXP - Unit XP Get XP For Level —
int
— UnitXPGetXPForLevel - Unit XP Set XP For Level —
void
— UnitXPSetXPForLevel - Unit XP Get Current Level —
int
— UnitXPGetCurrentLevel - Unit XP Set Current Level —
void
— UnitXPSetCurrentLevel - Unit XP Get Num Levels —
int
— UnitXPGetNumLevels - Triggering Experience Gained —
fixed
— EventUnitXPDelta - Unit Attribute Change —
void
— TriggerAddEventUnitAttributeChange - Triggering Attribute Points —
int
— EventUnitAttributePoints - Total Experience Of Unit —
fixed
— UnitXPTotal - Experience Level Of Unit —
int
— UnitLevel - Enable/Disable Experience Gain For Unit —
void
— UnitXPGainEnable
# Examples
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:646
DialogControlSetEnabled(gv_tryMeModePanel.lv_setLevelButton, PlayerGroupAll(), true);
DialogControlSetVisible(gv_tryMeModePanel.lv_levelFrame, PlayerGroupAll(), true);
lv_level = UnitXPGetCurrentLevel(libGame_gv_players[gv_pLAYER_TryMe_C].lv_heroUnit, null);
libNtve_gf_SetDialogItemCurrentValue(gv_tryMeModePanel.lv_levelSlider, lv_level, PlayerGroupAll());
TextExpressionSetToken("Param/Expression/D5756675", "A", IntToText(lv_level));
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:672
// Automatic Variable Declarations
// Variable Initialization
lv_currentLevel = UnitXPGetCurrentLevel(libGame_gv_players[gv_pLAYER_TryMe_C].lv_heroUnit, null);
lv_realLevel = MaxI(1, MinI(30, lp_level));
lv_defaultIndex = 1;
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:513
// Implementation
TimerStart(lv_vOTimer, lp_duration, false, c_timeGame);
lv_xPValue = (libCore_gf_GetTotalXPForLevel((UnitXPGetCurrentLevel(gv_heroNova, null) + 1)) - (UnitGetPropertyFixed(libGame_gv_players[gv_pLAYER_05_NOVA].lv_heroUnit, c_unitPropXP, c_unitPropCurrent) + 5.0));
TriggerExecute(gt_StartEXPArrowFlash, true, false);
while ((TimerGetRemaining(lv_vOTimer) > 0.0)) {
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:3061
}
if (!((UnitXPGetCurrentLevel(gv_heroPlayer, null) >= 2))) {
return false;
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:3087
RemovePointOfInterest(PointFromName("Lane 1 - Waypoint 14"), "TutorialGuldanBeacon", libNtve_ge_GoalTeam_Chaos);
RemovePointOfInterest(PointFromName("Lane 3 - Waypoint 14"), "TutorialTychusBeacon", libNtve_ge_GoalTeam_Chaos);
while (!((UnitXPGetCurrentLevel(gv_heroPlayer, null) >= 4))) {
Wait(1.0, c_timeGame);
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:3092
Wait(15.0, c_timeGame);
TriggerExecute(gt_TalentsReminder, true, false);
while (!((UnitXPGetCurrentLevel(gv_heroPlayer, null) >= 6))) {
Wait(1.0, c_timeGame);
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:3654
UnitIssueOrder(gv_heroTankDps, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
libNtve_gf_PauseUnit(gv_heroTankDps, true);
if ((UnitXPGetCurrentLevel(gv_heroPlayer, null) < 8)) {
lv_xPValue = (libCore_gf_GetTotalXPForLevel((UnitXPGetCurrentLevel(gv_heroPlayer, null) + 1)) - UnitGetPropertyFixed(libGame_gv_players[gv_pLAYER_01_USER].lv_heroUnit, c_unitPropXP, c_unitPropCurrent));
libGame_gf_GrantXPToPlayer(lv_xPValue, gv_pLAYER_01_USER, libGame_ge_XPSources_Debug);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:3655
libNtve_gf_PauseUnit(gv_heroTankDps, true);
if ((UnitXPGetCurrentLevel(gv_heroPlayer, null) < 8)) {
lv_xPValue = (libCore_gf_GetTotalXPForLevel((UnitXPGetCurrentLevel(gv_heroPlayer, null) + 1)) - UnitGetPropertyFixed(libGame_gv_players[gv_pLAYER_01_USER].lv_heroUnit, c_unitPropXP, c_unitPropCurrent));
libGame_gf_GrantXPToPlayer(lv_xPValue, gv_pLAYER_01_USER, libGame_ge_XPSources_Debug);
libGame_gf_GrantXPToPlayer(lv_xPValue, gv_pLAYER_02_HEALERTANK, libGame_ge_XPSources_Debug);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:3918
Wait(1.0, c_timeGame);
TriggerQueueEnter();
if ((UnitXPGetCurrentLevel(gv_heroPlayer, null) < 9)) {
lv_xPValue = (libCore_gf_GetTotalXPForLevel((UnitXPGetCurrentLevel(gv_heroPlayer, null) + 1)) - UnitGetPropertyFixed(libGame_gv_players[gv_pLAYER_01_USER].lv_heroUnit, c_unitPropXP, c_unitPropCurrent));
libGame_gf_GrantXPToPlayer(lv_xPValue, gv_pLAYER_01_USER, libGame_ge_XPSources_Debug);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:3919
TriggerQueueEnter();
if ((UnitXPGetCurrentLevel(gv_heroPlayer, null) < 9)) {
lv_xPValue = (libCore_gf_GetTotalXPForLevel((UnitXPGetCurrentLevel(gv_heroPlayer, null) + 1)) - UnitGetPropertyFixed(libGame_gv_players[gv_pLAYER_01_USER].lv_heroUnit, c_unitPropXP, c_unitPropCurrent));
libGame_gf_GrantXPToPlayer(lv_xPValue, gv_pLAYER_01_USER, libGame_ge_XPSources_Debug);
libGame_gf_GrantXPToPlayer(lv_xPValue, gv_pLAYER_02_HEALERTANK, libGame_ge_XPSources_Debug);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:4132
TriggerExecute(gt_ObjectiveEscortMercsComplete, true, false);
if ((UnitXPGetCurrentLevel(gv_heroPlayer, null) < 10)) {
lv_xPValue = (libCore_gf_GetTotalXPForLevel(10) - UnitGetPropertyFixed(libGame_gv_players[gv_pLAYER_01_USER].lv_heroUnit, c_unitPropXP, c_unitPropCurrent));
libGame_gf_GrantXPToPlayer(lv_xPValue, gv_pLAYER_01_USER, libGame_ge_XPSources_Debug);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:4281
// Conditions
if (testConds) {
if (!((UnitXPGetCurrentLevel(gv_heroPlayer, null) == 10))) {
return false;
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1314
// Conditions
if (testConds) {
if (!((UnitXPGetCurrentLevel(gv_heroPlayer, null) >= 4))) {
return false;
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:646
DialogControlSetEnabled(gv_tryMeModePanel.lv_setLevelButton, PlayerGroupAll(), true);
DialogControlSetVisible(gv_tryMeModePanel.lv_levelFrame, PlayerGroupAll(), true);
lv_level = UnitXPGetCurrentLevel(libGame_gv_players[gv_pLAYER_TryMe_C].lv_heroUnit, null);
libNtve_gf_SetDialogItemCurrentValue(gv_tryMeModePanel.lv_levelSlider, lv_level, PlayerGroupAll());
TextExpressionSetToken("Param/Expression/D5756675", "A", IntToText(lv_level));
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:672
// Automatic Variable Declarations
// Variable Initialization
lv_currentLevel = UnitXPGetCurrentLevel(libGame_gv_players[gv_pLAYER_TryMe_C].lv_heroUnit, null);
lv_realLevel = MaxI(1, MinI(30, lp_level));
lv_defaultIndex = 1;
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:513
// Implementation
TimerStart(lv_vOTimer, lp_duration, false, c_timeGame);
lv_xPValue = (libCore_gf_GetTotalXPForLevel((UnitXPGetCurrentLevel(gv_heroNova, null) + 1)) - (UnitGetPropertyFixed(libGame_gv_players[gv_pLAYER_05_NOVA].lv_heroUnit, c_unitPropXP, c_unitPropCurrent) + 5.0));
TriggerExecute(gt_StartEXPArrowFlash, true, false);
while ((TimerGetRemaining(lv_vOTimer) > 0.0)) {
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:3061
}
if (!((UnitXPGetCurrentLevel(gv_heroPlayer, null) >= 2))) {
return false;
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:3087
RemovePointOfInterest(PointFromName("Lane 1 - Waypoint 14"), "TutorialGuldanBeacon", libNtve_ge_GoalTeam_Chaos);
RemovePointOfInterest(PointFromName("Lane 3 - Waypoint 14"), "TutorialTychusBeacon", libNtve_ge_GoalTeam_Chaos);
while (!((UnitXPGetCurrentLevel(gv_heroPlayer, null) >= 4))) {
Wait(1.0, c_timeGame);
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:3092
Wait(15.0, c_timeGame);
TriggerExecute(gt_TalentsReminder, true, false);
while (!((UnitXPGetCurrentLevel(gv_heroPlayer, null) >= 6))) {
Wait(1.0, c_timeGame);
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:3654
UnitIssueOrder(gv_heroTankDps, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
libNtve_gf_PauseUnit(gv_heroTankDps, true);
if ((UnitXPGetCurrentLevel(gv_heroPlayer, null) < 8)) {
lv_xPValue = (libCore_gf_GetTotalXPForLevel((UnitXPGetCurrentLevel(gv_heroPlayer, null) + 1)) - UnitGetPropertyFixed(libGame_gv_players[gv_pLAYER_01_USER].lv_heroUnit, c_unitPropXP, c_unitPropCurrent));
libGame_gf_GrantXPToPlayer(lv_xPValue, gv_pLAYER_01_USER, libGame_ge_XPSources_Debug);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:3655
libNtve_gf_PauseUnit(gv_heroTankDps, true);
if ((UnitXPGetCurrentLevel(gv_heroPlayer, null) < 8)) {
lv_xPValue = (libCore_gf_GetTotalXPForLevel((UnitXPGetCurrentLevel(gv_heroPlayer, null) + 1)) - UnitGetPropertyFixed(libGame_gv_players[gv_pLAYER_01_USER].lv_heroUnit, c_unitPropXP, c_unitPropCurrent));
libGame_gf_GrantXPToPlayer(lv_xPValue, gv_pLAYER_01_USER, libGame_ge_XPSources_Debug);
libGame_gf_GrantXPToPlayer(lv_xPValue, gv_pLAYER_02_HEALERTANK, libGame_ge_XPSources_Debug);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:3918
Wait(1.0, c_timeGame);
TriggerQueueEnter();
if ((UnitXPGetCurrentLevel(gv_heroPlayer, null) < 9)) {
lv_xPValue = (libCore_gf_GetTotalXPForLevel((UnitXPGetCurrentLevel(gv_heroPlayer, null) + 1)) - UnitGetPropertyFixed(libGame_gv_players[gv_pLAYER_01_USER].lv_heroUnit, c_unitPropXP, c_unitPropCurrent));
libGame_gf_GrantXPToPlayer(lv_xPValue, gv_pLAYER_01_USER, libGame_ge_XPSources_Debug);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:3919
TriggerQueueEnter();
if ((UnitXPGetCurrentLevel(gv_heroPlayer, null) < 9)) {
lv_xPValue = (libCore_gf_GetTotalXPForLevel((UnitXPGetCurrentLevel(gv_heroPlayer, null) + 1)) - UnitGetPropertyFixed(libGame_gv_players[gv_pLAYER_01_USER].lv_heroUnit, c_unitPropXP, c_unitPropCurrent));
libGame_gf_GrantXPToPlayer(lv_xPValue, gv_pLAYER_01_USER, libGame_ge_XPSources_Debug);
libGame_gf_GrantXPToPlayer(lv_xPValue, gv_pLAYER_02_HEALERTANK, libGame_ge_XPSources_Debug);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:4132
TriggerExecute(gt_ObjectiveEscortMercsComplete, true, false);
if ((UnitXPGetCurrentLevel(gv_heroPlayer, null) < 10)) {
lv_xPValue = (libCore_gf_GetTotalXPForLevel(10) - UnitGetPropertyFixed(libGame_gv_players[gv_pLAYER_01_USER].lv_heroUnit, c_unitPropXP, c_unitPropCurrent));
libGame_gf_GrantXPToPlayer(lv_xPValue, gv_pLAYER_01_USER, libGame_ge_XPSources_Debug);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:4281
// Conditions
if (testConds) {
if (!((UnitXPGetCurrentLevel(gv_heroPlayer, null) == 10))) {
return false;
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1314
// Conditions
if (testConds) {
if (!((UnitXPGetCurrentLevel(gv_heroPlayer, null) >= 4))) {
return false;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:11620
lv_liLiPlayer = EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster);
lv_owningUnit = EventPlayerEffectUsedUnit(c_effectUnitTarget);
lv_characterLevel = UnitXPGetCurrentLevel(lv_caster, "HeroDummyVeterancy");
libNtve_gf_CreateUnitsAtPoint2(1, "CloudSerpent", 0, lv_liLiPlayer, PointWithOffsetPolar(UnitGetPosition(lv_owningUnit), 1.5, libNtve_gf_RandomAngle()), lv_caster);
lv_cloudSerpent = UnitLastCreated();
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:11782
lv_owningPlayer = EventPlayerEffectUsedUnitOwner(c_effectPlayerTarget);
lv_owningUnit = EventPlayerEffectUsedUnit(c_effectUnitTarget);
lv_characterLevel = UnitXPGetCurrentLevel(lv_caster, "HeroDummyVeterancy");
libNtve_gf_CreateUnitsAtPoint2(1, "CloudSerpent", 0, lv_owningPlayer, PointWithOffsetPolar(UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitTarget)), 1.5, libNtve_gf_RandomAngle()), lv_caster);
lv_cloudSerpent = UnitLastCreated();
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:15041
libGame_gf_ScoreValuesReportRealValueAndLog(lv_iterator, "VengeancesPerformed", libGame_gv_playerAwardEligibility[lv_iterator][libGame_ge_SecondaryAwards_Avenger].lv_value);
libGame_gf_ScoreValuesReportRealValueAndLog(lv_iterator, "OutnumberedDeaths", libGame_gv_outnumberedDeathCount[lv_iterator]);
libGame_gf_ScoreValuesReportRealValueAndLog(lv_iterator, "TeamLevel", UnitXPGetCurrentLevel(libGame_gv_players[lv_iterator].lv_heroUnit, null));
}
return true;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:2093
}
lv_deadHeroWholeLevel = UnitXPGetCurrentLevel(libGame_gv_players[UnitGetOwner(lp_deadHero)].lv_heroUnit, "HeroDummyVeterancy");
lv_experienceLevelBaseXP = libCore_gf_GetTotalXPForLevel(lv_deadHeroWholeLevel);
lv_experienceLevelTotalXP = UnitXPGetCurrentXP(libGame_gv_players[UnitGetOwner(lp_deadHero)].lv_heroUnit, "HeroDummyVeterancy");
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:2109
}
lv_playerHeroWholeLevel = UnitXPGetCurrentLevel(libGame_gv_players[UnitGetOwner(lp_playerHero)].lv_heroUnit, "HeroDummyVeterancy");
lv_experienceLevelBaseXP = libCore_gf_GetTotalXPForLevel(lv_playerHeroWholeLevel);
lv_experienceLevelTotalXP = UnitXPGetCurrentXP(libGame_gv_players[UnitGetOwner(lp_playerHero)].lv_heroUnit, "HeroDummyVeterancy");
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:4576
lv_oldBoostVal = libSprt_gv_dEBUGXPPassiveBoostMultiplier;
libSprt_gv_dEBUGXPPassiveBoostMultiplier = 1.0;
lv_team1Level = UnitXPGetCurrentLevel(libGame_gv_players[libSprt_gv_dEBUGXPPassiveBalancerTeam1Player].lv_heroUnit, null);
lv_team2Level = UnitXPGetCurrentLevel(libGame_gv_players[libSprt_gv_dEBUGXPPassiveBalancerTeam2Player].lv_heroUnit, null);
if ((lv_team1Level != lv_team2Level)) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:4577
libSprt_gv_dEBUGXPPassiveBoostMultiplier = 1.0;
lv_team1Level = UnitXPGetCurrentLevel(libGame_gv_players[libSprt_gv_dEBUGXPPassiveBalancerTeam1Player].lv_heroUnit, null);
lv_team2Level = UnitXPGetCurrentLevel(libGame_gv_players[libSprt_gv_dEBUGXPPassiveBalancerTeam2Player].lv_heroUnit, null);
if ((lv_team1Level != lv_team2Level)) {
if ((lv_team1Level > lv_team2Level)) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:4776
}
while ((libSprt_gv_dEBUGXPBoostEnable == true)) {
if ((UnitXPGetCurrentLevel(lv_highestXPUnit, "HeroDummyVeterancy") == UnitXPGetCurrentLevel(lv_lowestXPUnit, "HeroDummyVeterancy"))) {
libSprt_gv_dEBUGXPBoostEnable = false;
TriggerDebugOutput(1, StringExternal("Param/Value/lib_Sprt_4A3E86C3"), true);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:4776
}
while ((libSprt_gv_dEBUGXPBoostEnable == true)) {
if ((UnitXPGetCurrentLevel(lv_highestXPUnit, "HeroDummyVeterancy") == UnitXPGetCurrentLevel(lv_lowestXPUnit, "HeroDummyVeterancy"))) {
libSprt_gv_dEBUGXPBoostEnable = false;
TriggerDebugOutput(1, StringExternal("Param/Value/lib_Sprt_4A3E86C3"), true);
mods/heromods/zarya.stormmod — base.stormdata/LibHZAR.galaxy:1123
}
if ((libHZAR_gv_heroZaryaCurrentDamagetoEnergyConversionRate[lv_localTriggeringPlayer] != (libHZAR_gv_heroZaryaUnscaledDamagetoEnergyConversionRate * Pow(1.04, UnitXPGetCurrentLevel(EventUnit(), null))))) {
libHZAR_gv_heroZaryaCurrentDamagetoEnergyConversionRate[lv_localTriggeringPlayer] = (libHZAR_gv_heroZaryaUnscaledDamagetoEnergyConversionRate * Pow(1.04, UnitXPGetCurrentLevel(EventUnit(), null)));
}
mods/heromods/zarya.stormmod — base.stormdata/LibHZAR.galaxy:1124
if ((libHZAR_gv_heroZaryaCurrentDamagetoEnergyConversionRate[lv_localTriggeringPlayer] != (libHZAR_gv_heroZaryaUnscaledDamagetoEnergyConversionRate * Pow(1.04, UnitXPGetCurrentLevel(EventUnit(), null))))) {
libHZAR_gv_heroZaryaCurrentDamagetoEnergyConversionRate[lv_localTriggeringPlayer] = (libHZAR_gv_heroZaryaUnscaledDamagetoEnergyConversionRate * Pow(1.04, UnitXPGetCurrentLevel(EventUnit(), null)));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:4577
lv_dehakaAttackDamageBase = 20;
lv_dehakaUnit = libCOMI_gv_cM_HeroUnit[lp_dehakaPlayer];
lv_dehakaCurrentLevel = UnitXPGetCurrentLevel(lp_dehakaUnit, null);
lv_dehakaUnitType = UnitGetType(lp_dehakaUnit);
lv_dehakaUnitActor = libNtve_gf_MainActorofUnit(lp_dehakaUnit);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5389
lv_veteran = UnitGroupUnitFromEnd(autoED740C17_g, autoED740C17_u);
if (lv_veteran == null) { break; }
if ((UnitXPGetCurrentLevel(lv_veteran, null) >= UnitXPGetNumLevels(lv_veteran, null))) {
lv_maxedsupply += UnitGetPropertyFixed(lv_veteran, c_unitPropSuppliesUsed, c_unitPropNormal);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5419
if (lv_unititer == null) { break; }
if ((UnitIsAlive(lv_unititer) == true)) {
lv_totalproperty += (UnitGetPropertyFixed(lv_unititer, c_unitPropSuppliesUsed, c_unitPropCurrent) * (1+UnitXPGetCurrentLevel(lv_unititer, null)));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:17754
}
if (!((UnitXPGetCurrentLevel(EventUnit(), null) >= 6))) {
return false;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:17804
}
if (!((UnitXPGetCurrentLevel(EventUnit(), null) >= 10))) {
return false;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:21904
DialogControlHookupUnitStatus(c_triggerControlTypeUnitStatusBar, "HealthBar", lv_levellingunit);
lv_statusframe = DialogControlLastCreated();
DialogControlSetAnimationState(lv_statusframe, PlayerGroupAll(), "Rank", IntToString(UnitXPGetCurrentLevel(lv_levellingunit, null)));
UnitGroupRemove(libCOMI_gv_cM_Mengsk_XPHungryUnits, lv_levellingunit);
libCOMI_gf_CM_Mengsk_CheckRoyalGuardSupply();
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:21977
DialogControlHookupUnitStatus(c_triggerControlTypeUnitStatusBar, "HealthBar", lv_levellingunit);
lv_statusframe = DialogControlLastCreated();
DialogControlSetAnimationState(lv_statusframe, PlayerGroupAll(), "Rank", IntToString(UnitXPGetCurrentLevel(lv_levellingunit, null)));
libCOMI_gf_CM_Mengsk_GlobalCasterEnergyRegenCalculateRoyalGuard(UnitGetOwner(EventPlayerEffectUsedUnit(c_effectUnitCaster)));
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:22217
if ((EventPlayerEffectUsed() == "MedivacMengskSiegeTankAirliftLoadTrigger")) {
UnitBehaviorAdd(lv_medivac, "MedivacMengskSiegeTankAirlift", lv_medivac, 1);
libCOMI_gf_SetUnitAttributePoints("MedivacMengskSiegeTankAirliftLevel", lv_medivac, (UnitXPGetCurrentLevel(lv_siegetank, null) - 1));
DialogControlHookupUnitStatus(c_triggerControlTypeUnitStatusBar, "HealthBar", lv_medivac);
lv_statusframe = DialogControlLastCreated();
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:22220
DialogControlHookupUnitStatus(c_triggerControlTypeUnitStatusBar, "HealthBar", lv_medivac);
lv_statusframe = DialogControlLastCreated();
DialogControlSetAnimationState(lv_statusframe, PlayerGroupAll(), "Rank", IntToString(UnitXPGetCurrentLevel(lv_siegetank, null)));
}
else {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:22276
}
libCOMI_gf_SetUnitAttributePoints("MedivacMengskSiegeTankAirliftLevel", lv_medivac, (UnitXPGetCurrentLevel(lv_siegetank, null) - 1));
DialogControlHookupUnitStatus(c_triggerControlTypeUnitStatusBar, "HealthBar", lv_medivac);
lv_statusframe = DialogControlLastCreated();
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:1300
// Implementation
libNtve_gf_SetDialogItemText(libWCdr_gv_gameUI.lv_hero_LevelLabel, IntToText(UnitXPGetCurrentLevel(lp_hero, "AHer")), lv_heroownergroup);
}