# Triggering Effect Amount (Real)
Flags —
Native
|Function
# Arguments
int
<preset::EffectAmount> — Amount Typebool
— Total
Returns — fixed
native fixed EventPlayerEffectUsedAmountFixed(
int inAmount,
bool total,
);
# Supported triggers
- Effect Used — TriggerAddEventPlayerEffectUsed
# Related
Category: Environment / Effects
- Create Explosion At Point —
void
— libNtve_gf_CreateExplosionAtPoint - Create Effect At Point (From Player) —
void
— PlayerCreateEffectPoint - Create Effect On Unit (From Player) —
void
— PlayerCreateEffectUnit - Create Effect At Point (From Unit) —
void
— UnitCreateEffectPoint - Create Effect On Unit (From Unit) —
void
— UnitCreateEffectUnit - Damage Unit (From Unit) —
void
— UnitDamage - Player Can Create Effect At Point —
bool
— libNtve_gf_PlayerCanCreateEffectAtPoint - Player Can Create Effect On Unit —
bool
— libNtve_gf_PlayerCanCreateEffectOnUnit - Unit Can Create Effect At Point —
bool
— libNtve_gf_UnitCanCreateEffectAtPoint - Unit Can Create Effect On Unit —
bool
— libNtve_gf_UnitCanCreateEffectOnUnit - Destroy Effects —
void
— GameDestroyEffects - Effect Used —
void
— TriggerAddEventPlayerEffectUsed - Effect Used From Scope —
void
— TriggerAddEventPlayerEffectUsedFromScope - Triggering Effect Used —
string
<gamelink::Effect> — EventPlayerEffectUsed - Triggering Effect Point —
point
— EventPlayerEffectUsedPoint - Triggering Effect Unit —
unit
— EventPlayerEffectUsedUnit - Triggering Effect Item —
unit
— EventPlayerEffectUsedItem - Triggering Effect Impact Unit —
unit
— EventPlayerEffectUsedUnitImpact - Triggering Effect Launch Unit —
unit
— EventPlayerEffectUsedUnitLaunch - Triggering Effect Unit Owner —
int
— EventPlayerEffectUsedUnitOwner - Triggering Effect Unit Type —
string
<gamelink::Unit> — EventPlayerEffectUsedUnitType - Triggering Effect Item Type —
string
<gamelink::Unit> — EventPlayerEffectUsedItemType - Triggering Effect Amount (Integer) —
int
— EventPlayerEffectUsedAmountInt - Triggering Effect Amount (Real) —
fixed
— EventPlayerEffectUsedAmountFixed - Triggering Effect Source Behavior —
string
<gamelink::Behavior> — EventPlayerEffectUsedSourceBehavior - Triggering Effect Weapon —
string
<gamelink::Weapon> — EventPlayerEffectUsedWeapon - Triggering Effect Ability —
string
<gamelink::Abil> — EventPlayerEffectUsedAbil
# Examples
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:11562
lv_hostPlayer = EventPlayerEffectUsedUnitOwner(c_effectPlayerCaster);
lv_healingAmount = EventPlayerEffectUsedAmountFixed(c_effectAmountHealed, false);
lv_vertOffset = 2.0;
lv_horizOffset = RandomFixed(-0.4, -0.6);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:18695
}
CatalogFieldValueSetFixed(c_gameCatalogEffect, "RehgarAncestralHealingFarseersBlessingCreateHealer", "RechargeVitalRate", UnitGetOwner(lv_casterUnit), (EventPlayerEffectUsedAmountFixed(c_effectAmountHealed, true) * libGDHL_gv_heroRehgarAncestralHealingFarseersBlessingHealScale));
UnitCreateEffectUnit(lv_casterUnit, "RehgarAncestralHealingFarseersBlessingSearch", lv_targetUnit);
return true;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SoundLib.galaxy:1474
}
if (!((EventPlayerEffectUsedAmountFixed(c_effectAmountHealed, false) > lv_healMinimum))) {
return false;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:18566
}
libCOMI_gv_cM_Fenix_SuicideLife[EventPlayer()] = EventPlayerEffectUsedAmountFixed(c_effectAmountShieldsChanged, true);
libCOMI_gv_cM_Fenix_SuicideShield[EventPlayer()] = EventPlayerEffectUsedAmountFixed(c_effectAmountLifeChanged, false);
return true;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:18567
libCOMI_gv_cM_Fenix_SuicideLife[EventPlayer()] = EventPlayerEffectUsedAmountFixed(c_effectAmountShieldsChanged, true);
libCOMI_gv_cM_Fenix_SuicideShield[EventPlayer()] = EventPlayerEffectUsedAmountFixed(c_effectAmountLifeChanged, false);
return true;
}