|
itsmarty Novice
Joined: 29 Jan 2002 Posts: 37 Location: USA
|
Posted: Sat Nov 30, 2002 12:26 am
Simutronics Dragonrealms - Roundtime Indicator |
This creates a "button" that displays your roundtime and counts down to zero.
#TRIGGER {^Roundtim* (%d) sec} {#ADD roundtime %1}
#TRIGGER (@roundtime>0) {}
#COND {} {#ADD roundtime -1} {wait|param=1000}
#BUTTON 2 {@roundtime} {} {@roundtime} {} {} {RTButton} {} {Size} {43} {23} {Pos} {0} {150} {78} {78} {} {} "" {} {} {RTButton} |
|
|
|
itsmarty Novice
Joined: 29 Jan 2002 Posts: 37 Location: USA
|
Posted: Sat Nov 30, 2002 12:39 am |
Edited code in previous post.
|
|
|
|
itsmarty Novice
Joined: 29 Jan 2002 Posts: 37 Location: USA
|
Posted: Sat Nov 30, 2002 6:07 am |
If you set this up and all you see is a blank button, edit the button settings and check the states.
Button Up and Button Down states should each have a caption of @roundtime. For some reason when I import the above trigger it only has a caption on Button Down.
You can test it offline by entering #VAR roundtime 5 at the command line and watch it count down.
Martin |
|
|
|
healunter Beginner
Joined: 07 Jan 2007 Posts: 17
|
Posted: Sun Jan 07, 2007 5:53 am |
Well at least it counts down, but can we get one that stops at 0?
|
|
|
|
|
|