whenEquipped: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with '; whenEquipped [<equipment name>] : If this option is set, the block will only be used if the specified equipment is currently equipped. == Exampl…')
 
m (Conversion script moved page WhenEquipped to whenEquipped: Converting page titles to lowercase)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
; whenEquipped [<[[References#Equipment_Names|equipment name]]>]
; whenEquipped <[[References#Item_Names|item name]]>
: If this option is set, the block will only be used if the specified equipment is currently equipped.
: Only use the block if the specified equipment is currently equipped.


== Example ==
== Examples ==
Use Heal level 1 when your HP is bellow 10%, your SP is higher than 20 and when Shield [1] with Vitata card is equipped:
  useSelf_skill Heal {
  useSelf_skill Heal {
  lvl 1
  lvl 1
Line 9: Line 10:
  whenEquipped Shield [Vitata] [1]
  whenEquipped Shield [Vitata] [1]
  }
  }
* Use Heal level 1 when your HP is bellow 10%, your SP is higher than 20 and when Shield [1] with Vitata card is equipped.


[[Category:Self Condition]]
[[Category:Self Condition]]

Latest revision as of 22:35, 26 April 2021

whenEquipped <item name>
Only use the block if the specified equipment is currently equipped.

Examples

Use Heal level 1 when your HP is bellow 10%, your SP is higher than 20 and when Shield [1] with Vitata card is equipped:

useSelf_skill Heal {
	lvl 1
	hp < 10%
	sp > 20
	whenEquipped Shield [Vitata] [1]
}