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:
    but thanks lol
  • Blackveiled Blackveiled:
    and I'll be 30 in January lmao
  • The Helper The Helper:
    Happy Tuesday!
    +1
  • The Helper The Helper:
    Hey Tom I am thinking about adding a Gaming News forum do you think that would be too much?
  • The Helper The Helper:
    I can probably get all the gaming content out of the Archives and into the new forum in about a week there are only 22 pages of them
  • Ghan Ghan:
    ACP -> Forums -> Batch Update Threads
  • Ghan Ghan:
    Search for threads with the Gaming prefix.
  • The Helper The Helper:
    I know mass moves are the preferred method but I prefer to go through each post and make sure all the links work and everything is good with the articles since some are quite dated
    +1
  • Ghan Ghan:
    When you're moving stuff around, are you specifying a time for the redirect so it expires, or are you letting the redirects remain forever?
  • The Helper The Helper:
    Forever
  • The Helper The Helper:
    They are 95 percent in the Archive forum
  • The Helper The Helper:
    is that problematic?
  • Ghan Ghan:
    No, shouldn't be. I was just thinking about the implications as far as search engines if the redirect were to disappear at some point.
  • The Helper The Helper:
    that is why I kept it
  • The Helper The Helper:
    You know about the notpron thing Ghan?
  • The Helper The Helper:
    the bots like the evening time the online statistics of the forum in no way represent the actual people on the site lol
  • Ghan Ghan:
    I know the notpron thread is our most popular one.
  • Ghan Ghan:
    But I don't know anything about the game itself.
  • Wizard Wizard:
    Oh hi.
  • The Helper The Helper:
    The notpron game has it set up so that if someone uses the guide they get branded a cheater and the game fucks with them
  • tom_mai78101 tom_mai78101:
    Porbably meant the developers of Notpron is aware of us, and probably has a hidden credit mentioning us somewhere.
  • tom_mai78101 tom_mai78101:
    "Here lies the cheaters who used the guide written by The Helper Forum. Rest in peace."
  • The Helper The Helper:
    Its called the Hall of Shame
  • The Helper The Helper:
    There is a big long story about all of it I am writing it up and will post it in the Site History forum later
  • The Helper The Helper:
    I think I am going to great the gaming news forum now

    Staff online

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top