| 08-03-2002, 03:41 PM | #1 |
Guest | Ok, to start off, here's my trigger: Event: Player types a chat message containing kill units as an exact match. Conditions: None. Actions: Unit Group- Pick Every Unit in (Units currently selected by player 1(Red)) and do (If Owner of (Picked Unit) not equal to Player 1 (Red) or (Picked unit) equal to Spawner then (Do Nothing) else (Unit- Kill(Picked Unit)) What I want to do is get it to NOT kill other players units that you have selected OR to kill your spawner. What is does is kill BOTH anyway. When I mess around with it and change the orders of things it either kills one or the other, or does nothing. HELP! |
| 08-03-2002, 04:16 PM | #2 |
Try: Actions: Unit Group- Pick Every Unit in (Units currently selected by player 1(Red)) and do (If Owner of (Picked Unit) equal to Player 1 (Red) and Unit Type of (Picked unit) not equal to Spawner<unit type> then (Unit- Kill(Picked Unit)) else (Do Nothing) I wasn't sure if you were doing unit comparision or unit-type comparison. Try both. If you are doing unit comparison with a variable, be sure that the variable contains a unit. |
| 08-03-2002, 06:07 PM | #3 |
Guest | It didn't work. Now it doesn't kill anything... :/ |
| 08-04-2002, 01:18 AM | #4 |
Guest | *Bump* |
| 08-04-2002, 04:56 AM | #5 |
Guest | Unit Group- Pick Every Unit in (Units currently selected by player 1(Red)) and do (IF Owner of (Picked Unit) not equal Unit Type "Spawner" THEN [IF (Picked Unit) is owned by Player1(Red) THEN Unit- Kill (Picked Unit) ELSE do nothing] ELSE do nothing Have fun. :D |
