EVENT_EFFECT_CHANGED
ESO Lua API function — used by 282 of the 3,030 addons we indexed (combined 63,230,405 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
EVENT_EFFECT_CHANGED([EffectResult|#EffectResult] changeType, integer effectSlot, string effectName, string unitTag, number beginTime, number endTime, integer stackCount, string iconName, string deprecatedBuffType, [BuffEffectType|#BuffEffectType] effectType, [AbilityType|#AbilityType] abilityType, [StatusEffectType|#StatusEffectType] statusEffectType, string unitName, integer unitId, integer abilityId, [CombatUnitType|#CombatUnitType] sourceType)Real usage — from Combat Metrics
self.effectType = effectType -- buff or debuff
self.maxStacks = 0 -- stacks = 0 if the effect wasn't tracked trough EVENT_EFFECT_CHANGED
self.firstStartTime = nil -- temp variable to track when uptime for a buff initially startedShort excerpt from the shipping addon Combat Metrics — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Combat Metrics | 7,085,289 |
| Action Duration Reminder | 6,522,011 |
| Bandits User Interface | 6,130,317 |
| AUI - Advanced UI | 5,406,091 |
| Srendarr - Aura, Buff & Debuff Tracker | 5,058,870 |
| LibCombat | 5,017,654 |