ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Interested in developing add-ons - Is tracking class passive CDs possible? (https://www.esoui.com/forums/showthread.php?t=10751)

SortOfKindlyNot 12/06/23 11:22 PM

Interested in developing add-ons - Is tracking class passive CDs possible?
 
Hi,

I'm interested in learning to develop add-ons. My idea for my first add-on is similar in nature to the buff/debuff timers except that it would track class passive cooldowns. For example, on Dragonknight, the class passive Mountain's Blessing gives 3 ultimate whenever you cast an Earthen Heart ability which can occur a maximum of every 6 seconds.

Before I delve into the details of writing add-ons, is it even possible to track class passive cooldowns, like Mountain's Blessing, via an add-on using the API?

Thanks

Baertram 12/07/23 02:08 AM

It would be possible if the class passives create a "buff" which is actually shown if you press C and scroll down to your character buffs.
These can be read.
I think it was a loop with GetUnitBuffInfo("player"....) to get them via API then.

For those there also fires an EVENT_EFFECT_CHANGED with granted, updated, removed or similar.

But everything else maybe only happening in C code, not lua / UI wise and the API would not know it.

Dolgubon 12/07/23 11:55 AM

Even without a explicit buff/cooldown on the character page, you can track ultimate generation amount, as well as specific skill usage. Tie those two together, and you could track it indirectly.

Baertram 12/07/23 12:24 PM

Here isa google spreadsheet (from LUI addon) with the buff/AbilityIds of the skills and their morphs:
https://docs.google.com/spreadsheets...gid=2133174771

In case you need those to track the skill usage via their IDs.
Using the names would be bad because of multi language support ;)

And here are howtos and ressources, tools, where to chat for new addon devs:
https://www.esoui.com/forums/forumdisplay.php?f=172
-> See the sticky posts at the top, e.g. "New to AddOn creation? - Usefull links and information"


All times are GMT -6. The time now is 06:37 AM.

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