WoW:API GetSkillLineInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 46: Line 46:


----
----
{{Template:WoW API}}
 
{{template:WoW API}}

Revision as of 19:43, 30 December 2005

GetSkillLineInfo -Documentation by Chevalric-

Returns the name and other information which is associated with the specific skill or skill header in the game.

GetSkillLineInfo(skillLine);

Arguments
(Number skillLine)
skillLine
The linenumber for the skill or skill header

Returns
skillName(String)
The name of the skill/header
isHeader(Boolean)
True if this skillLine is a header
isExpanded(Boolean)
True if the skillLine is expanded
skillRank(Number)
The current rank for the current skill
numTempPoints(Number)
Temporary points for the current skill
skillModifier(Number)
Skill modifier value for the current skill
skillMaxRank(Number)
The maximum rank for the current skill
isAbandonable(Boolean)
True if the skill can be unlearned
stepCost(Boolean)
True if skill can be learned
rankCost(Boolean)
True if skill can be trained up
minLevel(Number)
Minimum level required to learn this skill
skillCostType(Number)
Unknown, seems to be related to primary and secondary skills
skillDescription(String)
Skill Description Text, localised

Example
local skillTitle = GetSkillLineInfo(1);
Result
"Armor"
Example from SkillFrame.lua
local skillName, header, isExpanded, skillRank, numTempPoints, skillModifier, skillMaxRank, isAbandonable, stepCost, rankCost, minLevel, skillCostType, skillDescription = GetSkillLineInfo(skillIndex);

Description
Returns the string which is associated with the specific Skill Line in the game. Also returns other information about a given skill such as its current rank, its maximum rank, if it's a header and if so, if it's collapsed.

Template:WoW API