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 (4epT moved page isEquippedID to IsEquippedID over a redirect without leaving a redirect)
 
(One intermediate revision by one other user not shown)
(No difference)

Latest revision as of 21:46, 12 September 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