HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Time left on timer

05-21-2009, 12:59 AM#1
Fluff
Is it possible to make a condition in JASS or GUI that checks to see how much time is left on a timer? I want to make a trigger that does something if a timer has more than 5 minutes remaining and something else if not.
05-21-2009, 01:38 AM#2
Sunwarrior25
Yup, in GUI it'd be a Real Comparison.
Trigger:
Your GUI trigger
Collapse Events
Time - Every x seconds of game time
Collapse Conditions
(Life of (Triggering unit)) Greater than or equal to 10.00
(Remaining time for (Last started timer)) Less than or equal to 300.00
Collapse Actions
-------- stuff --------
I'm assuming there's a similar (and better) comparison in Jass.
Anywho, g'luck!
05-21-2009, 03:46 AM#3
Fluff
Oh thanks! I didn't see that the first time I looked in Real Comparisons.