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.
[01:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
Please log in to shout.


Members Online: Wing Zero, Roy