Difference between revisions of "IsEquippedID"

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with "{{Template:IsEquippedID}} Category:EventMacro_Automacros Category:EventMacro_Conditions_State")
 
m (Conversion script moved page IsEquippedID to isEquippedID: Converting page titles to lowercase)
(No difference)

Revision as of 22:35, 26 April 2021

IsEquippedID
  • Description: Checks if the player has an item equipped which ID matches the given one.
Syntax:
IsEquippedID <comma separated list of pairs of equip place and ID>
Example:
IsEquippedID topHead 5055
IsEquippedID rightHand 13040, topHead 5055
IsEquippedID topHead 5055, leftHand 2112, robe 2510, shoes 2414, armor 2352, rightHand 1243
Set variables:
$.IsEquippedIDLastID => Saves the id of the last equip which made IsEquippedID become true
$.IsEquippedIDLastName => Saves the name of the last equip which made IsEquippedID become true
$.IsEquippedIDLastSlot => Saves the slot of the last equip which made IsEquippedID become true
$.IsEquippedIDLastListIndex => Saves the index in the condition list of the last equip which made IsEquippedID become true