|
omaek193 Novice
Joined: 10 Oct 2002 Posts: 30 Location: Italy
|
Posted: 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. |
|
|
|
Serentus Apprentice
Joined: 28 Sep 2001 Posts: 103 Location: USA
|
Posted: 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. |
|
|
|
omaek193 Novice
Joined: 10 Oct 2002 Posts: 30 Location: Italy
|
Posted: Wed May 26, 2004 10:02 am |
Thx a lot
|
|
|
|
gasolin Novice
Joined: 17 Aug 2002 Posts: 31 Location: Denmark
|
Posted: 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 ? |
|
|
|
Serentus Apprentice
Joined: 28 Sep 2001 Posts: 103 Location: USA
|
Posted: 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. |
|
|
|
|
|