The Trigger 'Set Swtich' is what you are looking for.
There is a tutorial Bolt wrote, but I'll explain it myself.
| Trigger |
| Description: |
| To Randomise |
|
| Players: |
| ¤ Player X |
| Conditions: |
| ¤ Player X brings 3 Terran Civillians to Location Y |
| Actions: |
| ¤ Randomise 'Switch 1' |
The possible outcomes of randomising the Switch is 'Clear' or 'Set'. But also take note that ALL switches start off ass 'Clear' so you need something to also be a condition to determine when spmeone has brought the 3 civillians to Location Y.
Then when 'Switch 1' is Clear...
Then you kill 'Amount' of 'Unit A' for 'Enemies'
Then when 'Switch 1' is Set...
Then you kill 'Amount' of 'Unit B' for 'Enemies'
etc.
When you want more possible random outcomes... then you randomise more switches...
For example,
-Randomise 'Switch 1'
-Randomise 'Switch 2'
There will be four possibilities,
1 = Clear, 2 = Clear
1 = Clear, 2 = Set
1 = Set, 2 = Clear
1 = Set, 2 = Set
Therefore you set those as the conditions for different 'Kill Unit' Triggers.
Note: The amount of outcomes is 2 to the power of the amount of Switches randomised. e.g. ... randomising 4 Switches would make 2^4 amount of outcomes.. which is 16.
However if you want 15 amoung of outcomes, then you choose the amount of switches that would have the smount of outcomes just above that, for this instance .. it is 4 switches because 2^4 is 16 and you want 15 outcomes.
For the last remaining Switch outcome.. you do something called a rerandomiser, which is just doing..
-Randomise Switch 1
-Randomise Switch 2
-Randomise Switch 3
-Randomise Switch 4
-Preserve Trigger
The preserve trigger is essential because there is always possibiliy that the rerandomised outcome will be the same as the rerandomiser trigger's condition.
If you found all that too difficult.. then just do
Condition
-Player X brings 3 Civillian to Location Y
Action
-Kill 1 Men at 'Location Battle Area' for 'Enemies'
... Then it'll just kill 1 random unit in the map for your enemy...

However, I think the problem with that is that 'Starcraft' will kill the unit on the 'Most Left' First..
I didn't proofread this.. some things mite not make sense.. hope this helps

[right][snapback]95230[/snapback][/right]
!! LoL, You wouldn't mind setting me up this trigger? LoL. Seems like a complicated scenario here... plus I'm bad with switches..