Quantcast New return value for EVENT_EFFECT_CHANGED - ESOUI
Thread Tools Display Modes
03/20/17, 05:09 PM   #1
Letho
AddOn Author - Click to view addons
Join Date: Apr 2016
Posts: 67
New return value for EVENT_EFFECT_CHANGED

Hey guys, since 2.7 EVENT_EFFECT_CHANGES seems to return a new value - the value seems to be 1 when the effect is somehow related to the player, 0 or 5 otherwise. The appropriate wiki page does not contain any information on this, can anybody enlighten me?

Cheers, Letho
  Reply With Quote
03/20/17, 06:07 PM   #2
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 837
It's a http://wiki.esoui.com/Globals#CombatUnitType
__________________
Obsessive Compulsive Coder

My little french Guild: Cercle de l'Eveil
  Reply With Quote
03/21/17, 02:45 AM   #3
Letho
AddOn Author - Click to view addons
Join Date: Apr 2016
Posts: 67
Cool, thx for the quick clarification! Two last questions regarding the combat unit types: Most of them are clear, but what sources would be categorized as

COMBAT_UNIT_TYPE

_NONE
_MAX_VALUE
_MIN_VALUE

and is there any ressource where I could help myself finding such things out besides from original ESO lua code? (mostly hard to understand for me)
As I see it there is no way to determine who put a specific effect on the even source (unitId, unitName), is that correct?

I also took myself the liberty of adding it to the wiki.

Cheers

Last edited by Letho : 03/21/17 at 02:49 AM.
  Reply With Quote
03/21/17, 09:32 AM   #4
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 342
The names on these enum values aren't the best.

COMBAT_UNIT_TYPE_PLAYER - You.
COMBAT_UNIT_TYPE_GROUP - Group member.
COMBAT_UNIT_TYPE_OTHER - Other player (must be a real player, not an NPC).
COMBAT_UNIT_TYPE_PLAYER_PET - Your pet.
COMBAT_UNIT_TYPE_TARGET_DUMMY - Any target dummy.
COMBAT_UNIT_TYPE_NONE - Not one of the above.

_MAX_VALUE and _MIN_VALUE are auto-generated values that are useful for iterating the enumeration.
  Reply With Quote
03/21/17, 01:59 PM   #5
Letho
AddOn Author - Click to view addons
Join Date: Apr 2016
Posts: 67
Thanks for the clarification, ChipHilseberg!
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » New return value for EVENT_EFFECT_CHANGED

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