Countdown Timer
Oct 16 2007, 8:58 pm
By: xKellyxVeitx  

Oct 16 2007, 8:58 pm xKellyxVeitx Post #1



I need a repeating countdown timer. It's going to be for a defense map to show the time in between each level. Sorry if this is common question. I just can't figure it out. Any help would be appreciated. I mainly just need to know the format of the trigger.



None.

Oct 17 2007, 1:13 am FatalException Post #2



Try:
[TRIGGER]
[DESCRIPTION]Set a switch first[/DESCRIPTION]
[CONDITIONS]
[*]Elapsed time 0.
[/CONDITIONS]
[ACTIONS]
[*]Set Switch 1.
[/ACTIONS]
[/TRIGGER]
[TRIGGER]
[DESCRIPTION]Start 1st countdown[/DESCRIPTION]
[CONDITIONS]
[*]Switch 1 is set.
[/CONDITIONS]
[ACTIONS]
[*]Set countdown timer at x.
[/ACTIONS]
[/TRIGGER]
[TRIGGER]
[DESCRIPTION]End of countdown/start of wave[/DESCRIPTION]
[CONDITIONS]
[*]Countdown timer is at 0.
[*]Switch 1 is set.
[/CONDITIONS]
[ACTIONS]
[*]Clear Switch 1.
[*]Spawn x units at y location, give z order.
[*]Set Switch 2.
[/ACTIONS]
[/TRIGGER]
For the next countdown start, have the condition be 'Switch 2 is set,' so then you can have different units spawn each time. Continue until you have all of your waves.



None.

Oct 17 2007, 1:15 am Nimitz Post #3



Use DC, this is more accurate and they will not glitch (wait blocks).



None.

Oct 17 2007, 2:13 am xKellyxVeitx Post #4



Quote from FatalException
Try:
[TRIGGER]
[DESCRIPTION]Set a switch first[/DESCRIPTION]
[CONDITIONS]
[*]Elapsed time 0.
[/CONDITIONS]
[ACTIONS]
[*]Set Switch 1.
[/ACTIONS]
[/TRIGGER]
[TRIGGER]
[DESCRIPTION]Start 1st countdown[/DESCRIPTION]
[CONDITIONS]
[*]Switch 1 is set.
[/CONDITIONS]
[ACTIONS]
[*]Set countdown timer at x.
[/ACTIONS]
[/TRIGGER]
[TRIGGER]
[DESCRIPTION]End of countdown/start of wave[/DESCRIPTION]
[CONDITIONS]
[*]Countdown timer is at 0.
[*]Switch 1 is set.
[/CONDITIONS]
[ACTIONS]
[*]Clear Switch 1.
[*]Spawn x units at y location, give z order.
[*]Set Switch 2.
[/ACTIONS]
[/TRIGGER]
For the next countdown start, have the condition be 'Switch 2 is set,' so then you can have different units spawn each time. Continue until you have all of your waves.
That you very much. I have a feeling I'll probably have a lot more questions about my map, but hopefully I will be able to find so answers for myself.



None.

Oct 17 2007, 10:41 am NudeRaider Post #5

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Combine Nimitz' and Fatal's ideas:

Rename an unused unit like neutral - neutral - cantina to "LEVEL" and use it as a deathcounter to determine the level.


Init:
Computer Player
Conditions:

Always
Actions:
Set Death Counts for Computer player 'set to' 1 for LEVEL
Set Countdown timer to x seconds
(So ppl have time to build 1st defense)

Level 1:
Computer Player
Conditions:

Countdown Timer is at at most 0s
Current Player has suffered exactly 1 deaths of LEVEL
Actions:
» Do whatever you like «
Set Countdown timer to x seconds
Set Death Counts for Computer player 'set to' 2 for LEVEL


Level 2:

Computer Player
Conditions:

Countdown Timer is at at most 0s
Current Player has suffered exactly 2 deaths of LEVEL
Actions:
» Do whatever you like «
Set Countdown timer to x seconds
Set Death Counts for Computer player 'set to' 3 for LEVEL

... and so forth




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:07 pm]
lil-Inferno -- nah
[08:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[05:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[05:24 pm]
lil-Inferno -- poopoo
[05:14 pm]
UndeadStar -- I wonder if that's what happened to me. A returned product (screen) was "officially lost" for a while before being found and refunded. Maybe it would have remained "lost" if I didn't communicate?
[03:36 pm]
NudeRaider -- :lol:
[2024-5-16. : 3:02 am]
Ultraviolet -- I'm gonna send inf to have sex with their moms
[2024-5-16. : 3:02 am]
Ultraviolet -- fuck those motherfuckers
[2024-5-15. : 11:02 pm]
NudeRaider -- PSA: ASUS apparently decided their RMA department needs to "become profitable" and for a while now outright tries to scam customers. They were called out on it a year ago, promised to change, but didn't. https://www.youtube.com/watch?v=7pMrssIrKcY so my recommendation: Stop buying ASUS, and if you already have and need something RMA'd, make sure to not let them bully you into paying.
[2024-5-15. : 3:08 pm]
Oh_Man -- example of wat u mean?
Please log in to shout.


Members Online: 8avac2823fh2