Difference between revisions of "attackSkillSlot"

From OpenKore Wiki
Jump to navigation Jump to search
m (isSelfSkill has its own page)
(4 intermediate revisions by 3 users not shown)
Line 2: Line 2:
  
 
== Syntax ==
 
== Syntax ==
  attackSkillSlot [<skill name>] {
+
  attackSkillSlot [<[[References#Skill_Names|skill name]]>] {
        dist [<number>]
+
dist [<number>]
        maxAttempts [<number>]
+
maxAttempts [<number>]
        maxUses [<number>]
+
maxUses [<number>]
        previousDamage [<range>]
+
previousDamage [<[[References#Range_Operators|range]]>]
 
   
 
   
        # [[References#Skill Use Conditions|Skill Use Conditions]], including [[isSelfSkill]]
+
# [[:Category:Skill Use Condition|Skill Use Condition]]s, including [[isSelfSkill]]
        # [[References#Self Conditions|Self Conditions]]
+
# [[:Category:Self Condition|Self Condition]]s
        # [[References#Monster Conditions|Monster Conditions]]
+
# [[:Category:Monster Condition|Target Monster Condition]]s
 
  }
 
  }
  
Line 16: Line 16:
 
=== Attribute definitions ===
 
=== Attribute definitions ===
 
----
 
----
; attackSkillSlot [<[[References#Skill Names|skill name]]>]
+
; attackSkillSlot <[[References#Skill_Names|skill name]]>
 
: This option specifies the skill to automatically use when attacking.
 
: This option specifies the skill to automatically use when attacking.
  
  
; dist [<number>]
+
; dist [<[[number]]>]
 
: This option specifies the distance (in number of blocks) from the monster that Kore will move to before using this skill.
 
: This option specifies the distance (in number of blocks) from the monster that Kore will move to before using this skill.
  
 
::'''Notes:'''
 
::'''Notes:'''
 
::* This is not a list, so specify only one number.
 
::* This is not a list, so specify only one number.
::* If this option is not set, Kore will use the distance you specified in attackDistance and attackMaxDistance.
+
::* If this option is not set, Kore will use the distance you specified in [[attackDistance]] and [[attackMaxDistance]].
  
  
; maxAttempts [<number>]
+
; maxAttempts [<[[number]]>]
 
: This option specifies the maximum number of attempts allowed to use this skill. Use this to limit usage of skills that could fail (e.g. Steal).
 
: This option specifies the maximum number of attempts allowed to use this skill. Use this to limit usage of skills that could fail (e.g. Steal).
  
  
; maxUses [<number>]
+
; maxUses [<[[number]]>]
 
: This option specifies the maximum number of successful usage allowed for this skill.
 
: This option specifies the maximum number of successful usage allowed for this skill.
  
Line 39: Line 39:
  
  
; previousDamage [<[[References#Range Operators|range]]>]
+
; previousDamage <[[References#Range_Operators|range]]>
 
: If this option is set, the skill will only be used if the damage you have dealt to the monster is within the specified range
 
: If this option is set, the skill will only be used if the damage you have dealt to the monster is within the specified range
  
 
== Example ==
 
== Example ==
* Use Holy Cross on monsters Khalitzburg, Raydric, Whisper:
+
* Use [http://irowiki.org/wiki/Holy_Cross Holy Cross] on monsters Khalitzburg, Raydric, Whisper:
 
  attackSkillSlot Holy Cross {
 
  attackSkillSlot Holy Cross {
 
  lvl 10
 
  lvl 10

Revision as of 21:51, 23 January 2017

Uses specified skill when attacking and all specified conditions are met.

Syntax

attackSkillSlot [<skill name>] {
	dist [<number>]
	maxAttempts [<number>]
	maxUses [<number>]
	previousDamage [<range>]

	# Skill Use Conditions, including isSelfSkill
	# Self Conditions
	# Target Monster Conditions
}


Attribute definitions


attackSkillSlot <skill name>
This option specifies the skill to automatically use when attacking.


dist [<number>]
This option specifies the distance (in number of blocks) from the monster that Kore will move to before using this skill.
Notes:
  • This is not a list, so specify only one number.
  • If this option is not set, Kore will use the distance you specified in attackDistance and attackMaxDistance.


maxAttempts [<number>]
This option specifies the maximum number of attempts allowed to use this skill. Use this to limit usage of skills that could fail (e.g. Steal).


maxUses [<number>]
This option specifies the maximum number of successful usage allowed for this skill.
Note.
  • This attribute only counts successful usage. If a skill fails, Kore will continue to use the skill until it finally succeeds even if this option is set to 1.


previousDamage <range>
If this option is set, the skill will only be used if the damage you have dealt to the monster is within the specified range

Example

  • Use Holy Cross on monsters Khalitzburg, Raydric, Whisper:
attackSkillSlot Holy Cross {
	lvl 10
	dist 1.5
	sp > 30
	monsters Khalitzburg,Raydric,Whisper,Whisper Boss
}