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 ➜ New problem

New problem

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


Posted by Austen   (5 posts)  Bio
Date Fri 18 May 2001 08:58 PM (UTC)
Message
alright need something like the hunt one, but this is a bit different

*Duchess Arnica* Trail Through The Pass
*Duchess Perse* Trail Through The Pass

well, i figured this out before, but still some trouble with it.
I need to gtell who and where they are

gt *Duchess Arnica* Trail though the pass
well anyway you get the point, but i don't know if that gap in the center matters when i set up the trigger, because people have different size names, which streaches the gap out, and so on..but anyway, tell me what you can do with that.
thx, oh btw, the hunt one worked great.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 18 May 2001 09:08 PM (UTC)
Message
You can match on any length gap with just ".*" which means any number of any character.

Thus, the whole line would match on:



^(\*.*\*.*)$


That is:


^ - start of line
( - start of portion to be returned
\* - first asterisk
.* - anything inside the asterisk
\* - second asterisk
.* - anything past the asterisk
) - end of portion to be returned
$ - end of line


Make it a regular expression, and then just send:

gt %1


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Austen   (5 posts)  Bio
Date Reply #2 on Sat 19 May 2001 05:51 AM (UTC)
Message
works alright, but not for the right reason...well heres how it is. When ever i walk into a room with a decoy, (has the * by its name* i'll gt *Baron Blah* is right here

I need it to only work for the spell

it would look something like
*Baron Blah* Trail threw the pass
There is a large space in there, but its not the same size, for different names.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Sat 19 May 2001 09:26 AM (UTC)
Message
I thought that might happen.

You need to find something distinctive, if you can, to distinguish between the trigger you want to fire and the one you don't.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


16,518 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.