• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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