• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Simple TD Trigger(unlimited levels)

Level 9
Joined
Oct 17, 2009
Messages
370
Fount out this when i was playing with WE.
Its a simple td trigger that gives your td unlimited levels but may be a little bit boring... First of all make a custom unit of footman (or whatever u like). Set it 's maximum life to 99999999, regeneration rate to 0, armor to 0 and pathing to 1. Now lets make some Variables... Make one variable Named Creep_level with type integer, one Creep_hp with type real and initial value 10.00, make one Income if u want to get gold after every level, and one Lives with type real and initial value 50 (i have 1 because i made my map Insane :D) and last make one Lives_integer (isn't needed but if u want to have an leaderboard that shows lives u need it.

attachment.php


Now lets get to the triggering,

attachment.php


Thats my init,
This is the most important part

attachment.php


And last, the spawns..

attachment.php


And we're done... (want me to show the checkpoits? xD VERY LONG)
attachment.php

^-that was VERY boring to make these checkpoints

Please give credit if you use this system
 

Attachments

  • Variables.jpg
    Variables.jpg
    23 KB · Views: 318
  • Triggers.jpg
    Triggers.jpg
    43.7 KB · Views: 295
  • More triggers.jpg
    More triggers.jpg
    99.6 KB · Views: 315
  • checkpoints.jpg
    checkpoints.jpg
    34.3 KB · Views: 302
Last edited:
Level 28
Joined
Jan 26, 2007
Messages
4,789
u can change it so it changes unit type every 5th or something... that can make "Healing" levels or maybe boss levels
It's not very easy with your system to change the creeps (you need multiple triggers for each creep type).
Perhaps you should explain more things and add more variables (For different purposes, such as different unit types, upgrades etc).
The memory leaks should also be fixed, I've given an example below.

Also: use
  • -tags instead of images (go to the trigger editor, select the trigger you wish to copy/paste, above events you can right-click on the trigger's name, select "Copy as text", then paste it here and wrap [trigger]-tags around it).
  • When that is done, you can also use [hidden]-tags around the triggers, to save some space.
  • [hidden=Fixed Trigger]
  • [trigger]Send units 1
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
    • Actions
      • Set TempLoc = (Center of Spawn_Region)
      • Unit - Create CreepSpawn[Level] CreepType[Level] for Player 12 (Brown) at TempLoc facing 270.0 degrees
      • Custom script: call RemoveLocation(udg_TempLoc)
[/hidden]
Now the trigger supports:
  • Creep types to be chosen per level.
  • Creep amount to be spawned per level.
  • Leakless spawn.
The trigger isn't more complicated than yours is (though it could get more complicated with a timed spawn, but I will refrain myself from posting that here).

Checkpoints also only need 1 trigger ( + 1 setup trigger, but that's trivial since every map already has a setup trigger, you can just add the lines needed there).
 
Level 28
Joined
Jan 26, 2007
Messages
4,789
well i posted this for like 3 months ago... i have learned MUCH more now :D including some custom scripts (call removelocation( udg_temploc ))
Then why don't you update the tutorial? ^^
A tutorial is supposed to give other people a good explanation about whatever the tutorial is about, if you've learned a lot of new things, I'm sure you can create a better system.
 
Top