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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Butter
Newbie


Joined: 19 Jan 2002
Posts: 6
Location: USA

PostPosted: Sat Jan 19, 2002 5:48 am   

Can Guage buttons be set to be timers?
 
ok I have a question that I have not seen asked on the boards.
I know how to make buttons be guges to show varibales like HP or MP but now I have something I wanna do that I need some help with
I have questing in my mud like most other muds do and when I complete a quest I have to wait 10 mins till I can quest again
I would like to know if it is possible to make a timed guage so to speak...one the would have a max of 10 mins or like a #wait 600,000 but I want it to slowly go down graphically
just so I can know about how much time I have till my next quest by looking at the guage instead of having to type a quest time
command...any help would be appreciated..if anyone woud like to know the commands or prompts from the mud please let me know and I will paste them
Reply with quote
bgunther
Novice


Joined: 20 Dec 2001
Posts: 39
Location: USA

PostPosted: Sat Jan 19, 2002 9:35 am   
 
The simple answer to me is to use an #alarm command for 600 seconds, and echo when the timeout is done:

#alarm +600 {#echo You can quest again.}

However, if you want to do a ten-minute countdown guage graphically, there was a thread on this a week or 2 ago...

http://www.zuggsoft.com/forum/topic.asp?TOPIC_ID=5043&FORUM_ID=7&CAT_ID=1&Topic_Title=a+few+questions%2C+newbie+to+zmud&Forum_Title=zMUD+General+Discussion



Bob, aka Kayd on SWMud and a few others.
Reply with quote
alexcn
Newbie


Joined: 19 Jan 2002
Posts: 6

PostPosted: Sat Jan 19, 2002 10:03 am   
 
I think if you want to use a graphic timer, you can startup the tick timer first(such as the interval is 200s), then use this GUAGE;

#GAUGE timer "timer" %tick 200 (20) "" "blue" "red"

then u can see the graphical tick timer.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Jan 19, 2002 7:13 pm   
 
You could use the %secs variable to control your gauge. Something like this:

#TR {Congratulations on completing your quest} {#VAR questtimer %secs}
#GAUGE quest "Quest" {%secs - @questtimer} 600000 540000 {} "green" "yellow"


LightBulb
All scripts untested unless otherwise noted
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Jan 19, 2002 8:59 pm   
 
The premise here is that the gauge itself isn't equipped to be a timer. You can easily use it to display one, but you need to keep track of the timer separately from the gauge (however you go about doing it).

li'l shmoe of Dragon's Gate MUD
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion 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