ESODecoded

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 started

Short excerpt from the shipping addon Combat Metricsits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Combat Metrics7,085,289
Action Duration Reminder6,522,011
Bandits User Interface6,130,317
AUI - Advanced UI5,406,091
Srendarr - Aura, Buff & Debuff Tracker5,058,870
LibCombat5,017,654