Register forum user name Search FAQ

Gammon Forum

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 ➜ Pls help....

Pls help....

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Shienara   (4 posts)  Bio
Date Sat 27 Sep 2003 11:34 AM (UTC)
Message
Ok here the deal, I want to make a trigger that says, if it says 'boo' OR 'bah' OR 'your mother is fat' OR 'whatever'
send 'scream'

Is it possible to do something like that?

If it is... how?

Thanks

Me
Top

Posted by Magnum   Canada  (580 posts)  Bio
Date Reply #1 on Sat 27 Sep 2003 12:54 PM (UTC)
Message
It is possible to do that, by using regular expressions. Please browse your hard drive, find the directory where MUSHclient is installed, and look in the 'Docs' folder for a file called "RegularExpressions.txt". That document contains extensive help on the subject.

In the meantime, here is the alias you asked for:

<aliases>
  <alias
   match="(boo|bah|your mother is fat|whatever)"
   enabled="y"
   regexp="y"
   sequence="100"
  >
  <send>scream</send>
  </alias>
</aliases>

Get my plugins here: http://www.magnumsworld.com/muds/

Constantly proving I don't know what I am doing...
Magnum.
Top

Posted by Shienara   (4 posts)  Bio
Date Reply #2 on Sat 27 Sep 2003 01:21 PM (UTC)
Message
Thanks! You art an angel!
*caper*

Me
Top

Posted by Matthias   (28 posts)  Bio
Date Reply #3 on Thu 02 Oct 2003 09:18 PM (UTC)
Message
Heh, that's what I used to make those triggers I sent you.

Give a man a fire and you warm him for a day.
Set a man on fire and you warm him for the rest of his life.
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.


14,753 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.