New problem

Posted by Austen on Fri 18 May 2001 08:58 PM — 4 posts, 17,253 views.

#0
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.
Australia Forum Administrator #1
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

#2
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.
Australia Forum Administrator #3
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.