API:GetPlayerCurrentSkillValue

__NOTOC__
GetPlayerCurrentSkillValue
GetPlayerCurrentSkillValue
GetPlayerCurrentSkillValue( SkillId )
Get the current rating of a skill.
== Parameters ==
=== Arguments ===
:;SkillId
::string - The skill name as defined in code, being one of (must be uppercase as shown):
:::
Crafting Skills	Weapon Skills	Weapon Skills
ALCHEMY 	AXE 	HAMMER
BLACKSMITH 	AXE2H 	POLEARM
CARPENTER 	BLADE 	STAFF
COOK 	BLUDGEON 	UNARMED
HERBLISM 	BOW 	WAND
LUMBERING 	CLAYMORE 	
MAKEARMOR 	COSSBOW 	
MINING 	DAGGER 	
PLANT 	DEFENCE 	
TAILOR 	GUN 	
=== Returns ===
:;number
::float - The current skill rating value.
:::The level of the skill (as displayed in the crafting interface) is the part before the decimal separator of this value.
:::The progress on learning the skill is the part after the decimal separator.
== Example ==
skill = GetPlayerCurrentSkillValue( "HERBLISM" )
level = math.floor(skill)
percent = math.floor((skill-level)*10000+0.5)/100
-- skill = 32.206058502197
-- level = 32
-- percent = 20.61
== Notes ==
HERBLISM and COSSBOW are both misspelled in the above table. We do not know if this is required, or a mistake.
== Related Functions ==
* GetPlayerMaxSkillValue