- Joined
- Jan 28, 2013
- Messages
- 94
I made my first wave trigger with arrays! But I don't seem to be able to make it work...
My idea was that when a unit stepped into a region they would get surprise attacked by spiders. It's 5 waves and if the quest isn't completed it'll start all over again. First it's Spitting Spiders for 2 waves and then it's Giant spiders for 2 waves and a Brood Mother as the last wave. But only the first wave triggers. help?
Here's the trigger. It's GUI.
My idea was that when a unit stepped into a region they would get surprise attacked by spiders. It's 5 waves and if the quest isn't completed it'll start all over again. First it's Spitting Spiders for 2 waves and then it's Giant spiders for 2 waves and a Brood Mother as the last wave. But only the first wave triggers. help?
Here's the trigger. It's GUI.
-
Spawn Spiders
-
Events
- Unit - A unit enters SpiderSpawnEnter <gen>
-
Conditions
- ((Owner of (Triggering unit)) Equal to Player 1 (Red)) or ((Owner of (Triggering unit)) Equal to Player 5 (Yellow))
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- WaveCount Equal to 6
-
Then - Actions
- Quest - Mark OQspiders as Discovered
- Quest - Display to (All players) the Quest Discovered message: |cFFFFD700Optional ...
- Quest - Flash the quest dialog button
- Set WaveCount = (WaveCount - 1)
- Game - Display to (All players) the text: Debug - Quest disco...
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- WaveCount Greater than or equal to 4
- (Number of units in (Units in SpiderSpawnEnter <gen> owned by Player 9 (Gray))) Equal to 0
-
Then - Actions
- Set TempLoc = (Random point in SpiderSpawn <gen>)
- Unit - Create 3 Spider[1] for Player 9 (Gray) at TempLoc facing Default building facing degrees
- Custom script: call RemoveLocation(udg_TempLoc)
- Set WaveCount = (WaveCount - 1)
- Game - Display to (All players) the text: Debug - Wave 5 and 4
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- WaveCount Greater than or equal to 2
- (Number of units in (Units in SpiderSpawnEnter <gen> owned by Player 9 (Gray))) Equal to 0
-
Then - Actions
- Set TempLoc = (Random point in SpiderSpawn <gen>)
- Unit - Create 2 Spider[2] for Player 9 (Gray) at TempLoc facing Default building facing degrees
- Custom script: call RemoveLocation(udg_TempLoc)
- Set WaveCount = (WaveCount - 1)
- Game - Display to (All players) the text: Debug - Wave 3 and 2
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- WaveCount Greater than or equal to 0
- (Number of units in (Units in SpiderSpawnEnter <gen> owned by Player 9 (Gray))) Equal to 0
-
Then - Actions
- Set TempLoc = (Random point in SpiderSpawn <gen>)
- Unit - Create 1 Spider[3] for Player 9 (Gray) at TempLoc facing Default building facing degrees
- Set BroodMother = (Last created unit)
- Custom script: call RemoveLocation(udg_TempLoc)
- Set WaveCount = 5
- Game - Display to (All players) the text: Debug - Wave 1 and 0
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events