You are viewing an old version of this page. Return to the latest version.
Version of 12:19, 22 November 2013 by I need to Update My Profile
Difference between revisions of "LUA:GetSkillMaxValue"
(Created page with "= LUA Functions: GetSkillValue() = Gets the current value of the given skill ==== Syntax ==== GetSkillValue(param1) ==== Parameters ==== ; Required - ''param1'' (Skill) : ''pa...") |
|||
| Line 1: | Line 1: | ||
| − | = LUA Functions: | + | = LUA Functions: GetSkillMaxValue() = |
| − | Gets the | + | Gets the max value of the given skill |
==== Syntax ==== | ==== Syntax ==== | ||
| − | + | GetSkillMaxValue(param1) | |
==== Parameters ==== | ==== Parameters ==== | ||
; Required - ''param1'' (Skill) | ; Required - ''param1'' (Skill) | ||
| − | : ''param1'' is the skill who's | + | : ''param1'' is the skill who's max value we want |
==== Usage ==== | ==== Usage ==== | ||
| Line 15: | Line 15: | ||
skill = GetSkill(Spawn, "Offence") | skill = GetSkill(Spawn, "Offence") | ||
if skill ~= nil then | if skill ~= nil then | ||
| − | Say(NPC, "Your offence is at " .. | + | Say(NPC, "Your max offence is at " .. GetSkillMaxValue(skill)) |
else | else | ||
Say(NPC, "You do not have the offence skill") | Say(NPC, "You do not have the offence skill") | ||
| Line 22: | Line 22: | ||
</pre> | </pre> | ||
| − | The hailed NPC will respond with the players skill value | + | The hailed NPC will respond with the players max skill value |
Latest revision as of 12:22, 22 November 2013
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