From OpenKore Wiki
Revision as of 05:48, 4 July 2019 by 4epT (Created page with " <noinclude>This template describes the '''InInventory''' state Conditions of the automacro eventMacros.</noinclude> ;InInventory :* Description: Checks i...")
This template describes the InInventory state Conditions of the automacro eventMacros.
- Description: Checks if the player has a certain quantity of an item in the inventory, uses item name.
- Does not support percentages.
InInventory "<item name>" <Math condition operators>
- Note the quotation marks.
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