1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Lead your forces to battle in the 15th Techtree Contest. The call is yours, commander!
    Dismiss Notice
  4. The reforging of the races is complete. Come see the 14th Techtree Contest Results.
    Dismiss Notice
  5. It's time to choose your horse in the race - the 32nd Modeling Contest Poll is up!
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Making a TD run smoothly

Discussion in 'World Editor Help Zone' started by Lingonberryjam, Jul 14, 2007.

  1. Lingonberryjam

    Lingonberryjam

    Joined:
    Feb 25, 2005
    Messages:
    230
    Resources:
    0
    Resources:
    0
    Hullo!

    Im creating a TD wars where you play in teams, 2 v 2.
    Minimap.jpg (The red lines represent the path the creeps take)

    What i've done to prevent blocking is to have the creeps attack1 enabled, and have towers vulnerable. So when blocked, the creeps will go to attack. To make them soldier on after killing a tower i use this simple trigger:

    • unit is attacked
      • Events
        • Unit - A unit Is attacked
      • Conditions
      • Actions
        • -------- Order attacking creep to move --------
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Owner of (Attacking unit)) Equal to Player 3 (Teal)
          • Then - Actions
            • Wait 0.30 seconds
            • Unit - Order (Attacking unit) to Move To (Center of Team1 finish <gen>)
          • Else - Actions
            • Wait 0.30 seconds
            • If ((Owner of (Attacking unit)) Equal to Player 6 (Orange)) then do (Unit - Order (Attacking unit) to Move To (Center of Team2 finish <gen>)) else do (Do nothing)


    It works just fine. The problem is that sometimes the creeps go crazy, and a bunch of towers just explode... and i guess that happens when there are alot of creeps and they all get stuck on eachother.

    What i want is tips of how to make it go smooth . Heres what ive done so far:

    - Reduced the max stock amount for the creeps you'r sending.
    - Having more expensive creeps more worth the money than many of the cheaper types.
    - Reduced the collision size of all creeps to 0 (This doesnt seem to help all to much)

    What im thinking about doing is to have each creep have a food cost = 1, and then using triggers to notify the player when you have reached max (the creeps you send are spawned for a cpu player, so you cant use the players own food cost)

    Except for what i've said here, do you have any tricks up your sleeve to get a TD to handle a quite high amount of units?
    A TD-wars that cant handle the units in the game is a sucky map. I dont want a sucky map.
     
  2. KingLz

    KingLz

    Joined:
    Jun 17, 2007
    Messages:
    62
    Resources:
    0
    Resources:
    0
    The Attackspeed and the time you wait to order the creeps can effect their will to attack.

    Slow Attack + good amount of time to wait in ur trigger can cause them not to go nuts that fast.

    You have to set the right values.
    Too high attackspeed will let them never attack. (not wanted if you want to destroy blocking towers.

    Too much waiting time to order them will get them attacking too soon.

    Just try.