#Get Dragonflight Talents

21 messages · Page 1 of 1 (latest)

solemn pike
#

How can i get the Status of an Dragonflight Talent the functions i found on wowpedia seem wrong as there would be only 21 Talents

still socket
#

the talent api is pretty complicated, usually checking IsPlayerSpell is much easier than doing it via the talent api

solemn pike
#

yea i wanna check a talent from someone else tho

#
print(node.ranksPurchased)```

like this would work for me now but how could i change it to look if another unit has that skilled or not
still socket
#

that's even more complex. You'd need to inspect via the api first

#

and that's async, so it's complicated

solemn pike
#

can't i just InspectUnit(unit) ?

lethal kettle
#

That's async, and shared

solemn pike
#

Yea I just tried doing it with inspect but it just takes the values from the last inspect I tried it with a while not inspect:isvisible but it still doesn't really work how could I get a workaround for that?

lethal kettle
#

You share the inspect with other add-ons and also need to wait for the inspect event coming back

#

Did you try to do a infinite loop to wait?

#

The whole wow interface is a single thread.

solemn pike
#

i guess i am just to dumb i tried multiple things for waiting till the frame is shown but somehow doesn't work

#

like this just makes the wekaura cancel cause "it runs too long"

#

this also makes it lag out

still socket
#

and do note that you trample on user's ui if you do that, since it's all shared between the ui and the inspect ui

#

And don't forget to clearInspect

lethal kettle
#

what you are doing there is a infinite loop.

#

it completely halts the entire game.

#

including the event dispatch.*
cititation needed