steven5201 Administrator
Warcraft3 Account Name: : Steven5201 Warning : Level : 999 Power : 9999999999 Int: : 9999999999 HP: : 9999999999 My Pet : Posts : 7 Reputation : 0 Join date : 2011-09-12 Age : 26
Character sheet Character Sheet: steven5201
| Subject: How to make a countdown timer Tue Dec 27, 2011 2:49 am | |
| | |
|
Stygian_Shadow Jr. Staff Member
Warning : Level : 1 Power : 1 Int: : 1 HP: : 1 My Pet : Posts : 43 Reputation : 3 Join date : 2011-09-24 Age : 26 Location : Lincoln, Nebraska
Character sheet Character Sheet:
| Subject: Re: How to make a countdown timer Tue Dec 27, 2011 3:12 am | |
| While this is useful, it doesn't show you how to make a Countdown Timer (the bar in the top right displaying time.) This starts an event off after an elapsed time. Countdown timers require variables. - Code:
-
Timer Events Unit - A unit Dies Conditions Actions -------- The event can be whatever you want to trigger your timer. -------- Countdown Timer - Start CD_Timer as a One-shot timer that will expire in 30.00 seconds -------- You choose the time. Select Repeating if you want it to loop. -------- Set CD_Timer = (Last started timer) Countdown Timer - Create a timer window for CD_Timer with title Insert Title Set CD_Timer_Window = (Last created timer window) -------- Setting your variables to be the last Timer/Window is important when using more than one timer. -------- Countdown Timer - Show (Last created timer window) for Player 1 (Red) -------- OR -------- Countdown Timer - Show (Last created timer window) -------- For multiple players. -------- | |
|