Skills
XP based leveling system.
Functions
impulse.Skills.Define(name, niceName, IMaterial)
View source »Define a new Skill
Parameters
-
name
string
The name used in code.
-
niceName
string
The name shown to clients.
-
IMaterial
The icon used for the skill.
impulse.Skills.GetIcon(name)
View source »Returns the icon of the skill.
Parameters
-
name
string
The internal name of the skill.
Returns
-
IMaterial
The icon of the skill.
impulse.Skills.GetLevelXPRequirement(level)
View source »Finds the XP requirement for the level specified
Parameters
-
level
int
The level to find.
Returns
-
int
The XP required to reach.
impulse.Skills.GetNiceName(name)
View source »Returns the display name of the skill.
Parameters
-
name
string
The internal name of the skill.
Returns
-
string
The nice name of the skill.
Player:GetSkillLevel(name)
View source »Get the player's level in a skill
Parameters
-
name
string
The skill's internal name.
Returns
-
int
Skill level
Player:GetSkillXP(name)
View source »Returns the XP level (not regular level). Value will range for 0 -> 4500
Parameters
-
name
string
The skill's internal name.
Returns
-
int
XP