#on init function to define player class, spec, and interupt spell

13 messages · Page 1 of 1 (latest)

jaunty tulip
#

I am working on creating an on init function to define player class, spec, and interrupt. I know that the API is UnitClass("player") and getspecialization(). I am unsure how to then save this data as a table or list and use it to access a table to find the correct kick spell id.

jaunty tulip
#

would it be easier to make the table and have it find the answer in a trigger?

lofty tapir
#

Or have auras that load per class (and maybe spec) that have a tiny list matching the current options?

combine it with checking if it's Known so you can choose not to display things you can't do.

jaunty tulip
#

that is going to be a lot of weakauras to have one per spec

lofty tapir
#

sure, but they don't weigh much. vs coding "hey does this guy have spellsteal by any chance" when the char is a rogue.

#

likewise quell, etc.

jaunty tulip
#

i was hoping to have it check against a table so it only has to run once on init

lofty tapir
#

I think you can probably do a dynamic group to track spells' cooldowns tho, and list all the things you think are kicks using WA's own menu systems. On each character you've got you can find its spellid, but you could just use its spell Name til you know that.

the dynamic group would self stretch

which would cover any classes who have more than one kick

#

essentially, WA would have the table, you wouldn't need to code one of your own.

#

that wouldn't require having subclass ones. just the list of spells completely

jaunty tulip
#

I would really prefer to do it using a table, but thank you

lofty tapir
#

it IS a table. it's just a table it can help you create.

#

if you prefer to make an addon that's ok too.