Difference between revisions of "whenPermitSkill"

From OpenKore Wiki
Jump to navigation Jump to search
(merge)
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
; whenPermitSkill [<[[References#Skill Names|skill names]]>]
+
; whenPermitSkill <[[References#Skill_Names|skill names]]>
 
: If this option is set, the block will only be used when you have been granted use of the specified temporary skill.
 
: If this option is set, the block will only be used when you have been granted use of the specified temporary skill.
  
; whenNotPermitSkill [<[[References#Skill Names|skill names]]>]
+
; whenNotPermitSkill <[[References#Skill_Names|skill names]]>
 
: If this option is set, the block will only be used when you have not been granted use of the specified temporary skill.
 
: If this option is set, the block will only be used when you have not been granted use of the specified temporary skill.
 +
 +
== Notes ==
 +
You're probably need to enable [[noAutoSkill]] if you're configuring temporary skills.
  
 
== Examples ==
 
== Examples ==
 
+
Use Heal level 5 when Kore is permited to use the skill:
 
  doCommand ss 28 5 {
 
  doCommand ss 28 5 {
 
  whenPermitSkill 1
 
  whenPermitSkill 1
 
  }
 
  }
  
: Use Heal level 5 when Kore is permited to use the skill.
+
Use item Level 5 Heal when Kore is not permited to use the skill, as it doesn't have:
 
 
 
  doCommand is Level 5 Heal {
 
  doCommand is Level 5 Heal {
 
  whenNotPermitSkill 1
 
  whenNotPermitSkill 1
 
  }
 
  }
 
: Use item Level 5 Heal when Kore is not permited to use the skill, as it doesn't have.
 
  
 
[[Category:Self Condition]]
 
[[Category:Self Condition]]

Revision as of 15:51, 9 February 2013

whenPermitSkill <skill names>
If this option is set, the block will only be used when you have been granted use of the specified temporary skill.
whenNotPermitSkill <skill names>
If this option is set, the block will only be used when you have not been granted use of the specified temporary skill.

Notes

You're probably need to enable noAutoSkill if you're configuring temporary skills.

Examples

Use Heal level 5 when Kore is permited to use the skill:

doCommand ss 28 5 {
	whenPermitSkill 1
}

Use item Level 5 Heal when Kore is not permited to use the skill, as it doesn't have:

doCommand is Level 5 Heal {
	whenNotPermitSkill 1
}