Pick every unit in Region matching...

Immolation

Member
Reaction score
20
I can't seem to make it work. I wanted it to pick every unit in the map that matched a certain custom value, but how do I do that? For now I got this...
Trigger:
  • Events
    • Unit - Any Unit is issued an order to Any Ability Command
    • Unit - Any Unit is issued an order to Smart Command
    • Local Variables
    • Conditions
    • Actions
      • Unit Group - Pick each unit in ((Unit type of (Triggering unit)) units in (Entire map) owned by player (Triggering player) matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)
        • Actions
          • General - If (Conditions) then do (Actions) else do (Actions)
            • If
              • (Custom value 0 of (Picked unit)) == (Custom value 0 of (Triggering unit))
            • Then
              • Trigger - Turn (Current trigger) Off
              • Unit - Order (Picked unit) to (Triggering order) (Replace Existing Orders)
              • Trigger - Turn (Current trigger) On
            • Else

But once the trigger runs a few times, an error pops out, claming that there are 'too many threads'. Help?
 

Cheekything

TH.net Regular
Reaction score
5
Just interested but why are you using a custom value when your excluding some from the "Unit Group - Pick" surely it'd be easier to use this twice or the custom value twice rather than mixing the two.
 
General chit-chat
Help Users

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top