Thread Tools Display Modes
10/29/15, 02:07 PM   #1
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
EVENT_EFFECT_CHANGED Problem

The event EVENT_EFFECT_CHANGED is firing an EFFECT_RESULT_GAINED for buffs that the character already has when weapons are swapped.

If the character already has the buff it should either fire EFFECT_RESULT_FADED first, before firing EFFECT_RESULT_GAINED to regain the buff, or don't fire the EFFECT_RESULT_GAINED at all. Or possibly an EFFECT_RESULT_UPDATED would also be logical.

Last edited by circonian : 10/29/15 at 02:12 PM.
  Reply With Quote
11/21/15, 06:20 PM   #2
haggen
 
haggen's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2015
Posts: 137
Meanwhile you could set a flag on EVENT_ACTIVE_WEAPON_PAIR_CHANGED and then avoid the visual update on the buffs (that is, only if it occurs BEFORE the EVENT_EFFECT_CHANGED).
  Reply With Quote
11/21/15, 08:29 PM   #3
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by haggen View Post
Meanwhile you could set a flag on EVENT_ACTIVE_WEAPON_PAIR_CHANGED and then avoid the visual update on the buffs (that is, only if it occurs BEFORE the EVENT_EFFECT_CHANGED).
Thanks for the info. I'm not using the weapon pair change event, but using a flag is sort of what I'm doing. If it passes in an effect with EFFECT_RESULT_GAINED and the addon already has that effect registered then the addon just treats it as an EFFECT_RESULT_UPDATED.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » EVENT_EFFECT_CHANGED Problem


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off