API GetNumTalents

Returns the total number of talents in a tab. Note: This includes learned and unlearned talents.

numTalents = GetNumTalents(tabIndex[,inspect[,pet]]);

Arguments

 * tabIndex : Number - Specifies which tab to count the total number of talent points.
 * inspect : Boolean (optional) - If true returns the information for the inspected unit instead of the player. New with 2.3.
 * pet : Boolean (optional) - If true returns the information for the pet instead of the player.

Returns

 * numTalents : Number - The number of talents in that tab.

Examples
The following snippet displays the number of talents for each tab followed by the name of the tab. for i = 1, GetNumTalentTabs do        DEFAULT_CHAT_FRAME:AddMessage( GetNumTalents(i)  .. ' available in ' .. GetTalentTabInfo(i) .. ' ' ) end