# Effect Used From Scope
Grammar — Player p uses effect from scope scope|Scope
Flags —Native
|Event
This event fires when an effect from the specifed scope is used by the specified player.
# Arguments
int
— Playerstring
<catalogscope> — Effect
Returns — void
native void TriggerAddEventPlayerEffectUsedFromScope(
trigger t,
int player,
string inScope,
);
# Event parameters
- Triggering Effect Impact Unit — EventPlayerEffectUsedUnitImpact
- Triggering Effect Launch Unit — EventPlayerEffectUsedUnitLaunch
- Triggering Player — EventPlayer
# 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/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:5807
gt__1E_RoamingHeroTakesDamage = TriggerCreate("gt__1E_RoamingHeroTakesDamage_Func");
TriggerEnable(gt__1E_RoamingHeroTakesDamage, false);
TriggerAddEventPlayerEffectUsedFromScope(gt__1E_RoamingHeroTakesDamage, c_playerAny, "CEffectDamage");
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:5807
gt__1E_RoamingHeroTakesDamage = TriggerCreate("gt__1E_RoamingHeroTakesDamage_Func");
TriggerEnable(gt__1E_RoamingHeroTakesDamage, false);
TriggerAddEventPlayerEffectUsedFromScope(gt__1E_RoamingHeroTakesDamage, c_playerAny, "CEffectDamage");
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SoundLib.galaxy:1497
void libSond_gt_HeroVOPlayHealThankYouLineTrigger_Init () {
libSond_gt_HeroVOPlayHealThankYouLineTrigger = TriggerCreate("libSond_gt_HeroVOPlayHealThankYouLineTrigger_Func");
TriggerAddEventPlayerEffectUsedFromScope(libSond_gt_HeroVOPlayHealThankYouLineTrigger, c_playerAny, "CEffectCreateHealer");
}
mods/heromods/chromie.stormmod — base.stormdata/LibHCHR.galaxy:259
libHCHR_gt_HeroChromieTemporalLoopTeleportDetection = TriggerCreate("libHCHR_gt_HeroChromieTemporalLoopTeleportDetection_Func");
TriggerEnable(libHCHR_gt_HeroChromieTemporalLoopTeleportDetection, false);
TriggerAddEventPlayerEffectUsedFromScope(libHCHR_gt_HeroChromieTemporalLoopTeleportDetection, c_playerAny, "CEffectTeleport");
}