ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   New return value for EVENT_EFFECT_CHANGED (https://www.esoui.com/forums/showthread.php?t=6915)

Letho 03/20/17 05:09 PM

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

Ayantir 03/20/17 06:07 PM

It's a http://wiki.esoui.com/Globals#CombatUnitType

Letho 03/21/17 02:45 AM

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

ZOS_ChipHilseberg 03/21/17 09:32 AM

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.

Letho 03/21/17 01:59 PM

Thanks for the clarification, ChipHilseberg!


All times are GMT -6. The time now is 09:24 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI