# Triggering Heal Given
Grammar — Triggering heal given
Flags —Native
|Function
Returns the triggering heal amount.
Returns — fixed
native fixed EventUnitHealAmount();
# Supported triggers
- Unit Takes Damage — TriggerAddEventUnitDamaged
# Related
Category: Unit / Combat
- Get Unit Damage Dealt Time —
fixed
— UnitGetDamageDealtTime - Get Unit Damage Taken Time —
fixed
— UnitGetDamageTakenTime - Weapon Used In Attack —
string
<gamelink::Weapon> — EventUnitGetWeapon - Item Used In Attack —
unit
— EventUnitGetItem - Item Type Used In Attack —
string
<gamelink::Item> — EventUnitGetItemType - Unit Dies —
void
— TriggerAddEventUnitDied - Killing Unit —
unit
— libNtve_gf_KillingUnit - Killing Player —
int
— libNtve_gf_KillingPlayer - Triggering Death Type Check —
bool
— EventUnitDamageDeathCheck - Unit Is Being Removed —
void
— TriggerAddEventUnitRemoved - Unit Starts Attacking (Deprecated) —
void
— TriggerAddEventUnitStartedAttack - Unit Starts Attacking —
void
— TriggerAddEventUnitStartedAttack2 - Unit Is Attacked (Deprecated) —
void
— TriggerAddEventUnitAttacked - Unit Is Attacked —
void
— TriggerAddEventUnitAttacked2 - Attacking Unit —
unit
— EventUnitTarget - Unit Absorbs Damage —
void
— TriggerAddEventUnitDamageAbsorbed - Unit Takes Damage —
void
— TriggerAddEventUnitDamaged - Damaging Unit —
unit
— EventUnitDamageSourceUnit - Damaging Player —
int
— EventUnitDamageSourcePlayer - Damaging Effect —
string
<gamelink::Effect> — EventUnitDamageEffect - Triggering Damage Taken —
fixed
— EventUnitDamageAmount - Triggering Damage Attempted —
fixed
— EventUnitDamageAttempted - Triggering Damage Attempted Vitals —
fixed
— EventUnitDamageAttemptedVitals - Triggering Damage Absorbed —
fixed
— EventUnitDamageAbsorbed - Triggering Damage Behavior Shield —
fixed
— EventUnitDamageBehaviorShield - Triggering Vitals Leeched —
fixed
— EventUnitDamageVitalsLeeched - Triggering Unit Kill XP —
int
— EventUnitDamageKillXP - Damage Source Position —
point
— EventUnitDamageSourcePoint - Unit is Healed —
void
— TriggerAddEventUnitHealed - Healing Unit —
unit
— EventUnitHealLaunchUnit - Healing Player —
int
— EventUnitHealLaunchPlayer - Triggering Heal Vital Type —
int
<preset::UnitVitalType> — EventUnitHealVital - Triggering Heal Given —
fixed
— EventUnitHealAmount - Healing Effect —
string
<gamelink::Effect> — EventUnitHealEffect - Unit Spends Vital —
void
— TriggerAddEventUnitSpendVital - Triggering Spent Vital Type —
int
<preset::UnitVitalType> — EventUnitSpentVitalVital - Triggering Vital Spent —
fixed
— EventUnitSpentVitalAmount - Unit Acquires Target —
void
— TriggerAddEventUnitAcquiredTarget - Acquired Target —
unit
— libNtve_gf_AcquiredTarget - Unit Is Revived —
void
— TriggerAddEventUnitRevive - Triggering Victim Unit —
unit
— EventUnitVictimUnit - Triggering Item Used —
unit
— EventUnitItemUsed - Triggering Effect Used —
string
<gamelink::Effect> — EventUnitEffectUsed
# Examples
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur03.sc2map/MapScript.galaxy:3714
}
gv_shieldsRechargedByShieldBatteries += EventUnitHealAmount();
return true;
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/ppurifier01.sc2map/MapScript.galaxy:4273
}
gv_shieldsRestoredBySentries += EventUnitHealAmount();
return true;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur03.sc2map — MapScript.galaxy:3714
}
gv_shieldsRechargedByShieldBatteries += EventUnitHealAmount();
return true;
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/ppurifier01.sc2map — MapScript.galaxy:4273
}
gv_shieldsRestoredBySentries += EventUnitHealAmount();
return true;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:10813
if ((lv_iD != null)) {
lv_previousValue = DataTableGetInt(true, lv_iD);
DataTableSetInt(true, lv_iD, (lv_previousValue+FixedToInt(EventUnitHealAmount())));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:12423
}
lv_healthRegenPercentage = (EventUnitHealAmount() / UnitGetPropertyFixed(lv_leoricUnit, c_unitPropLifeMax, c_unitPropCurrent));
lv_reducedTotalRespawnTime = (lv_currentTotalRespawnTime * (1.0 - lv_healthRegenPercentage));
lv_timeReduced = (lv_reducedTotalRespawnTime - lv_currentTotalRespawnTime);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:17706
}
lv_healAmount = EventUnitHealAmount();
lv_healAmountPrevented = (lv_healAmount * 3.0);
libGDHL_gv_heroNecromancerMortalWoundsNumbers[lv_ownerOfUnit] += lv_healAmountPrevented;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:24814
lv_unit = EventUnitHealLaunchUnit();
lv_player = UnitGetOwner(lv_unit);
lv_healAmount = EventUnitHealAmount();
lv_healAmountMod = (lv_healAmount * libGDHL_gv_bALHeroUtherBlessedChampionHeal);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:24859
lv_unit = EventUnitHealLaunchUnit();
lv_player = UnitGetOwner(lv_unit);
lv_healAmount = EventUnitHealAmount();
lv_healAmountMod = (lv_healAmount * libGDHL_gv_bALHeroUtherBlessedChampionHeal);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:15222
}
libGame_gf_AddtoAwardValue(lv_healingPlayer, EventUnitHealAmount(), libGame_ge_SecondaryAwards_CombatMedic);
return true;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:15498
}
if (!((((UnitGetPropertyFixed(lv_healedUnit, c_unitPropLife, c_unitPropCurrent) - EventUnitHealAmount()) / UnitGetPropertyFixed(lv_healedUnit, c_unitPropLifeMax, c_unitPropCurrent)) < 0.1))) {
return false;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:2569
}
lv_healingDone = EventUnitHealAmount();
lv_healingEffect = EventUnitHealEffect();
lv_healingEffectName = (lv_healingEffect);
mods/heromods/alexstrasza.stormmod — base.stormdata/LibHALE.galaxy:293
lv_healingPlayer = EventUnitHealLaunchPlayer();
lv_targetUnit = EventUnit();
lv_healAmount = EventUnitHealAmount();
lv_shieldAmountFactor = CatalogFieldValueGetAsFixed(c_gameCatalogEffect, "AlexstraszaOverprotectiveAbundanceShieldFractionScaleDummy", "VitalArray[" + IntToString(1) + "].ChangeFraction", lv_healingPlayer);
lv_shieldAmount = (lv_healAmount * lv_shieldAmountFactor);
mods/heromods/fenix.stormmod — base.stormdata/LibHFEN.galaxy:105
lv_fenixPlayer = UnitGetOwner(EventUnit());
lv_fenixUnit = libGame_gv_players[lv_fenixPlayer].lv_heroUnit;
lv_healingReceived = EventUnitHealAmount();
// Conditions
mods/heromods/zarya.stormmod — base.stormdata/LibHZAR.galaxy:921
}
lv_localTriggeringHealAmount = EventUnitHealAmount();
if ((lv_localTriggeringHealAmount >= 1)) {
FloatingCombatElementCreateNumberTextAtUnit(PlayerGroupSingle(UnitGetOwner(EventUnit())), "Zarya/ZaryaEnergyReceived", "", EventUnit(), FixedToInt(EventUnitHealAmount()), StringExternal("Param/Value/lib_HZAR_D91F88FC"), libNtve_gv_FloatingCombatTextAutoRandomSeed);
mods/heromods/zarya.stormmod — base.stormdata/LibHZAR.galaxy:923
lv_localTriggeringHealAmount = EventUnitHealAmount();
if ((lv_localTriggeringHealAmount >= 1)) {
FloatingCombatElementCreateNumberTextAtUnit(PlayerGroupSingle(UnitGetOwner(EventUnit())), "Zarya/ZaryaEnergyReceived", "", EventUnit(), FixedToInt(EventUnitHealAmount()), StringExternal("Param/Value/lib_HZAR_D91F88FC"), libNtve_gv_FloatingCombatTextAutoRandomSeed);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:26239
}
AchievementTermQuantityAdd(lv_healingPlayer, "CommanderTychusHeal", CeilingI(EventUnitHealAmount()));
return true;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:6837
}
libCOOC_gv_cC_ScoreRaynorHeal[EventPlayer()] += EventUnitHealAmount();
PlayerScoreValueSetFromInt(EventPlayer(), "RaynorMedicHealing", FixedToInt(libCOOC_gv_cC_ScoreRaynorHeal[EventPlayer()]));
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:6919
}
libCOOC_gv_cC_ScoreSwannHeal[EventPlayer()] += EventUnitHealAmount();
PlayerScoreValueSetFromInt(EventPlayer(), "SwannMechHealing", FixedToInt(libCOOC_gv_cC_ScoreSwannHeal[EventPlayer()]));
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:7212
}
libCOOC_gv_cC_ScoreAbathurHeal[EventPlayer()] += EventUnitHealAmount();
PlayerScoreValueSetFromInt(EventPlayer(), "AbathurHealingReceived", FixedToInt(libCOOC_gv_cC_ScoreAbathurHeal[EventPlayer()]));
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:7337
}
libCOOC_gv_cC_ScoreAlarakHeal[EventPlayer()] += EventUnitHealAmount();
PlayerScoreValueSetFromInt(EventPlayer(), "AlarakSelfHeals", FixedToInt(libCOOC_gv_cC_ScoreAlarakHeal[EventPlayer()]));
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:7382
}
libCOOC_gv_cC_ScoreAlarakHeal[EventPlayer()] += EventUnitHealAmount();
PlayerScoreValueSetFromInt(EventPlayer(), "AlarakSelfHeals", FixedToInt(libCOOC_gv_cC_ScoreAlarakHeal[EventPlayer()]));
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:7461
}
libCOOC_gv_cC_ScoreNovaHeal[EventPlayer()] += EventUnitHealAmount();
PlayerScoreValueSetFromInt(EventPlayer(), "NovaHealandAbsorb", FixedToInt(libCOOC_gv_cC_ScoreNovaHeal[EventPlayer()]));
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:8150
}
libCOOC_gv_cC_ScoreTychusMedicHeal[EventUnitHealLaunchPlayer()] += EventUnitHealAmount();
PlayerScoreValueSetFromInt(EventUnitHealLaunchPlayer(), "TychusMedicHeal", FixedToInt(libCOOC_gv_cC_ScoreTychusMedicHeal[EventUnitHealLaunchPlayer()]));
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOOC.galaxy:8337
}
libCOOC_gv_cC_ScoreZeratulShieldRestore[EventUnitHealLaunchPlayer()] += EventUnitHealAmount();
PlayerScoreValueSetFromInt(EventUnitHealLaunchPlayer(), "ZeratulShieldRestore", FixedToInt(libCOOC_gv_cC_ScoreZeratulShieldRestore[EventUnitHealLaunchPlayer()]));
return true;