API GetTalentInfoByID

From Wowpedia
Jump to: navigation, search

Returns information about a talent.

talentID, name, texture, selected, available, spellID, unknown, row, column, known = GetTalentInfoByID(talentID, talentGroup[, isInspect, inspectedUnit])

Arguments

talentID 
String - Talent ID.
talentGroup 
Number - Index of the specialization group to return information about.
isInspect 
Optional Flag - If non-nil, returns information based on inspectedUnit/classId.
inspectedUnit 
Optional String (unitId) - Inspected unit ID; if nil, the selected/available return values will always be false.

Returns

talentID 
String - Talent ID.
name 
String - Talent name.
texture 
String - Texture path to the talent's icon.
selected 
Boolean - true if the talent is chosen, false otherwise.
available 
Boolean - true if the talent tier is chosen, or if it is level-appropriate for the player and the player has no talents selected in that tier, false otherwise.
spellID 
String - Spell ID that is added to the spellbook.
unknown 
Always appears to be nil.
row 
String - The row the talent is from.
column 
String - The column the talent is from.
known 
Boolean - true if the talent is known, false otherwise, appears to be the same as selected. This parameter is the one used by Blizzard's talent frame to determine if a talent is known.

Patch changes

See also