• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] How to make a countdown timer?

Status
Not open for further replies.
Level 3
Joined
Jan 10, 2012
Messages
43
How can I make a time showing in the board at the top right corner showing what time will the next creep wave is starting?
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 021
    • Events
    • Conditions
    • Actions
      • Countdown Timer - Start timer as a One-shot timer that will expire in 30.00 seconds
      • Countdown Timer - Create a timer window for timer with title Next Wave in
      • Set tw = (Last created timer window)
  • Untitled Trigger 029
    • Events
      • Time - timer expires
    • Conditions
    • Actions
      • Countdown Timer - Destroy tw
Create a variable called timer or something and a timer window called tw.
When the timer expires, destroy the window.
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
  • Untitled Trigger 021
    • Events
    • Conditions
    • Actions
      • Countdown Timer - Start timer as a One-shot timer that will expire in 30.00 seconds
      • Countdown Timer - Create a timer window for timer with title Next Wave in
      • Set tw = (Last created timer window)
  • Untitled Trigger 029
    • Events
      • Time - timer expires
    • Conditions
    • Actions
      • Countdown Timer - Destroy tw
Create a variable called timer or something and a timer window called tw.
When the timer expires, destroy the window.

if timer is a array like (Timer[custom value x unit]) and i add in 1st trigger, trigger event to second like (Time - timer[custom value x unit] expires) then if each time when i start a new timer then its register like a new event even it is same than previous or replace it? (i ask because timer[custom value ] is same to same unit)

(so i think about make timer example for dead units without TSA, and i add new event like timer[dieing unit custom value], is i use 2x then its add this event 2x?)
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
Status
Not open for further replies.
Top