|
Butter Newbie
Joined: 19 Jan 2002 Posts: 6 Location: USA
|
Posted: 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 |
|
|
|
bgunther Novice
Joined: 20 Dec 2001 Posts: 39 Location: USA
|
|
|
|
alexcn Newbie
Joined: 19 Jan 2002 Posts: 6
|
Posted: 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. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
|
|