 |
darthzenox Newbie
Joined: 30 Oct 2009 Posts: 2
|
Posted: Sat Feb 20, 2010 7:22 pm
Alarm in Stat bar |
I am trying to set up a trigger to read a string, create an alarm, and then have the alarm show up on my statbar. I used to have it set up for zmud, but since upgrading to cmud it has stopped working. It used to show up in my statbar and countdown continuously as the alarm went down and it was really nice. I would like to be able to get something like this working again? Any suggestions on how to set up the trigger, alarm, and statbar text?
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Feb 20, 2010 8:23 pm |
the statbar text will just be the label and the variable:
#status "stbRepop" {Time to repop: %if(@repoptime > @maxrepoptime,%concat("AREA HASN'T REPOPPED YET (+",(@repoptime - @maxrepoptime)," s)"),%concat(@repoptime," seconds"))}
The alarm would be a 1-second alarm either on the connected time (-1) or on the system time (*1), that decrements the variable:
#alarm "talmRepopTimer" {-1} {#add repoptime 1}
The trigger would match on some message, which would then reset stuff:
#trigger {@repopmsg} {#T- talmRepopTimer;#if (@repoptime > @maxrepoptime) {maxrepoptime = repoptime};repoptime = 0;#t+ talmRepopTimer}
Obviously my examples aren't exactly what you were looking for, but they should be enough for you to work out what you need. |
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|