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

Unit Drops Item

Status
Not open for further replies.
Level 4
Joined
Nov 17, 2015
Messages
91
Hello, I'd like it, so that if a unit drops an item inside a region it will execute some actions. This is what I have, and it does not function.
  • Pass
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • ((Item being manipulated) is in Region 157 <gen>) Equal to True
    • Actions
      • Item - Remove (Item being manipulated)
      • Trigger - Run Random Dungeon <gen> (checking conditions)
Can you figure out why this isn't working, and tell me how to fix it? Thanks! :goblin_good_job:
 
Level 12
Joined
May 22, 2015
Messages
1,051
Hello, I'd like it, so that if a unit drops an item inside a region it will execute some actions. This is what I have, and it does not function.
  • Pass
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • ((Item being manipulated) is in Region 157 <gen>) Equal to True
    • Actions
      • Item - Remove (Item being manipulated)
      • Trigger - Run Random Dungeon <gen> (checking conditions)
Can you figure out why this isn't working, and tell me how to fix it? Thanks! :goblin_good_job:

Didn't you ask this recently? Maybe it was someone else. Anyway, I think the general idea is that the issue is with the timing of the event. It happens before the item is actually on the ground, so when you check if it is in a region, it always says it isn't.

This might not be the best solution, but I think it is probably the easiest. Just check if the "Triggering Unit" is inside the region instead. It will do almost exactly the same thing.

You also might want to double check that the item they dropped is a specific item, but I don't know exactly what you are trying to do.
 
Didn't you ask this recently? Maybe it was someone else. Anyway, I think the general idea is that the issue is with the timing of the event. It happens before the item is actually on the ground, so when you check if it is in a region, it always says it isn't.

This might not be the best solution, but I think it is probably the easiest. Just check if the "Triggering Unit" is inside the region instead. It will do almost exactly the same thing.

You also might want to double check that the item they dropped is a specific item, but I don't know exactly what you are trying to do.

Couldn't he also do this on an order event? A unit is issued an order targeting a point.... ?Point is in region... ?Order is drop item ... then do...
 
Status
Not open for further replies.
Top