Custom events

Posted by Slayd on Thu 06 Dec 2012 08:37 PM — 5 posts, 17,660 views.

#0
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
Australia Forum Administrator #1
What do you mean by events? Triggers? Elapsed time?
#2
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
USA Global Moderator #3
BroadcastPlugin / OnPluginBroadcast
#4
Thanks, Fiendish. The memory cells are beginning to kick in :)