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
omaek193
Novice


Joined: 10 Oct 2002
Posts: 30
Location: Italy

PostPosted: Wed May 26, 2004 8:36 am   

Countdown (gauge?).
 
I wonder if there is a way (i can't figure it out) to create a gauge like a countdown.
Mud message:
You are now invulnerable.
From this message I have 200 secs of invulnerability, can i create a gauge with this? or a countdown in the status window?
Sure that for you it's only a child game... i thank you in advance.
Reply with quote
Serentus
Apprentice


Joined: 28 Sep 2001
Posts: 103
Location: USA

PostPosted: Wed May 26, 2004 9:50 am   
 
#VAR ITime {0} {0}
#ALARM "ICountdown" *1 {#IF (@ITime<=0) {#T- ICountdown} {#ADD ITime -1}}
#TRIGGER {You are now invulnerable} {#VAR ITime {200};#T+ ICountdown})

Then set your gauge up as usual with @ITime as the Value, 200 as Max, 100(or whatever) as Low, chose you colors and there you go.
Reply with quote
omaek193
Novice


Joined: 10 Oct 2002
Posts: 30
Location: Italy

PostPosted: Wed May 26, 2004 10:02 am   
 
Thx a lot Smile
Reply with quote
gasolin
Novice


Joined: 17 Aug 2002
Posts: 31
Location: Denmark

PostPosted: Wed Jun 02, 2004 5:19 pm   
 
Hi

I relly like this one, I have it set to 1800 sec and counting down, the time before I can quest again, but if I log of the time stop on my mud, so how can I "save" the alarm so it begins at the same time when I log on as it was when I log off ?
Reply with quote
Serentus
Apprentice


Joined: 28 Sep 2001
Posts: 103
Location: USA

PostPosted: Fri Jun 04, 2004 10:48 am   
 
Using the same names as above:

Remove the default value from @ITime so that it remembers the count. The alarm should still be enabled when you log on if it was enabled when you logged off. If you want to make sure it's enabled you can put '#T+ ICountdown' in your atconnect alias, but that shouldn't be needed.

Unless you put '#T- ICountdown' in your atdisconnect to stop it when you disconnect if you spend time working offline.
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