• 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.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

Detect Item Usage on Another Item

Status
Not open for further replies.
Level 15
Joined
Oct 16, 2010
Messages
942
You know when you right click an item in your inven and you can drag it all over the screen? How do I detect if an item that is right-clicked is then dropped onto another item in your inventory.

I've seen it done in maps before but I can't for the life of me figure out how.

EDIT - It was done in ToB when you put gems into items that had sockets.
 
Last edited:
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 033
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
    • Actions
      • Custom script: set udg_i1 = GetIssuedOrderId()
      • Game - Display to Player Group - Player 1 (Red) the text: (String(i1))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • i1 Greater than 852001
          • i1 Less than 852008
          • (Target item of issued order) Not equal to No item
        • Then - Actions
          • Game - Display to Player Group - Player 1 (Red) the text: (Name of (Target item of issued order))
        • Else - Actions
 
Status
Not open for further replies.
Top