| 02-17-2004, 12:35 AM | #1 |
Kill off Units Events Unit - A unit enters (Playable map area) Conditions (Number of units in (Units in (Playable map area) owned by Player 12 (Brown))) Greater than or equal to 30 (Owner of (Entering unit)) Equal to Player 12 (Brown) Actions Unit - Explode (Random unit from (Units in (Playable map area) matching ((((Triggering unit) is A Hero) Equal to False) and ((Owner of (Triggering unit)) Equal to Player 12 (Brown))))) I want the game to kill off units after a limit of units has been reached. but i want only player 12's units and then, only non hero units to be destroyed, this doesnt work, because it kills of ANY kind of unit. please help! |
| 02-17-2004, 12:52 AM | #2 |
Unit Group - Pick every unit in unit group and do action>Units owned by player 12 matching picked unit is a hero equal to false>And do action>Unit - Explode (picked unit) |
| 02-17-2004, 12:55 AM | #3 |
but this unit group would stay in effect for the duration of the game, and eventually will cause the game to leak, should i do the bj_wantdestroygroup thingy at the end? |
| 02-17-2004, 12:59 AM | #4 |
Or you could add a wait 1.00 second trigger and then just remove unit group (last created unit group) |
| 02-17-2004, 01:12 AM | #5 |
uh oh, wont this destroy every unit that it picks? i just want it to kill units until the total is less than 30 heres what i have now. Kill off Units Events Unit - A unit enters (Playable map area) Conditions (Number of units in (Units in (Playable map area) owned by Player 12 (Brown))) Greater than or equal to 30 (Owner of (Entering unit)) Equal to Player 12 (Brown) Actions Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 12 (Brown)) and do (If ((((Picked unit) is A Hero) Equal to False) and (((Picked unit) belongs to an enemy of Player 1 (Red)) Equal to True)) then do (Unit - Explode (Picked unit)) else do (Do nothing)) |
| 02-17-2004, 01:20 AM | #6 |
ok, heres a diff idea.. i think this will work.:foot: Events Unit - A unit enters (Playable map area) Conditions (Number of units in (Units in (Playable map area) owned by Player 12 (Brown))) Greater than or equal to 30 (Owner of (Entering unit)) Equal to Player 12 (Brown) Actions Remove (Entering unit) from the game. |
| 02-17-2004, 02:48 PM | #7 |
shadow)ps(, the first trigger you posted will work, it doesn't work because there was an error (And I would like to know why none of you saw it) In the conditions of the Units in (playable map area) matching conditions you should use matching unit instead of triggering unit. It works well. Also instead of Units in (playable map area) matching (condition) I would use ( units owned by Player 12 matching (matching unit is a hero equal to false) |
| 02-17-2004, 06:30 PM | #8 |
I saw it first thing. Matching has to = maching. GG NO RE. |
| 02-18-2004, 02:19 PM | #9 |
if you have nothing useful to post, dont post it. its quite annoying. vexorian already pointed it out to me. |
| 02-18-2004, 03:03 PM | #10 |
yes, please stop that. |
