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
Spearmaster
Newbie


Joined: 28 Dec 2005
Posts: 2

PostPosted: Wed Dec 28, 2005 7:31 pm   

A question of time and gauges
 
I got this quest time and I want to change that time and have a gauge to tick down to 0.

Here is the line that it shows
There are 2 minutes remaining until you can go on another quest.

how do I make a gauge that goes from that amount of time until 0 and then dissapears?

thank you
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Dec 28, 2005 8:51 pm   
 
#trigger {There are (%d) minutes remaining until you can go on another quest.} {Quest.maxtime = %eval(%1 * 60);Quest.curtime = @Quest.maxtime;#T+ tQuestAlarm}

#alarm "tQuestAlarm" *1 {#if (@Quest.curtime) {#add Quest.curtime -1} {#message "YOU CAN GO ON ANOTHER QUEST NOW!";#T- tQuestAlarm}}

When setting up your button, in the gauge tab put @Quest.maxtime as your max value and 0 as your low value.
_________________
EDIT: I didn't like my old signature
Reply with quote
Spearmaster
Newbie


Joined: 28 Dec 2005
Posts: 2

PostPosted: Thu Dec 29, 2005 5:12 am   
 
Thank you very much it works nicely... Surprised Surprised Surprised
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