Detect item ability issued order

Status
Not open for further replies.
Most item abilities only have order ids and not string orders. The order id for using items in item slots are:
Slot 1: 852008
Slot 2: 852009
Slot 3: 852010
Slot 4: 852011
Slot 5: 852012
Slot 6: 852013
  • OrderId
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
    • Actions
      • Custom script: local integer orderId = GetIssuedOrderId()
      • Custom script: if orderId > 852007 and orderId < 852014 then
      • Custom script: set udg_Slot = orderId - 852007
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item carried by (Triggering unit) in slot Slot)) Equal to Wand of Illusion
        • Then - Actions
          • Unit - Order (Triggering unit) to Stop.
        • Else - Actions
      • Custom script: endif
 
Status
Not open for further replies.
Back
Top