Ways to simplify this trigger???
Posted: Mon Jun 20, 2011 6:59 pm
Code: Select all
P1
Events
Unit - A unit enters layer1 <gen>
Conditions
(Owner of (Triggering unit)) Equal to PlayNum[1]
((Unit-type of (Triggering unit)) Equal to Footman) or (((Unit-type of (Triggering unit)) Equal to Sniper) or (((Unit-type of (Triggering unit)) Equal to Mortar) or (((Unit-type of (Triggering unit)) Equal to Gyrocopter) or (((Unit-type of (Triggering unit)) Equal to Priest) or (((Unit-type of (Triggering unit))
Actions
Unit - Change ownership of (Triggering unit) to Player 11 (Dark Green) and Change color
Unit - Order (Triggering unit) to Attack-Move To (Center of second <gen>)
This map will have many more units added and is a pain to keep updating condition so basically a general condition that will make action apply to all units