- Joined
- Jun 2, 2009
- Messages
- 2,014
I am working on a map that spawns creeps in multiple areas, all at once, but for some reason, the spawn doesn't work with more than one play. Here are the triggers.
-
Spawn Timer
-
Events
-
Time - Elapsed game time is 0.01 seconds
-
-
Conditions
-
Actions
-
Countdown Timer - Start SpawnTimer as a Repeating timer that will expire in 10.00 seconds
-
Countdown Timer - Create a timer window for SpawnTimer with title Round One In:
-
-
-
Spawn Trigger
-
Events
-
Time - SpawnTimer expires
-
-
Conditions
-
Actions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
Unit - Move PlayerHero[(Player number of (Picked player))] instantly to (Center of PlayerRegions[(Player number of (Picked player))])
-
Wait 2.00 seconds
-
Unit - Create SpawnInteger[Round] SpawnType[Round] for Neutral Hostile at (Random point in PlayerRegions[(Player number of (Picked player))]) facing Default building facing degrees
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked player) slot status) Equal to Is unused
-
((Picked player) slot status) Equal to Has left the game
-
-
Then - Actions
-
Else - Actions
-
Unit Group - Pick every unit in (Units in PlayerRegions[(Player number of (Picked player))]) and do (Actions)
-
Loop - Actions
-
Unit - Kill (Picked unit)
-
-
-
-
-
-
-
Countdown Timer - Destroy (Last created timer window)
-
Trigger - Turn on Time Between Round <gen>
-
Countdown Timer - Pause SpawnTimer
-
-
-
Time Between Round
-
Events
-
Time - Every 2.00 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in (Units in (Playable map area) owned by Neutral Hostile)) Equal to 0
-
-
Then - Actions
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
Unit - Move PlayerHero[(Player number of (Picked player))] instantly to (Center of Shop Region <gen>)
-
Player - Add 300 to (Picked player) Current gold
-
Player - Add 200 to (Picked player) Current lumber
-
-
-
Set Round = (Round + 1)
-
Game - Display to (All players) the text: You have 60 Seconds...
-
Countdown Timer - Start SpawnTimer as a Repeating timer that will expire in 60.00 seconds
-
Countdown Timer - Create a timer window for SpawnTimer with title Round Starts In:
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
-
Unit Setup
-
Events
-
Time - Elapsed game time is 0.01 seconds
-
-
Conditions
-
Actions
-
Set Round = 1
-
Set SpawnInteger[1] = 1
-
Set SpawnType[1] = Footman
-
Set SpawnInteger[2] = 1
-
Set SpawnType[2] = Knight
-
Set SpawnInteger[3] = 1
-
Set SpawnType[3] = Rifleman
-
-