HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Making a timer that counts upwards

01-27-2005, 11:59 PM#1
Civ
Just want trigger directions for making a timer that keeps up by the sec. Ok if its all sec no min. doesnt matter.

Searched but could not find sorry if I missed something.

(Leaderboard type btw.)
01-28-2005, 04:05 AM#2
Panto
I don't think there's anything that changes the rate, so your best bet is probably to have a non-running timer that, every second, you change to match the game-time elapsed.
01-28-2005, 05:00 AM#3
Guest
trigger
event, perodic timer 1 second
action, add 1 to a integer variable
01-28-2005, 05:30 AM#4
Beta_Tester
I would think a good way to do that is take you timer start time (i think theres a function in WEU that finds that) - the current time to get a countup

and example would be:
Start Total: 100
Current Time: 65

with a little simple math you can fin the amount of time passed by saying

Start time - current time = passed time

im not sure how you can display these but im sure you can find a way
as a wise man said: the simplest solutions are the best
01-28-2005, 02:16 PM#5
Guest
I've asked this question before in a thread that I started, called "Upward Counting Timer". Just do a search for threads that I have started (there's not that many - someone was really nice and triggered it all out for me.

NB Since then I've altered that trigger given slightly, so that it counts in real time, as opposed to game time - but that's a simple alteration.
01-28-2005, 10:01 PM#6
Civ
Quote:
Originally Posted by RogueKnight
I've asked this question before in a thread that I started, called "Upward Counting Timer". Just do a search for threads that I have started (there's not that many - someone was really nice and triggered it all out for me.

NB Since then I've altered that trigger given slightly, so that it counts in real time, as opposed to game time - but that's a simple alteration.

thanks ive got it now. thanks to everyone who helped on this topic.