• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Solved] Detect what item is getting right click-dropped? "Issued an order targeting an object"

Status
Not open for further replies.
Level 3
Joined
Mar 1, 2009
Messages
14
I'm trying to trigger a crafting system where you drop an item onto another to combine the two. So far, I have this:

  • Events
    • Unit - A unit Is issued an order targeting an object
  • Conditions
  • Actions
    • Custom script: set udg_item_slot = GetIssuedOrderId() - 852001
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item carried by Ordered Unit) in slot (item_slot)) Equal to GIVEN_ITEM_1
I want to detect the item-type of whatever it is that's getting dropped onto GIVEN_ITEM_1, so I can combine the two into GIVEN_ITEM_3.

Is there a way to do that?
 
Level 3
Joined
Mar 1, 2009
Messages
14
  • Set item = (Target item of issued order)
Or
  • (Item-type of (Target item of issued order)) Equal to RMB'd_ITEM

.......................................................................................

You know what? I told myself, "that's too easy, that's going to select the item in item_slot."

Marked thread as Solved.
 
Status
Not open for further replies.
Top