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
➜ Custom events
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Slayd
(3 posts) Bio
|
Date
| Thu 06 Dec 2012 08:37 PM (UTC) |
Message
| I'm returning to Mushclient after spending a bit of time with Mudlet.
One of the features I like in Mudlet is the ability to define your own events and then set up scripts to start when a given event occurs.
I could have sworn that I read of a way to do that using Mushclient but I've searched the documentation/forums and can't seem to find any discussions.
I'm not referring to the hard-wired world events that one could set up a single function to fire when it occurs, but custom events that I could raise as part of a system design.
Thanks for reading,
Slayd | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Thu 06 Dec 2012 08:58 PM (UTC) |
Message
| What do you mean by events? Triggers? Elapsed time? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Slayd
(3 posts) Bio
|
Date
| Reply #2 on Thu 06 Dec 2012 09:13 PM (UTC) |
Message
| It would be "trigger-like" but user defined,
In a script that fired when I received a prompt line, I would set up a command like "raise OnPrompt" which would create/fire an OnPrompt event. I could have one or more scripts that could fire whenever an OnPrompt event occurred.
It is really just one level of indirection away from have each script called from the prompt line trigger script. I just found it easy to manage when I was setting up a system in Mudlet.
I thought I recalled that Mushclient had something similar.
Thanks for the response, Nick | Top |
|
Posted by
| Fiendish
USA (2,534 posts) Bio
Global Moderator |
Date
| Reply #3 on Fri 07 Dec 2012 03:55 AM (UTC) |
Message
| BroadcastPlugin / OnPluginBroadcast |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Slayd
(3 posts) Bio
|
Date
| Reply #4 on Fri 07 Dec 2012 03:58 AM (UTC) |
Message
| Thanks, Fiendish. The memory cells are beginning to kick in :) | 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.
12,999 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top