Difference between revisions of "Template:SkillLevel"

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with " <noinclude>This template describes the '''SkillLevel''' state Conditions of the automacro eventMacros.</noinclude> ;SkillLevel :* Description: Checks if...")
 
m
 
Line 5: Line 5:
  
 
: Syntax:
 
: Syntax:
  SkillLevel "<skill ID or Handle>" <[[EventMacro#Math condition operators|Math condition operators]]>
+
  SkillLevel <skill ID or Handle> <[[EventMacro#Math condition operators|Math condition operators]]>
 
 
: Note the quotation marks.
 
  
 
: Example:
 
: Example:

Latest revision as of 21:16, 20 May 2023

This template describes the SkillLevel state Conditions of the automacro eventMacros.
SkillLevel
  • Description: Checks if the player has a certain level of a certain skill, uses skill Id or Handle.
  • Does not support percentages.
Syntax:
SkillLevel <skill ID or Handle> <Math condition operators>
Example:
SkillLevel NV_FIRSTAID = 0
SkillLevel 10 > 5
Set variables:
$.SkillLevelLastName => Saves the name of the last skill that made SkillLevel become true
$.SkillLevelLastID => Saves the ID of the last skill that made SkillLevel become true
$.SkillLevelLastHandle => Saves the Handle of the last skill that made SkillLevel become true
$.SkillLevelLastLevel => Saves the level of the last skill that made SkillLevel become true