monsterSkill: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
No edit summary
m (Conversion script moved page MonsterSkill to monsterSkill: Converting page titles to lowercase)
 
(9 intermediate revisions by 5 users not shown)
Line 2: Line 2:


== Syntax ==
== Syntax ==
  monsterSkill [<skill name>] {
  monsterSkill <[[References#Skill_Names|skill name]]> {
  target [<monster names>]
  target <[[References#Monster_Names|monster name]]s>
maxUses <[[number]]>
   
   
  # [[References#Skill Use Conditions|Skill Use Conditions]]
  # [[:Category:Skill Use Condition|Skill Use Condition]]s, including [[isSelfSkill]]
  # [[References#Self Conditions|Self Conditions]]
  # [[:Category:Self Condition|Self Condition]]s
  # [[References#Target Monster Conditions|Monster Conditions]]
  # [[:Category:Monster Condition|Target Monster Condition]]s
  }
  }




=== Attribute definitions ===
=== Attribute definitions ===
----


; monsterSkill [<[[References#Skill Names|skill name]]>]
; monsterSkill <[[References#Skill_Names|skill name]]>
: This option specifies the skill to automatically use on monsters as long as you are not currently using any other skill.
: This option specifies the skill to automatically use on monsters as long as you are not currently using any other skill.




; maxUses [<number>]
; target <monster names>
: This option specifies on which monsters the skill will be used.
 
:'''Note:'''
:* This option is required. If you don't set this option, the skill will never be used.
 
 
; 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 25: Line 32:




; target (<[[References#Monster Names|monster name]]>)
== Examples ==
: This option specifies on which monsters will this skill be used.
 
:'''Note:'''
:* This option is required. If you don't set this option, the skill will never be used.
 


== Example ==
Use [http://irowiki.org/wiki/Provoke Provoke] on Sohee until there are more than five monsters attacking you, then use [http://irowiki.org/wiki/Brandish_Spear Brandish Spear] to kill them.
* Use Provoke on Sohee until there are more than five monsters attacking you, then use Brandish Spear to kill them.


  monsterSkill Provoke {
  monsterSkill SM_PROVOKE {
  lvl 1
  lvl 1
  sp > 15
  sp > 15
Line 44: Line 45:
  }
  }
   
   
  attackSkillSlot Brandish Spear {
  attackSkillSlot KN_BRANDISHSPEAR {
  lvl 10
  lvl 10
  dist 1.5
  dist 1.5

Latest revision as of 22:34, 26 April 2021

Automatically use skills on monsters even if it is not currently attacking them. This is useful for fighting multiple opponents at once. For example, an Acolyte can offensive-Bless Khalitzburg even if it's not your current target, or a Knight can Provoke all Sohees and then Brandish Spear them.

Syntax

monsterSkill <skill name> {
	target <monster names>
	maxUses <number>

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


Attribute definitions

monsterSkill <skill name>
This option specifies the skill to automatically use on monsters as long as you are not currently using any other skill.


target <monster names>
This option specifies on which monsters the skill will be used.
Note:
  • This option is required. If you don't set this option, the skill will never be used.


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.


Examples

Use Provoke on Sohee until there are more than five monsters attacking you, then use Brandish Spear to kill them.

monsterSkill SM_PROVOKE {
	lvl 1
	sp > 15
	aggressives < 5
	maxUses 1
	target Sohee
 	target_dist 7
}

attackSkillSlot KN_BRANDISHSPEAR {
	lvl 10
	dist 1.5
	sp > 20
	aggressives >= 5
	monsters Sohee
}