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.
[12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[09:37 pm]
IskatuMesk -- I have never and will never own a phone
[09:15 pm]
NudeRaider -- Vrael ranting still is though
[09:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[2026-4-13. : 3:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[2026-4-13. : 3:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
[2026-4-13. : 2:13 pm]
NudeRaider -- bro I don't go anywhere without my phone to record anything significant
[2026-4-13. : 1:28 pm]
Vrael -- Zoan
Zoan shouted: not if u wer there
id say even if you were there its tricky, human memory can be very faulty
[2026-4-12. : 11:55 pm]
Zoan -- not if u wer there
Please log in to shout.


Members Online: Rawflesh0615, Nekron