the region over the entire map is unnecessary, you can simply press "entire map"
here's a spawning trigger i use that lets me keep mobs random between a few different types, it spreads monsters out over a large area but also makes concentrated pockets of them.
North Zerg Spawns
Events
Timer - Every 10.0 seconds of Game Time
Local Variables
Conditions
(Number of Living units in (Any units in North Spawn Region Large owned by player 15 matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) < 45
Actions
General - Repeat (Actions) 5 times
Actions
General - Switch (Actions) depending on (Random integer between 0 and 5)
Cases
General - If (5)
Actions
Unit - Create 1 Roach for player 15 at (Random point in North Spawn Region Large) using default facing (No Options)
General - If (4)
Actions
Unit - Create 1 Marine for player 15 at (Random point in North Spawn Region Large) using default facing (No Options)
General - If (3)
Actions
Unit - Create 1 Zergling for player 15 at (Random point in North Spawn Circle S) using default facing (No Options)
General - If (2)
Actions
Unit - Create 1 Zergling for player 15 at (Random point in North Spawn Circle NW) using default facing (No Options)
General - If (1)
Actions
Unit - Create 1 Zergling for player 15 at (Random point in South Spawn Circle E) using default facing (No Options)
General - If (0)
Actions
Unit - Create 1 Zergling for player 15 at (Random point in North Spawn Region Large) using default facing (No Options)
If I understand it correctly you want random units/items spawned at random points.
EventsGame-MapinitializationLocalVariablesi=0<Integer>RandomUnitIndex=0<Integer>ConditionsActionsGeneral-Foreachintegerifrom1toSpawnAmountatstartwithincrement1,do(Actions)ActionsVariable-SetRandomUnitIndex=(Randomintegerbetween0andSpawnArrayCount)Unit-Create1SpawnArray[RandomUnitIndex] for player 15 at (Random point in (Entire map)) using default facing (No Options)
Spawn Amount = a global variable of the type Integer
Spawn Array Count = a global variable of the type Integer
Spawn Array = a global array of the type Unit Type with a size that can be greater then Spawn Array Count.
Hey there,
How would I go about making items/units spawn randomly across my map?
I'd like the player to hunt down mobs to kill for meat, and also for building resources to spawn at random places on the island.
First, create a region that covers the whole map. Then create this trigger:
Note: That's not the actual wording in the trigger editor, I don't have the english one.
@LonZealot: Go
Thanks for the reply, looks great, jugonna try it now
@Mesothere: Go
Sorry for another nooby reply, but I can't quite work out the actions part, how do I do the "for every" part?
Nevermind, i got it.
@Mesothere: Go
the region over the entire map is unnecessary, you can simply press "entire map"
here's a spawning trigger i use that lets me keep mobs random between a few different types, it spreads monsters out over a large area but also makes concentrated pockets of them.
North Zerg Spawns Events Timer - Every 10.0 seconds of Game Time Local Variables Conditions (Number of Living units in (Any units in North Spawn Region Large owned by player 15 matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) < 45 Actions General - Repeat (Actions) 5 times Actions General - Switch (Actions) depending on (Random integer between 0 and 5) Cases General - If (5) Actions Unit - Create 1 Roach for player 15 at (Random point in North Spawn Region Large) using default facing (No Options) General - If (4) Actions Unit - Create 1 Marine for player 15 at (Random point in North Spawn Region Large) using default facing (No Options) General - If (3) Actions Unit - Create 1 Zergling for player 15 at (Random point in North Spawn Circle S) using default facing (No Options) General - If (2) Actions Unit - Create 1 Zergling for player 15 at (Random point in North Spawn Circle NW) using default facing (No Options) General - If (1) Actions Unit - Create 1 Zergling for player 15 at (Random point in South Spawn Circle E) using default facing (No Options) General - If (0) Actions Unit - Create 1 Zergling for player 15 at (Random point in North Spawn Region Large) using default facing (No Options)
@Mesothere: Go
If I understand it correctly you want random units/items spawned at random points.
Oh, right, I totally forgot that.