• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

How to automatically collect items?

Status
Not open for further replies.
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
 
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.
 
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?
 
  • 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.
Back
Top