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.
[06:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[05:41 am]
Ultraviolet -- 🤔 so inf is in you?
[04:57 am]
O)FaRTy1billion[MM] -- my name is mud
[04:35 am]
Ultraviolet -- mud, meet my friend, the stick
[2024-5-16. : 10:07 pm]
lil-Inferno -- nah
[2024-5-16. : 8: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
[2024-5-16. : 5:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[2024-5-16. : 5:24 pm]
lil-Inferno -- poopoo
[2024-5-16. : 5: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?
[2024-5-16. : 3:36 pm]
NudeRaider -- :lol:
Please log in to shout.


Members Online: 1jordane4491rr6, 7camilac5685fb7, 8milae5823he9