-
Posted by Taborious on Fri, 08 May 2009 15:02:19
How do I get a friendly targets stats such as Hit, Armor, defense, spell power, etc...
-
Posted by jnwhiteh on Fri, 08 May 2009 16:44:18
How do I get a friendly targets stats such as Hit, Armor, defense, spell power, etc...
Depends, and I'm not going to go through and list them all. All API functions are listed on the Reference page. In general, you find some place in the default UI that lists that stat and then examine the FrameXML code to see how the UI does it. Some examples:
- Strength, Agility, Stamina, Intellect, Spirit - UnitStat
- Some of the others - GetCombatRating
-
Posted by Taborious on Fri, 08 May 2009 19:19:46
Thanks. From my initial look at your links those only return values for the player, how do i get it for a target(friendly of course). Still looking at your links as well.
-
Posted by ElrickEnonimis on Sat, 09 May 2009 02:04:51
I dont think that's possible
-
Posted by jnwhiteh on Sat, 09 May 2009 08:20:49
You can get the basic stats for other players using the
UnitStat
function, or at least it takes a unit argument. The others, I do not believe are available.