# Effect Used From Scope

Grammar — Player p uses effect from scope scope|Scope
FlagsNative | Event

This event fires when an effect from the specifed scope is used by the specified player.

# Arguments

  • int — Player
  • string<catalogscope> — Effect

Returns — void

native void TriggerAddEventPlayerEffectUsedFromScope(
	trigger t,
	int player,
	string inScope,
);

# Event parameters

Category: Environment / Effects

# Examples

mods/heroes.stormmodbase.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.stormmapMapScript.galaxy:5807

    gt__1E_RoamingHeroTakesDamage = TriggerCreate("gt__1E_RoamingHeroTakesDamage_Func");
    TriggerEnable(gt__1E_RoamingHeroTakesDamage, false);
    TriggerAddEventPlayerEffectUsedFromScope(gt__1E_RoamingHeroTakesDamage, c_playerAny, "CEffectDamage");
}

mods/heroesdata.stormmodbase.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.stormmodbase.stormdata/LibHCHR.galaxy:259

    libHCHR_gt_HeroChromieTemporalLoopTeleportDetection = TriggerCreate("libHCHR_gt_HeroChromieTemporalLoopTeleportDetection_Func");
    TriggerEnable(libHCHR_gt_HeroChromieTemporalLoopTeleportDetection, false);
    TriggerAddEventPlayerEffectUsedFromScope(libHCHR_gt_HeroChromieTemporalLoopTeleportDetection, c_playerAny, "CEffectTeleport");
}