| 12-15-2003, 05:35 AM | #1 |
I modified a working trigger to handle two condtions rather than one, but it seems to ignore the new condition. I cannot see what I did wrong, does someone see the error? It is suppposd to pick a random unit from a region, as long as it is not a circle of power or a peasent, then make 6 at another region, and then remove the unit in the first region. Here it is: Code:
Unit Group - Pick every unit in (Random 1 units from (Units in Player1 Portal <gen> matching (((Unit-type of (Matching unit)) Not equal to Peasant) and ((Unit-type of (Matching unit)) Not equal to Circle of Power (large))))) and do (Actions)
Loop - Actions
Unit - Create 6 (Unit-type of (Picked unit)) for Player 1 (Red) at (Center of Player1 Start <gen>) facing Default building facing degrees
Unit - Remove (Picked unit) from the gameThanks! -Trepidity |
