• 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.

How to check if an item got dropped in a certain region?

Status
Not open for further replies.
Level 12
Joined
Jan 13, 2008
Messages
559
I am asking because the following trigger does not work:

  • Unbezeichneter Auslöser 001
    • Ereignisse
      • Einheit - A unit Verliert einen Gegenstand
    • Bedingungen
      • ((Item being manipulated) is in left circle <gen>) Gleich True
    • Aktionen
      • Spiel - Display to (All players) the text: sdfasf
 
It's German. The event is "a unit loses an item" then he checks if the item is in a region.

I'm not sure if the item even has a position yet when that event fires. Maybe just check if the (Triggering unit) is in that region since the drop radius is usually pretty small.

If that is true, he can try and get "Hero manipulating item" position instead.
 
Level 7
Joined
Nov 19, 2015
Messages
283
Not sure if this will work.

Can you get the order ID of the drop items. I think there would only be 6 different order IDs for each slot. You can then check if the order is within the region.
 
Level 12
Joined
May 22, 2015
Messages
1,051
I am pretty sure I have a trigger that does exactly this in my own map. I can't check right now, but I will try to find it to answer this.

I haven't looked at the trigger in a long time (since it works), but basically, there is a small spot to drop this one item. When you drop it there, it transforms into another item. I assume this is similar to what you want to do (at least the event is).

Anyway, it won't be until around 6 or 7 hours from now that I get back to you on this :/ I am at work lol.
 
Status
Not open for further replies.
Top