CTPlayerSkillInfo
Link to ctplayerskillinfo
Methods
Link to methods
getLevel()
Link to getlevel
CopyExample:
event.player.skillData.getSkillInfo(<skill:reskillable:agility>).getLevel();
This returns the level of the Skill.
getSkillPoints()
Link to getskillpoints
CopyExample:
event.player.skillData.getSkillInfo(<skill:reskillable:agility>).getSkillPoints();
This return the number of Skill Points available to spend for that Skill.
getLevelUpCost()
Link to getlevelupcost
CopyExample:
event.player.skillData.getSkillInfo(<skill:reskillable:agility>).getLevelUpCost();
This returns the Level-Up Cost for the Skill.
getRank()
Link to getrank
CopyExample:
event.player.skillData.getSkillInfo(<skill:reskillable:agility>).getRank();
This returns the current Rank String for the Skill.
getSkill()
Link to getskill
CopyExample:
event.player.skillData.getSkillInfo(<skill:reskillable:agility>).getSkill();
This returns the Skill you're currently getting info from.
levelUp()
Link to levelup
CopyExample:
event.player.skillData.getSkillInfo(<skill:reskillable:agility>).levelUp();
This levels up the Skill for the player.
respec()
Link to respec
CopyExample:
event.player.skillData.getSkillInfo(<skill:reskillable:agility>).respec();
This "un-purchases" all traits in this specific Skill and refunds all Skill Points.
unlock(CTUnlockable ctUnlockable, IPlayer player)
Link to unlockctunlockable-ctunlockable-iplayer-player
CopyExample:
event.player.skillData.getSkillInfo(<skill:reskillable:agility>).unlock(<trait:reskillable:sidestep>, event.player);
This unlocks the provided trait if available under the skill to the provided player.