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