Unlimited Creep Spawn

Ncrackz

New Member
Reaction score
2
This trigger always seems to make unlimited creeps, spawning over, and over again, i don't know what i did wrong
any help is appreciated

Code:
Wave2
    Events
        Time - Every 0.45 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 12 (Brown) Food used) Greater than or equal to 20
            Then - Actions
                Trigger - Turn on Wave2 stop <gen>
                Trigger - Turn off (This trigger)
            Else - Actions
                Set Start_Creep = (Center of Spawn 1 <gen>)
                Special Effect - Create a special effect at Start_Creep using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
                Unit - Create 1 02.Bigger Satyrs for Player 12 (Brown) at Start_Creep facing Default building facing degrees
                Unit - Order (Last created unit) to Move To Move[2]
                Wait 2.00 seconds
                Custom script:   call RemoveLocation (udg_Start_Creep)
                Special Effect - Destroy (Last created special effect)

The Stopping!

Code:
Wave2 stop
    Events
        Time - Every 0.55 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 12 (Brown) Food used) Equal to 0
            Then - Actions
                Trigger - Turn off (This trigger)
                Countdown Timer - Start WaveStart as a One-shot timer that will expire in 15.00 seconds
                Countdown Timer - Create a timer window for WaveStart with title Wave Start:
                Countdown Timer - Show (Last created timer window)
                Wait 15.00 seconds
                Countdown Timer - Destroy (Last created timer window)
                Trigger - Turn on Wave3 <gen>
            Else - Actions
 

nabbig2

New Member
Reaction score
43
Well I think you aren't turning off Wave2, and that is creating a unit every .45 seconds
 

Ncrackz

New Member
Reaction score
2
Well, when the amount of creeps reach 20 The "Then" action will turn off the trigger =\
 

nabbig2

New Member
Reaction score
43
Code:
Trigger - Turn off (This trigger)

Shouldn't that be turning off Wave2?
 

Ncrackz

New Member
Reaction score
2
Here you go



Code:
Wave3
    Events
        Time - Every 0.45 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 12 (Brown) Food used) Greater than or equal to 20
            Then - Actions
                Trigger - Turn on Wave3 stop <gen>
                Trigger - Turn off (This trigger)
            Else - Actions
                Set Start_Creep = (Center of Spawn 1 <gen>)
                Special Effect - Create a special effect at Start_Creep using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
                Unit - Create 1 03.Lizards for Player 12 (Brown) at Start_Creep facing Default building facing degrees
                Unit - Order (Last created unit) to Move To Move[2]
                Wait 2.00 seconds
                Custom script:   call RemoveLocation (udg_Start_Creep)
                Special Effect - Destroy (Last created special effect)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top