J
JasonD
Guest
Hey,
I looked around for a code to make my new level start after my old level finishes (i.e. all the units spawned in the last level leave the map, either dead by tower or dead by getting to the end)
But all I can find around here is timed levels, and I personally hate those, so I don't want them in my own TD either
I tried 'stealing' some triggers from other maps, but they either can't be opened in the map editor properly, or they work completely different from what I set, or I can't understand fuck'all of their code.
Then I tried doing something myself:
Brown == creeps
Knight == lvl 2
But this doesn't work. After all the units of lvl 1 leave the map now (10 for testing purposes, and 20 lives) it says 'VICTORY!' but it doesn't spawn a new horde of guys.
What am I missing? Or, how do I create a new level based on the fact that the last one ended...?
Thanks in advance, I'll be checking this.
I looked around for a code to make my new level start after my old level finishes (i.e. all the units spawned in the last level leave the map, either dead by tower or dead by getting to the end)
But all I can find around here is timed levels, and I personally hate those, so I don't want them in my own TD either
I tried 'stealing' some triggers from other maps, but they either can't be opened in the map editor properly, or they work completely different from what I set, or I can't understand fuck'all of their code.
Then I tried doing something myself:
Code:
lvl 2
Events
Unit - A unit leaves (Entire map)
Conditions
(((Last created unit group) is empty) Equal to True) and ((Color of (Owner of (Triggering unit))) Equal to (Color of Player 12 (Brown)))
Actions
Unit - Create 10 Knight for Player 12 (Brown) at (Center of ln 11 <gen>) facing (Random point in ln 11 <gen>)
Brown == creeps
Knight == lvl 2
But this doesn't work. After all the units of lvl 1 leave the map now (10 for testing purposes, and 20 lives) it says 'VICTORY!' but it doesn't spawn a new horde of guys.
What am I missing? Or, how do I create a new level based on the fact that the last one ended...?
Thanks in advance, I'll be checking this.