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...
But once the trigger runs a few times, an error pops out, claming that there are 'too many threads'. Help?
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
- If
- General - If (Conditions) then do (Actions) else do (Actions)
- 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)
But once the trigger runs a few times, an error pops out, claming that there are 'too many threads'. Help?