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.
[05:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[05:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[05:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[03:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
Please log in to shout.


Members Online: Roy