No categories assigned

LUA:GetSkillName

Revision as of 12:24, 22 November 2013 by Jabantiz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: GetSkillName()

Gets the name of the skill

Syntax

GetSkillName(param1)


Parameters

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

Usage

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

The hailed NPC will respond with the players skill name