Gammon Forum
Entire forum
MUSHclient
General
* escape
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Artel
USA (65 posts) bio
|
Date
| Fri 16 Jul 2004 08:22 PM (UTC) |
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. | top |
|
Posted by
| Zeno
USA (2,871 posts) bio
|
Date
| Reply #1 on Fri 16 Jul 2004 09:30 PM (UTC) |
Message
| |
Posted by
| Artel
USA (65 posts) bio
|
Date
| Reply #2 on Fri 16 Jul 2004 10:08 PM (UTC) |
Message
| as I understand, the \* is supposed to work? That's what help files and the forum says, but it's not working |
Artel. | top |
|
Posted by
| Flannel
USA (1,230 posts) bio
|
Date
| Reply #3 on Fri 16 Jul 2004 10:18 PM (UTC) |
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. | 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.
13,243 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.