WoW:API GetSkillLineInfo
Jump to navigation
Jump to search
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
- Example
local skillTitle = GetSkillLineInfo(1);
- Result
"Armor"
- Example from SkillFrame.lua
local skillName, header, isExpanded, skillRank, numTempPoints, skillModifier, skillMaxRank, isAbandonable, stepCost, rankCost, minLevel, skillCostType = 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.