inInventory: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Added exception in condition under notes.)
mNo edit summary
Line 1: Line 1:
; inInventory [<[[References#Item Names|item name]]> <[[References#Range Operators|range]]>]
; inInventory <[[item name]]> <[[range]]>
: If this option is set, the block will only be used if the amount of each of the specified list of items in inventory are within the corresponding specified ranges. The value could be a comma-separated list of (<item name> <range>) pairs:
: If this option is set, the block will only be used if the amount of each of the specified list of items in inventory are within the corresponding specified ranges. The value could be a comma-separated list of (<item name> <range>) pairs:


Line 5: Line 5:
  <item> <range>[, <item1> <range1>[, ...]]
  <item> <range>[, <item1> <range1>[, ...]]


Example:
== Examples ==
  useSelf_skill Aqua Benedicta {
It will use Aqua Benedicta if there are any Empty Bottle in your inventory and you are not sitting:
  notWhileSitting 1
  [[useSelf_skill]] [[skill name|AL_HOLYWATER]] {
  inInventory Empty Bottle > 0
  [[notWhileSitting]] 1
  '''inInventory''' Empty Bottle > 0
  }
  }


* It will use Aqua Benedicta if there are any Empty Bottle in your inventory and you are not sitting.
== Notes ==
 
It will not recognize items that are equipped.
 
'''Notes'''
* It will not recognize items that are equipped.


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

Revision as of 11:48, 17 August 2012

inInventory <item name> <range>
If this option is set, the block will only be used if the amount of each of the specified list of items in inventory are within the corresponding specified ranges. The value could be a comma-separated list of (<item name> <range>) pairs:
Syntax:
<item> <range>[, <item1> <range1>[, ...]]

Examples

It will use Aqua Benedicta if there are any Empty Bottle in your inventory and you are not sitting:

useSelf_skill AL_HOLYWATER {
	notWhileSitting 1
	inInventory Empty Bottle > 0
}

Notes

It will not recognize items that are equipped.