No categories assigned

LUA:GetSkillMaxValue

LUA Functions: GetSkillMaxValue()

Gets the max value of the given skill

Syntax

GetSkillMaxValue(param1)


Parameters

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

Usage

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

The hailed NPC will respond with the players max skill value