• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Detect Item Usage on Another Item

Status
Not open for further replies.
Level 15
Joined
Oct 16, 2010
Messages
941
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,240
  • 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