ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   EVENT_COMBAT_EVENT and Damage Type (Direct Damage vs Damage over Time) (https://www.esoui.com/forums/showthread.php?t=7019)

rullof 05/05/17 05:48 PM

EVENT_COMBAT_EVENT and Damage Type (Direct Damage vs Damage over Time)
 
Hey everyone,
I'm currently developing an AddOn which requires a feature for distinguishing between Direct Damage and Damage over Time as a core element of the AddOn.
I'm using the result variable sent by the EVENT_COMBAT_EVENT event which can provide the following values:

ACTION_RESULT_DAMAGE
ACTION_RESULT_CRITICAL_DAMAGE
ACTION_RESULT_DOT_TICK
ACTION_RESULT_DOT_TICK_CRITICAL


The problem is the (ACTION_RESULT_DOT_TICK and ACTION_RESULT_DOT_TICK_CRITICAL) values are only returned when the damage ability explicitly states (X damage over Y seconds). For all other abilities including the ones that states (X damage every Y seconds) the result variable holds the value (ACTION_RESULT_DAMAGE or ACTION_RESULT_CRITICAL_DAMAGE) therefore I can't really distinguish between Direct Damage and Damage over Time.

My development progress is currently stuck at this stage and I cannot go any further without solving this issue. Please if there is any other way of implementing this feature help me out. For @ZOS_ChipHilseberg is it's possible to change the event manager so that the result values (ACTION_RESULT_DOT_TICK and ACTION_RESULT_DOT_TICK_CRITICAL) includes all Damage over Time abilities such as (Elemental Blockade and Endless Hail ...).

Thanks in advance.

Letho 05/06/17 02:14 AM

Looks like you have to hardcode a lookup-table for all dot-spellIds and check if it's in that table. loooooots of work^^


All times are GMT -6. The time now is 01:57 AM.

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