Not that I really care to be Über, it was just mentioned in the welcome msg from you guys and sounded good so I figured hey why not ask.
But anyway...
Hmm is that a test or you haven't come up with a good way to do it yet?
Somehow I doubt the latter. But hey a challenge is a challenge..
--------Say you wanted to make an obstacle 2x10 squares long (five 2x2 squares side by side) and a simple explosion pattern - say just a "runner" (1-click) obstacle. And each 2x2 explosion is a randomized unit.
Start off with a main trigger, to handle the waits between each explosion. Instead of the normal, "Create unit, Kill unit, Wait..." the main trig will look like:
- Move location 'Explode' to location 1
- Set 'Switch 1'
- Wait
- Move location 'Explode' to location 2
- Set 'Switch 1'
- Wait
etc
(I'll explain that trig later)
The next trigger you need is one that runs when 'Switch 1' is set (and only runs once each time it's set). The purpose of this trigger is to randomize, say 2 or 3 other switches - depending on how many different units you want to explode (2 random switches produces 4 choices, 3 for 8 choices, or 2^x number of choices - x is the # of switches) Anyway, randomize 2 switches (Switch 3 & Switch 4), set another 'control' switch, 'Switch 2'
We have 2 random switches so you'll need to create another 4 separate trigs. (These 4 trigs choose which unit will explode) All four run once, each time Switch 2 is set. However, only one of the four trigs will run, depending on Switch3 & Switch4 i.e. four choices:
1. Sw2 is set, Sw3 is cleared, Sw4 is cleared - explode archon
2. Sw2 is set, Sw3 is cleared, Sw4 is set - explode tank
3. Sw2 is set, Sw3 is set, Sw4 is cleared - explode overlord
4. Sw2 is set, Sw3 is set, Sw4 is set - explode shuttle
These trigs are where you actually make the "Create Unit, Kill unit", but no waits here. This creates and kills units at the 'Explode' location, back in the main trigger.
So that's it.
The reason I used a moving location in the main trigger is to cut down on the amount of triggers you would have to write (you could do it without a move location action, but you would need to write, hm...
loads more triggers for each location in the obstacle) So you could move 'Explode' to any other location you wanted to be the next one to explode. Hm, I didn't think about simultaneous explosions, but I guess you could just use wait 0 in the main trig then.
Is that all you got? Gimme somthin harder next time