Template:InInventory

From OpenKore Wiki
Revision as of 09:48, 4 July 2019 by 4epT (talk | contribs) (Created page with " <noinclude>This template describes the '''InInventory''' state Conditions of the automacro eventMacros.</noinclude> ;InInventory :* Description: Checks i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This template describes the InInventory state Conditions of the automacro eventMacros.
InInventory
  • Description: Checks if the player has a certain quantity of an item in the inventory, uses item name.
  • Does not support percentages.
Syntax:
InInventory "<item name>" <Math condition operators>
Note the quotation marks.
Example:
InInventory "Red Potion" < 10
Set variables:
$.InInventoryLast => Saves the name of the last item that made InInventory become true
$.InInventoryLastAmount => Saves the amount in inventory of the last item that made InInventory become true