• 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.

Making a timer a variable

Status
Not open for further replies.
Level 3
Joined
Jul 18, 2008
Messages
42
For some reason when I try to make a timer a variable I can't give it an initial value... Or if there's some other way... I just want to make it so when the timer expires players get gold.
 
Level 4
Joined
Oct 29, 2008
Messages
65
For some reason when I try to make a timer a variable I can't give it an initial value... Or if there's some other way... I just want to make it so when the timer expires players get gold.

To start a timer:

Countdown Timer - Start <TIMER> as a One-shot timer that will expire in "X" seconds
Countdown Timer - Create a timer window for <TIMER> with title "TITLE"

Both are Actions. Obviously you need to make a Timer variable beforehand.



To make an event trigger when a timer expires:

Time - Timer expires

This is an Event.
 
maybe change it to a repeating timer, if it's an income thing... as Taishaku said, you got to start the timer, but THEN you got to use the 'Set variable' action and use it to something like this; Set YOURTIMER = Last created timer and then, if you want it to show, then make a timer window with another trigger, and then Set YOURTIMERWINDOW = Last created timer window
 
Status
Not open for further replies.
Top