Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns information about a talent.
name, iconTexture, tier, column, rank, maxRank, isExceptional, available = GetTalentInfo(tabIndex, talentIndex [, isInspect])
Arguments[]
- tabIndex
- number - Ranging from 1 to GetNumTalentTabs()
- talentIndex
- number - Ranging from 1 to GetNumTalents(tabIndex).
- isInspect
- boolean? - If true, returns info for the current inspect target (see NotifyInspect).
Returns[]
- name
- string
- iconTexture
- number : FileID
- tier
- number - The row/tier that the talent sits on.
- column
- number - The column that the talent sits on.
- rank
- number - The current amount of talent points for a talent.
- maxRank
- number - The maximum amount of talent points for a talent.
- isExceptional
- number - Returns
1
if the talent is the ultimate talent, e.g. [Lightwell], otherwise returnsnil
. - available
- number
Details[]
- The talent index supplied to this function should not be expected to map to the placement of a talent within its tree. Callers must use the tier and column return values to determine where a queried talent is located.
Example[]
Prints all existing talents of your class.
for i = 1, GetNumTalentTabs() do
for j = 1, GetNumTalents(i) do
print(i, j, GetTalentInfo(i, j))
end
end
Patch changes[]
Patch 1.13.2 (2019-08-26): Added.