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

[Trigger] Easy trigger I cant do!

Status
Not open for further replies.
Level 4
Joined
Jul 22, 2010
Messages
63
I need to when an unit enters an region, it drops all itens in his inventory and immediatly pick them, this must be instant.
I cant find a way to do it, even though its easy ¬¬
Thnaks in advance
 
Level 18
Joined
May 11, 2012
Messages
2,103
Question: Why would you want that?

Trigger:
  • Blah
    • Events
      • Unit - A unit enters Region 000 <gen>
    • Conditions
      • (Triggering unit) Equal to (Damage source)
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Hero - Drop the item from slot (Integer A) of (Triggering unit)
          • Item - Pick every item in (The Region the unit entered) and do (Hero - Give (Picked item) to (Triggering unit))
Although, condition is not needed here, but in case you want a specific unit to drop items, I put condition...
Hope this works correctly for you
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
^ Put the Item- Pick every item . . . and put it under the for rather than in or save the item to a variable and do Hero - Give (TempItem) to (TriggeringUnit)
 
Status
Not open for further replies.
Top