I would NOT recommend doing this through triggers:
- your unit is given an order to move (no problem so far)
- then your trigger runs as many times as there are units of the same type in the whole map, which means potentially 200 instances of your trigger for just one click! (just imagine how micro-managing your unit would cause mayhem)
- each unit being given the order to move by the trigger, will trigger it themselves because they are also using the ability to move at any stage.
- basically, the number of orders given is going exponentially higher and higher.
- any PC would crash here
- ...
- profit
I would NOT recommend doing this through triggers:
- your unit is given an order to move (no problem so far)
- then your trigger runs as many times as there are units of the same type in the whole map, which means potentially 200 instances of your trigger for just one click! (just imagine how micro-managing your unit would cause mayhem)
- each unit being given the order to move by the trigger, will trigger it themselves because they are also using the ability to move at any stage.
- basically, the number of orders given is going exponentially higher and higher.
- any PC would crash here
- ...
- profit