edit: falkoner's just looks like the same thing but with 1 switch.. how would it require only 1 loc?
Sorry, I was in a hurry when explaining it.
So, you place burrowed units all over your map, wherever you want a spawning point to possibly be, so let's say you place 64 burrowed units, you'd then use
Single Switch Randomization to put a random number between 0 and 63 into a death count. Then you'd have a trigger something like this:
Conditions:
If Player x has suffered at least 1 death of "Random Number"
Switch "Create Unit" is set
Actions:
Set Deaths for Player x of "Random Number": Subract 1 death.
Give 1 "Burrowed Unit" owned by Player x at Anywhere to Player y
Preserve Trigger
Of course, if you wanted it to happen instantly, you'd have to copy the above trigger 63 times, which isn't very space effective, and causes lag, so you'd probably want to use
Binary Countoffs instead, here's how they would look:
Collapsable Box
Conditions:
If Player x has suffered at least 32 deaths of "Random Number"
Switch "Create Unit" is set
Actions:
Set Deaths for Player x of "Random Number": Subract 32 death.
Give 32 "Burrowed Unit" owned by Player x at Anywhere to Player y
Preserve Trigger
Conditions:
If Player x has suffered at least 16 deaths of "Random Number"
Switch "Create Unit" is set
Actions:
Set Deaths for Player x of "Random Number": Subract 16 death.
Give 16 "Burrowed Unit" owned by Player x at Anywhere to Player y
Preserve Trigger
Conditions:
If Player x has suffered at least 8 deaths of "Random Number"
Switch "Create Unit" is set
Actions:
Set Deaths for Player x of "Random Number": Subract 8 death.
Give 8 "Burrowed Unit" owned by Player x at Anywhere to Player y
Preserve Trigger'
Conditions:
If Player x has suffered at least 4 deaths of "Random Number"
Switch "Create Unit" is set
Actions:
Set Deaths for Player x of "Random Number": Subract 4 death.
Give 4 "Burrowed Unit" owned by Player x at Anywhere to Player y
Preserve Trigger
Conditions:
If Player x has suffered at least 2 deaths of "Random Number"
Switch "Create Unit" is set
Actions:
Set Deaths for Player x of "Random Number": Subract 2 death.
Give 2 "Burrowed Unit" owned by Player x at Anywhere to Player y
Preserve Trigger
Conditions:
If Player x has suffered at least 1 deaths of "Random Number"
Switch "Create Unit" is set
Actions:
Set Deaths for Player x of "Random Number": Subract 1 death.
Give 1 "Burrowed Unit" owned by Player x at Anywhere to Player y
Preserve Trigger
And that should give away your random number of burrowed units from Player x to Player y, you'd then have a trigger to center a location on the next unit, the one that you would be spawning at, and to reset the entire system, like this:
Conditions:
Switch "Create Unit" is set
Actions:
Center location "Spawn Point" on "Burrowed Unit" owned by Player x at "Anywhere"
Create 5 "Monster" at location "Spawn Point" for Player m
Give All "Burrowed Unit" owned by Player y at Anywhere to Player x
Preserve Trigger
And that's how the system would work, it'd only use one location, one switch, and one death, and a burrowed unit for every possible spawn point.
If you're having problems with the unit limit, or the players might see the burrowed units, I would recommend using Vrael's system, although it may cause issues with terrain.
None.