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
➜ help again
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Victory
USA (16 posts) Bio
|
| Date
| Mon 29 Apr 2002 12:30 AM (UTC) |
| Message
| string for trigger: You see tracks of *Baron Helios* leading north from here.
need it to say: gtell *Baron Helios* north
any help?
Victory | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Mon 29 Apr 2002 01:31 AM (UTC) |
| Message
| I think there are similar questions around in the forum, but to answer quickly you need to use a regular expression because you want to match an asterisk. Something like this:
Trigger: ^You see tracks of \*(.*?)\* leading (.*?) from here\.$
Send: gtell *%1* %2
Regular expression: checked
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Victory
USA (16 posts) Bio
|
| Date
| Reply #2 on Mon 29 Apr 2002 08:33 PM (UTC) |
| Message
| Thanks nick, next time i'll try to look first..
-Vic | | Top |
|
| Posted by
| Victory
USA (16 posts) Bio
|
| Date
| Reply #3 on Mon 29 Apr 2002 08:46 PM (UTC) |
| Message
| i tried it, but it didn't seem to work. Could a prompt before it mess it up? heres what i'm askin about, this is what i see during hunt:
< 4075hp 967m 332mv 2393Tnl > You see tracks of *Duke Lerenz* leading west from here.
would that < 4075hp 967m 332mv 2393Tnl > mess with it? | | Top |
|
| Posted by
| Magnum
Canada (580 posts) Bio
|
| Date
| Reply #4 on Mon 29 Apr 2002 09:27 PM (UTC) |
| Message
| Yup, because in a real expression, the ^ indicates start of line... Try:
Trigger: ^(.*?)You see tracks of \*(.*?)\* leading (.*?) from here\.$
Send: gtell *%2* %3
Regular expression: checked
Now the first wildcard will be your prompt, the second is the character, and the third the direction. |
Get my plugins here: http://www.magnumsworld.com/muds/
Constantly proving I don't know what I am doing...
Magnum. | | Top |
|
| Posted by
| Victory
USA (16 posts) Bio
|
| Date
| Reply #5 on Mon 29 Apr 2002 09:47 PM (UTC) |
| Message
| |
| Posted by
| Victory
USA (16 posts) Bio
|
| Date
| Reply #6 on Mon 29 Apr 2002 10:54 PM (UTC) |
| Message
| nevermind, found an old link about it:
Posted by Nick Gammon Australia (1856 posts) bio
Date Wed 25 Apr 2001 08:30 PM
Message Ah yes, I thought that might come up next! :)
In this case, you will need to use regular expressions, because the one thing you can't match on in regular wildcards is an asterisk.
I would match on:
Trigger: You see tracks of \*(.*)\* leading (.*)
Regular Expression: checked
The "\*" "escapes" an asterisk so it just matches an asterisk, and the "(.*)" means "any number of any character". The parentheses mean "save this as a wildcard", so you could send, for instance:
gtell %1 has gone %2
Thanks Again
-Victory | | Top |
|
| Posted by
| Magnum
Canada (580 posts) Bio
|
| Date
| Reply #7 on Tue 30 Apr 2002 06:03 AM (UTC) |
| Message
| ;boggle
Uh, ok. :) |
Get my plugins here: http://www.magnumsworld.com/muds/
Constantly proving I don't know what I am doing...
Magnum. | | 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.
23,009 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top