API:GetPlayerAbility

__NOTOC__
Returns the ability values associated to Character information window in RoM.
local num_attrib_value, num_enchanted_value, num_percentage_value = GetPlayerAbility("MELEE_ATTACK");
== Parameters ==
=== Arguments ===
:;string
::string = one of the below (possibly more?)
MELEE_MAIN_DAMAGE
MELEE_ATTACK
MELEE_CRITICAL
MELEE_OFF_CRITICAL
MELEE_MAIN_CRITICAL
PHYSICAL_HIT
PHYSICAL_HIT_RATE
PHYSICAL_OFF_HIT
PHYSICAL_MAIN_HIT
RANGE_DAMAGE
RANGE_ATTACK
RANGE_CRITICAL
RANGE_HIT
PHYSICAL_DEFENCE
PHYSICAL_SHIELDBLOCK
PHYSICAL_PARRY
PHYSICAL_DODGE
PHYSICAL_RESIST_CRITICAL
MAGIC_DAMAGE
MAGIC_ATTACK
MAGIC_CRITICAL
MAGIC_HEAL
MAGIC_HIT
MAGIC_HIT_RATE
MAGIC_DEFENCE
MAGIC_DODGE
MAGIC_RESIST_CRITICAL
DPS
STR
AGI (Dexterity)
STA
INT
MND (Wisdom)
=== Returns ===
:;num_attrib_value
::int = The attribute value.
:;num_enchanted_value
::int = the enchantment value, the + value of enchants and what not.
:;num_percentage_value
::float = the percentage value of for instance, critical hit chance.
Category:Functions