Nayala40586@legacy41560481 (talk | contribs) (Added 2.3 inspect option.) |
Nayala40586@legacy41560481 (talk | contribs) mNo edit summary |
||
Line 2: | Line 2: | ||
Returns the total number of talents in a tab. '''Note:''' This includes learned and unlearned talents. |
Returns the total number of talents in a tab. '''Note:''' This includes learned and unlearned talents. |
||
− | numTalents = GetNumTalents(tabIndex,inspect); |
+ | numTalents = GetNumTalents(tabIndex[,inspect]); |
---- |
---- |
Revision as of 19:48, 12 October 2007
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the total number of talents in a tab. Note: This includes learned and unlearned talents.
numTalents = GetNumTalents(tabIndex[,inspect]);
- Arguments
- tabIndex
- Integer - Specifies which tab to count the total number of talent points.
- inspect
- Boolean - If true returns the information for the inspected unit instead of the player. New with 2.3.
- Returns
- numTalents
- Integer - The number of talents in that tab.
- Example
local i = 1 while i <= GetNumTalentTabs() do local numTalents = GetNumTalents(i) DEFAULT_CHAT_FRAME:AddMessage( numTalents .. ' ' .. GetTalentTabInfo(i) .. ' ' ) i = i+1 end
- Results
- Displays the number of talents for each tab followed by the name of the tab.