HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Countdown timer

07-26-2004, 01:48 PM#1
gggggg
Hello,
im new with WE
i just want to know how do u creat a countdown timer and when it expires units start spawning.. something like that.
add any other basic trigger that i should know of
thanks.. ^_^
07-26-2004, 02:00 PM#2
johnfn
Welcome to the forums first of all. Hope you stick around.

Second of all you will need in this trigger to use something that a lot of people hate, but it's actually very simple once you understand it. That would be a variable. All a variable does is store data. In this case, you want a variable to store a timer, so you can check the timer in the variable to see if it's expired.

To make the timer variable, do this...

1. Trigger editor.
2. Press Ctrl+B
3. New variable (the green +X button)
4. Name it whatever you want
5. Make it a timer variable (remember you want to have something count down)

Get rid of the map initilization trigger, then make a new trigger. Put this in the trigger:

Code:
Make Countdown Timer
Events
Time - Elapsed game time is 0.10 seconds
Conditions
Actions
Countdown Timer - Start (your timer name) as a One-shot timer that will expire in 30.00 seconds
Countdown Timer - Create a timer window for (Last started timer) with title Time until creeps

That will create the timer. Now you need to have a trigger figure out when the timer got to 0 (its called expiring) and do something. What it does is up to you. Here's the trigger for that:

Code:
Countdown Expires
Events
Time - CountdownCreep expires
Conditions
Actions
Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
I have mine create a footman, but you can do whatever you want.

Hope that was helpful.
07-26-2004, 02:26 PM#3
gggggg
yes i will be sticking around cause i suck at learning stuff so ill be comming back here....(btw i did search the threads for countdown timer so dont get mad that i posted this topic :D )
thanks that trigger worked is there a trigger for like to make the timer window appear on the top left, middle... bottom of the screen o_O , changing the text color cause ive seen it in a lot of maps :l thnx
and again plz post any other trigger(s) that can help me learn things faster :> thnx
07-26-2004, 03:36 PM#4
gggggg
Common people :(
07-26-2004, 03:44 PM#5
johnfn
First of all you might not want to double post (everyone hates it).

Second, there is no trigger to make the countdown timer in a different place...

Third, for the colors, look in the downloads section under tools for a coloring tool; if I explained it here you would probably get confused (no offense, it confuses me too)
07-26-2004, 04:17 PM#6
gggggg
First of all, sorry :(
Second, okay :D
Third, thanks (none taken)