Difference between revisions of "LUA:GetSkillValue"

(Created page with "= LUA Functions: GetSkillValue() = Gets the current value of the given skill ==== Syntax ==== GetSkillValue(param1) ==== Parameters ==== ; Required - ''param1'' (Skill) : ''pa...")
 
(No difference)

Latest revision as of 12:19, 22 November 2013

LUA Functions: GetSkillValue()

Gets the current value of the given skill

Syntax

GetSkillValue(param1)


Parameters

Required - param1 (Skill)
param1 is the skill who's current value we want

Usage

function hailed(NPC, Spawn)
    skill = GetSkill(Spawn, "Offence")
    if skill ~= nil then
        Say(NPC, "Your offence is at " .. GetSkillValue(skill))
    else
        Say(NPC, "You do not have the offence skill")
    end
end

The hailed NPC will respond with the players skill value