Hello. I was trying to find a way to spawn creeps with just one trigger so i wont need another spawn trigger for each wave. I managed to find an old post in this forum and changed a little bit.
my variables are:
CreepType : unit-type array
WaveNo : integer array
setcreeptypes
Events
Map initialization
Conditions
Actions
Set CreepType[0] = Treant Level 1
Set CreepType[1] = Water Elemental (Level 1) (Level 1)
Set CreepType[2] = Spirit Wolf (Level 1) (Level 1)
Set CreepType[3] = Skeleton Warrior Level 1
Set CreepType[4] = Skeletal Mage Level 1
Set CreepType[5] = Carrion Beetle (Level 1) (Level 1)
Set CreepType[6] = Owl Scout (Level 1) (Level 1)
spawn trigger:
Spawn
Events
Player - Player 1 (Red) types a chat message containing start as An exact match
Conditions
(Number of units in (Units in (Playable map area) owned by Player 12 (Brown))) Equal to 0
Actions
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Wait 1.00 seconds
Unit - Create 1 CreepType[WaveNo[(Integer A)]] for Player 12 (Brown) at (Center of SpawnRegion <gen>) facing Default building facing degrees
and KillCount trigger: What i want from this one is when the last created units dies, i want this trigger to add +1 to WaveNo array so next time player types start the spawn trigger will spawn the next type of unit i previously set with "setcreeptypes" trigger.
Events
Unit - A unit owned by Player 12 (Brown) Dies
Conditions
(Triggering unit) Equal to (Last created unit)
Actions
Set WaveNo[(Integer A)] = (WaveNo[(Integer A)] + 1)
The problem is when i kill all the creeps on the map and type start, trigger spawns the same wave. It just doesnt spawn the next type of creeps. I'm totaly stucked here. Any help will be apreciated. Thanks and regards.
my variables are:
CreepType : unit-type array
WaveNo : integer array
setcreeptypes
Events
Map initialization
Conditions
Actions
Set CreepType[0] = Treant Level 1
Set CreepType[1] = Water Elemental (Level 1) (Level 1)
Set CreepType[2] = Spirit Wolf (Level 1) (Level 1)
Set CreepType[3] = Skeleton Warrior Level 1
Set CreepType[4] = Skeletal Mage Level 1
Set CreepType[5] = Carrion Beetle (Level 1) (Level 1)
Set CreepType[6] = Owl Scout (Level 1) (Level 1)
spawn trigger:
Spawn
Events
Player - Player 1 (Red) types a chat message containing start as An exact match
Conditions
(Number of units in (Units in (Playable map area) owned by Player 12 (Brown))) Equal to 0
Actions
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Wait 1.00 seconds
Unit - Create 1 CreepType[WaveNo[(Integer A)]] for Player 12 (Brown) at (Center of SpawnRegion <gen>) facing Default building facing degrees
and KillCount trigger: What i want from this one is when the last created units dies, i want this trigger to add +1 to WaveNo array so next time player types start the spawn trigger will spawn the next type of unit i previously set with "setcreeptypes" trigger.
Events
Unit - A unit owned by Player 12 (Brown) Dies
Conditions
(Triggering unit) Equal to (Last created unit)
Actions
Set WaveNo[(Integer A)] = (WaveNo[(Integer A)] + 1)
The problem is when i kill all the creeps on the map and type start, trigger spawns the same wave. It just doesnt spawn the next type of creeps. I'm totaly stucked here. Any help will be apreciated. Thanks and regards.