• 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 automatically collect items?

Status
Not open for further replies.
Level 6
Joined
Sep 27, 2008
Messages
258
i got this much
  • Itempick up
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set ItemPickup = ItemPickup Aura
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ItemPickup Equal to ItemPickup Aura
        • Then - Actions
        • Else - Actions
but so far don't know how to make the hero pick the item it self up
 
Level 13
Joined
Oct 25, 2009
Messages
995
First,this is my trigger,the problem is picking up the nearby item.
  • Picking Items
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units of type Survivor) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) has buff Pick Item ) Equal to True
            • Then - Actions
              • Item - Pick every item in (Region((Position of (Picked unit)), (Position of (Picked unit)))) and do (Actions)
                • Loop - Actions
                  • Hero - Give (Picked item) to (Picked unit)
            • Else - Actions
Also +REP to you for reply the thread.
 
Level 6
Joined
Sep 27, 2008
Messages
258
and it doesn't pick up any items at all?

have you tried making it a long time instead of every second causing it to bug out?
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 100
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set point = (Center of (Playable map area))
      • Set region = (Region centered at point with size (300.00, 300.00)) // Set up the region somehow.
      • Custom script: call RemoveLocation(udg_point)
  • Untitled Trigger 101
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in group and do (Actions)
        • Loop - Actions
          • Set point = (Position of (Picked unit))
          • Region - Center region on point
          • Item - Pick every item in region and do (Actions)
            • Loop - Actions
              • Hero - Give (Picked item) to (Picked unit)
          • Custom script: call RemoveLocation(udg_point)
 
Status
Not open for further replies.
Top