- Joined
- Jul 19, 2007
- Messages
- 971
Hi. Like the title says I want a boss-unit to be sent every fifth wave of defending units. I didn't create this triggers myself so I have no idéa how to do it. As you can see it sends a Dwarf Shieldbreaker every second wave so how do I do if I want every fifth wave to send a boss-unit?
-
Good Attack
-

Events
-


Time - Every 40.00 seconds of game time
-
-

Conditions
-

Actions
-


Set VariableSet IntWaveNumberGood = (IntWaveNumberGood + 1)
-


-------- Lane 1 --------
-


Unit - Create 4 Gondor Swordsman for Player 10 (Light Blue) at GoodAttack[0] facing Default building facing degrees
-


Unit - Create 2 Rohan Archer for Player 10 (Light Blue) at GoodAttack[0] facing Default building facing degrees
-


Unit - Create 1 Elven Archer for Player 10 (Light Blue) at GoodAttack[0] facing Default building facing degrees
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




IntWaveNumberGood Greater than or equal to IntWaveNumberGoodSpawnDwarfL1
-
-



Then - Actions
-




Unit - Create 1 Dwarf Shieldbreaker for Player 10 (Light Blue) at GoodAttack[0] facing Default building facing degrees
-
-



Else - Actions
-
-


Custom script: set bj_wantDestroyGroup=true
-


Unit Group - Pick every unit in (Units in Good Attacks 1 <gen> owned by Player 10 (Light Blue)) and do (Unit - Order (Picked unit) to Attack-Move To GoodAttack[2])
-


-------- Lane 2 --------
-


Unit - Create 4 Gondor Swordsman for Player 10 (Light Blue) at GoodAttack[1] facing Default building facing degrees
-


Unit - Create 2 Rohan Archer for Player 10 (Light Blue) at GoodAttack[1] facing Default building facing degrees
-


Unit - Create 1 Elven Archer for Player 10 (Light Blue) at GoodAttack[1] facing Default building facing degrees
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




IntWaveNumberGood Greater than or equal to IntWaveNumberGoodSpawnDwarfL2
-
-



Then - Actions
-




Unit - Create 1 Dwarf Shieldbreaker for Player 10 (Light Blue) at GoodAttack[1] facing Default building facing degrees
-
-



Else - Actions
-
-


Custom script: set bj_wantDestroyGroup=true
-


Unit Group - Pick every unit in (Units in Good Attacks 2 <gen> owned by Player 10 (Light Blue)) and do (Unit - Order (Picked unit) to Attack-Move To GoodAttack[3])
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




IntWaveNumberGood Greater than or equal to 2
-
-



Then - Actions
-




Set VariableSet IntWaveNumberGood = 0
-
-



Else - Actions
-
-
-


