- Joined
- Mar 10, 2021
- Messages
- 26
Occasionally they will choose a new target, but so often they will send a wave to the same place over and over.
What on earth does this? Why is it "randomly" choosing the same location so many times in a row?
EDIT: I rewrote it and simply added a second condition to the pick for the WAVETARGET to ensure that it wasn't WAVETARGET and will not repeat ever.
What on earth does this? Why is it "randomly" choosing the same location so many times in a row?
-
AttackWavesAppear
-
Events
-
Game - The in-game time of day becomes Equal to 18.01
-
Time - Every 10.00 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
WaveContentsCount Less than 12
-
-
Then - Actions
-
Unit - Create 2 WFrontLinerWave for Player 12 (Brown) at (Center of EnemyStart <gen>) facing Default building facing degrees
-
Unit - Create 2 WBackLinerWave for Player 12 (Brown) at (Center of EnemyStart <gen>) facing Default building facing degrees
-
Unit - Create 2 WCasterWave for Player 12 (Brown) at (Center of EnemyStart <gen>) facing Default building facing degrees
-
-
Else - Actions
-
Set VariableSet WaveContentsCount = (WaveContentsCount - 6)
-
Set VariableSet WaveTarget = (Random unit from (Units in (Playable map area) matching (((Matching unit) is A town-hall-type unit) Equal to True)))
-
Unit - Create 1 WSiegeWave for Player 12 (Brown) at (Center of EnemyStart <gen>) facing Default building facing degrees
-
Unit Group - Pick every unit in (Random 6 units from (Units in EnemyStart <gen> owned by Player 12 (Brown))) and do (Actions)
-
Loop - Actions
-
Unit - Move (Picked unit) instantly to (Center of EnemyStageWave <gen>)
-
Unit - Order (Picked unit) to Attack-Move To (Position of WaveTarget)
-
-
-
Set VariableSet WaveContentsCount = (WaveContentsCount - 6)
-
Set VariableSet WaveTarget = (Random unit from (Units in (Playable map area) matching (((Matching unit) is A town-hall-type unit) Equal to True)))
-
Unit - Create 1 WSiegeWave for Player 12 (Brown) at (Center of EnemyStart <gen>) facing Default building facing degrees
-
Unit Group - Pick every unit in (Random 6 units from (Units in EnemyStart <gen> owned by Player 12 (Brown))) and do (Actions)
-
Loop - Actions
-
Unit - Move (Picked unit) instantly to (Center of EnemyStageWave <gen>)
-
Unit - Order (Picked unit) to Attack-Move To (Position of WaveTarget)
-
-
-
-
-
-
EDIT: I rewrote it and simply added a second condition to the pick for the WAVETARGET to ensure that it wasn't WAVETARGET and will not repeat ever.
Last edited: