Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, 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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Triggers
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Penguin
(46 posts) Bio
|
| Date
| Tue 04 Jun 2002 11:54 PM (UTC) |
| Message
| Is it possible in anyway to make MUSHclient triggers the same speed or faster than MUD triggers? Right now it isn't..
And also I would wish to ask if random timers were possible. As in.. specify a time range lets say 1-2 minutes and the timer would be random each time, like 34 seconds the first time then 45 seconds the next. I've read about the random socials and I was thinking that this would really add to the effect. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Wed 05 Jun 2002 12:40 AM (UTC) |
| Message
| What do you mean "faster than MUD triggers"? At present MUSHclient responds the moment it gets the newline at the end of a line. It can't do it much faster than that. If by "MUD trigger" you mean a trigger at the server end, then the server will always be faster because it can react even before the data is sent to the client.
As for random timers, you could do it a couple of ways.
One would be to make a one-shot timer with a random interval, and each time the timer fired it would do its social and add another one with a random interval.
Another, simpler, approach is to take the random socials idea, but make it have a percentage chance to do nothing. eg. make it fire every 5 seconds, but give it a 20% chance to do something. Like this:
Sub DoRandomSocial (strTimerName)
If Rnd < 0.2 Then
World.Send SocialsList ( Rnd * Ubound (SocialsList))
End If
End Sub
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | 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.
11,586 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top