Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
itsmarty
Novice


Joined: 29 Jan 2002
Posts: 37
Location: USA

PostPosted: 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}
Reply with quote
itsmarty
Novice


Joined: 29 Jan 2002
Posts: 37
Location: USA

PostPosted: Sat Nov 30, 2002 12:39 am   
 
Edited code in previous post.
Reply with quote
itsmarty
Novice


Joined: 29 Jan 2002
Posts: 37
Location: USA

PostPosted: 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
Reply with quote
healunter
Beginner


Joined: 07 Jan 2007
Posts: 17

PostPosted: Sun Jan 07, 2007 5:53 am   
 
Well at least it counts down, but can we get one that stops at 0?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net