Quantcast
effect change clickoff filter - ESOUI
Thread Tools Display Modes
08/07/20, 04:19 AM   #1
ExoY
 
ExoY's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2020
Posts: 13
effect change clickoff filter

Hello,

does anybody know, if it is possible to add an Filter to "EVENT_EFFECT_CHANGED", so it is only activated when the player "clicksOff" a buff (e.g buffFood)

I do know, how to add filters in general. So what i am asking: is there a filter for this particular situation and if so, what is it called.

regards

Last edited by ExoY : 08/07/20 at 04:22 AM.
  Reply With Quote
08/07/20, 04:34 AM   #2
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 3,088
Not that I know sorry.

Code:
EVENT_EFFECT_CHANGED (number eventCode, MsgEffectResult changeType, number effectSlot, string effectName, string unitTag, number beginTime, number endTime, number stackCount, string iconName, string buffType, BuffEffectType effectType, AbilityType abilityType, StatusEffectType statusEffectType, string unitName, number unitId, number abilityId, CombatUnitType sourceType)
You'd need to check the MsgEffectResult parameter for "Faded"
Code:
MsgEffectResult
EFFECT_RESULT_FADED
EFFECT_RESULT_FULL_REFRESH
EFFECT_RESULT_GAINED
EFFECT_RESULT_TRANSFER
EFFECT_RESULT_UPDATED
You could also check the active player buffs and there was a parameter "canClickOff" in some function GetAbilitInfo or something like this.
If you are able to check if canClickOff was true and the abilityId is the same in the EVENT_EFFECT_CHANGED with EFFECT_RESULT_FADED, it "could have been manually clicked to fade", but mustn't.

Maybe ZO_PostHook the player buff "icons" in the character window so you are able to deetct that someone actively clicked with the right mouse button on them -> to start make them fade.

If there is no API function provided in the txt files which does this already somehow for you, I don't know if you are able to detect it properly.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » effect change clickoff filter

Thread Tools
Display Modes

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