Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Entire forum
➜ MUSHclient
➜ General
➜ Display countdown
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Petethemeat
(9 posts) Bio
|
Date
| Fri 15 Jul 2011 12:14 PM (UTC) |
Message
| Hi!
How do I best display a countdown?
My trigger contains the following line of code sent to script:
Doafter(math.random (1500, 1600 / 10, "alias1")
So what I simply want is some sort of clock that shows the countdown in my main window.
Regards
Peter | Top |
|
Posted by
| Fiendish
USA (2,533 posts) Bio
Global Moderator |
Date
| Reply #1 on Fri 15 Jul 2011 06:46 PM (UTC) |
Message
|
Quote: My trigger contains the following line of code sent to script:
Doafter(math.random (1500, 1600 / 10, "alias1")
No it doesn't, because that's not valid syntax. What does your trigger actually have? |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #2 on Fri 15 Jul 2011 09:48 PM (UTC) |
Message
| |
Posted by
| Petethemeat
(9 posts) Bio
|
Date
| Reply #3 on Sat 16 Jul 2011 08:40 AM (UTC) |
Message
|
Fiendish said:
Quote: My trigger contains the following line of code sent to script:
Doafter(math.random (1500, 1600 / 10, "alias1")
No it doesn't, because that's not valid syntax. What does your trigger actually have?
Well, since it works just fine I count that as a valid syntax! | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #4 on Sat 16 Jul 2011 08:54 AM (UTC) |
Message
|
|
For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.
|
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #5 on Sat 16 Jul 2011 09:24 AM (UTC) |
Message
|
Petethemeat said: Well, since it works just fine I count that as a valid syntax!
1. You're missing a ) somewhere
2. The function is DoAfter, not Doafter
What you pasted is invalid, which is why Fiendish is asking for a literal paste of what your trigger contains. A correct semblance of your paste would be:
DoAfter(math.random(1500, 1600) / 10, "alias1")
For utmost accuracy, you should export the trigger and paste it here. Nick linked to a forum post showing how to do that. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Petethemeat
(9 posts) Bio
|
Date
| Reply #6 on Sun 17 Jul 2011 10:01 AM (UTC) |
Message
|
Twisol said:
Petethemeat said: Well, since it works just fine I count that as a valid syntax!
1. You're missing a ) somewhere
2. The function is DoAfter, not Doafter
What you pasted is invalid, which is why Fiendish is asking for a literal paste of what your trigger contains. A correct semblance of your paste would be:
DoAfter(math.random(1500, 1600) / 10, "alias1")
For utmost accuracy, you should export the trigger and paste it here. Nick linked to a forum post showing how to do that.
Oh yes, my mistake :-)
Im currently on my iPad and will upload it as soon as Im at home! | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
20,941 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top