[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  * escape
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

* escape

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Artel   USA  (63 posts)  [Biography] bio
Date Fri 16 Jul 2004 08:22 PM (UTC)  quote  ]
Message
i have a trigger to respond to a message:

*** Example! (message) ***
Send: nobletalk blah blah

i tried ^*** Example! (message) ***$ and I got an error, so I put backslashes in: ^\*\*\* Example! (message) \*\*\*$

Nothing happens..
Are the parentheses or exclaimation marks causing this? Or is the * off?

Artel.
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio   Moderator
Date Reply #1 on Fri 16 Jul 2004 09:30 PM (UTC)  quote  ]
Message
This was recently discussed. See:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4440

That should help.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Artel   USA  (63 posts)  [Biography] bio
Date Reply #2 on Fri 16 Jul 2004 10:08 PM (UTC)  quote  ]
Message
as I understand, the \* is supposed to work? That's what help files and the forum says, but it's not working

Artel.
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Reply #3 on Fri 16 Jul 2004 10:18 PM (UTC)  quote  ]
Message
Yes.
The ONLY way to match an asterisk is with a regular expression. Which is a more powerful form of trigger. \ is an escape character, because in a regexp, * is something that means something.

so \* tells the regexp engine to not think of * as instructions, but as simple characters instead.

So youll need to have "regular expression" checked to use it.

Try...
^\*\*\* Example\! \(message\) \*\*\*$

Regexps are EXTREMELY fickle, you might have leading (or trailing) spaces or perhaps a second space in between message and the next asterisks, and that will throw off your trigger.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] 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.


2,266 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Web site powered by FutureQuest.Net]