Easier spawn for my TD

eatbeaver

New Member
Right now i am using an unflexible and full of leaks so i want an easier one. So how can i make my spawn triggers 16 actions less?


I am using this one right now:
Code:
Level 1
    Events
        Time - Elapsed game time is 35.00 seconds
    Conditions
        (Player 1 (Red) slot status) Equal to Is playing
    Actions
        Unit - Create 1 Level 1: Germ for Player 12 (Brown) at (Center of Creep spawn red <gen>) facing Default building facing degrees
        Wait 2.00 game-time seconds
        Unit - Create 1 Level 1: Germ for Player 12 (Brown) at (Center of Creep spawn red <gen>) facing Default building facing degrees
        Wait 2.00 seconds
        Unit - Create 1 Level 1: Germ for Player 12 (Brown) at (Center of Creep spawn red <gen>) facing Default building facing degrees
        Wait 2.00 seconds
        Unit - Create 1 Level 1: Germ for Player 12 (Brown) at (Center of Creep spawn red <gen>) facing Default building facing degrees
        Wait 2.00 seconds
        Unit - Create 1 Level 1: Germ for Player 12 (Brown) at (Center of Creep spawn red <gen>) facing Default building facing degrees
        Wait 2.00 seconds
        Unit - Create 1 Level 1: Germ for Player 12 (Brown) at (Center of Creep spawn red <gen>) facing Default building facing degrees
        Wait 2.00 seconds
        Unit - Create 1 Level 1: Germ for Player 12 (Brown) at (Center of Creep spawn red <gen>) facing Default building facing degrees
        Wait 2.00 game-time seconds
        Unit - Create 1 Level 1: Germ for Player 12 (Brown) at (Center of Creep spawn red <gen>) facing Default building facing degrees
        Wait 2.00 game-time seconds
        Unit - Create 1 Level 1: Germ for Player 12 (Brown) at (Center of Creep spawn red <gen>) facing Default building facing degrees
        Wait 2.00 game-time seconds
        Unit - Create 1 Level 1: Germ for Player 12 (Brown) at (Center of Creep spawn red <gen>) facing Default building facing degrees
        Wait 2.00 game-time seconds
        Unit - Create 1 Level 1: Germ for Player 12 (Brown) at (Center of Creep spawn red <gen>) facing Default building facing degrees
        Wait 2.00 seconds
        Unit - Create 1 Level 1: Germ for Player 12 (Brown) at (Center of Creep spawn red <gen>) facing Default building facing degrees
        Wait 2.00 seconds
        Unit - Create 1 Level 1: Germ for Player 12 (Brown) at (Center of Creep spawn red <gen>) facing Default building facing degrees
        Set Level2 = True
        Trigger - Turn on Level 2 <gen>
        Trigger - Turn off (This trigger)
 

Accname

2D-Graphics enthusiast
ever heard of "for each integer A loop"?
use something like this:
Code:
Untitled Trigger 001
    Events
    Conditions
    Actions
        Set SpawnPoint = (Center of (Playable map area))
        For each (Integer C[1]) from 1 to 12, do (Actions)
            Loop - Actions
                Unit - Create 1 [I]Creep[/I] for Player 12 (Brown) at SpawnPoint facing Default building facing (270.0) degrees
                Wait 2.00 seconds
        Custom script: call RemoveLocation (udg_SpawnPoint)
C is an integer variable with array.
SpawnPoint is obviously a point variable.
 

Dameon

"All the power in the world resides in the eyes"
yes you heard about it from him, if you check back in the other post you will see he is the one that told you about it, if you are haveng trouble makeing the actions I will make you a demp map with the trigger showing you how to make it, so if you don't know how just post then I will post you one.
 

LightChaosma

New Member
that is a very ineffectiant spawning system, you need a trigger for each wave. use unit_type variables. a nice example would be the system i posted on this forum yesterday, you might wanna take a look.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    it is all percolating man
  • The Helper The Helper:
    TheHelper.net #1!
  • Wizard Wizard:
    #1
  • The Helper The Helper:
    LOL I love this place
  • Wizard Wizard:
    ;D
  • Wizard Wizard:
    We all do.
  • O Old Mountain Shadow:
    So what is next for thehelper.net? Is there a new set goals yet?
  • The Helper The Helper:
    yes we are going to be expanding
    +1
  • The Helper The Helper:
    help more people
  • The Helper The Helper:
    thank you for asking Old Mountain Shadow hell ya@
  • The Helper The Helper:
    Look at Mountain Shadow in the chat!
  • The Helper The Helper:
    welcome to thehelper.net
  • O Old Mountain Shadow:
    thanks although I'm really kind of regretting this name lol ... is there a way to change it out or will I need to make a new account?
    +1
  • Wizard Wizard:
    One of us can change it for you, I believe. Just send me a PM on what you want.
  • Ghan Ghan:
    Some day we should get the feature where you can change your own name.
  • Wizard Wizard:
    Soon!
  • The Helper The Helper:
    did the mountain shadow get his name changed? personally I think Old Mountain Shadow is a kickass name
  • The Helper The Helper:
    but what do i know lol
  • Wizard Wizard:
    No they haven't had their name changed, it is badass xD
    +1
  • O Old Mountain Shadow:
    Thanks, lol! I haven't quite come up with a good new one yet. I was gonna default to one of my older usernames: Cha Zui = tea drunk in Chinese but then decided it too didn't quite fit right. I'm not asian lol... But I am tall, and old spirited which is sort of where the Old Mountain Shadow came about.
  • O Old Mountain Shadow:
    Either way I appreciate the willingness to help me change it! Should I discover something better I'll swap it, but for now ill stay with what I got.
  • The Helper The Helper:
    If you want a change like they said earlier just let us know
    +1
  • Ghan Ghan:
    Patched and rebooted the server this morning.
  • Ghan Ghan:
  • The Helper The Helper:
    dam pwnkit what a name probably perfectly describes it

    Members online

    Affiliates

    Hive Workshop NUON Dome
    Top