Complicated trigger

Posted by Gore on Thu 08 Jan 2004 03:50 PM — 4 posts, 17,812 views.

#0
Hello, I'm having trouble trying to trigger a paticular phrase.

A prickly stinging overcomes your body, fading away into numbness.

Now, the problem is, *'s replace random letters in the pattern. In ZMud, I'd trigger it like this:

{A|*}{ |*}{p|*}{r|*}{i|*}{c|*}{k|*}{l|*}{y|*}{ |*}{s|*}{t|*}{i|*}{n|*}{g|*}{i|*}{n|*}{g|*}{ |*}{o|*}{v|*}{e|*}{r|*}{c|*}{o|*}{m|*}{e|*}{s|*}{ |*}{y|*}{o|*}{u|*}{r|*}{ |*}{b|*}{o|*}{d|*}{y|*}{,|*}{ |*}{f|*}{a|*}{d|*}{i|*}{n|*}{g|*}{ |*}{a|*}{w|*}{a|*}{y|*}{ |*}{i|*}{n|*}{t|*}{o|*}{ |*}{n|*}{u|*}{m|*}{b|*}{n|*}{e|*}{s|*}{s|*}{.|*}

Meaning, that it looked for the letter or *, so it'd pick up

A *rickly st*ngi*g overcomes*your body, *adi*g away into numb*ess.

like that. This is what I tried in MUSHClient,


^(A|\*)( |\*)(p|\*)(r|\*)(i|\*)(c|\*)(k|\*)(l|\*)(y|\*)( |\*)(s|\*)(t|\*)(i|\*)(n|\*)(g|\*)(i|\*)(n|\*)(g|\*)( |\*)(o|\*)(v|\*)(e|\*)(r|\*)(c|\*)(o\*)(m|\*)(e|\*)(s|\*)( |\*)(y|\*)(o|\*)(u|\*)(r|\*)( |\*)(b|\*)(o|\*)(d|\*)(y|\*)(,|\*)( |\*)(f|\*)(a|\*)(d|\*)(i|\*)(n|\*)(g|\*)( |\*)(a|\*)(w|\*)(a|\*)(y|\*)( |\*)(i|\*)(n|\*)(t|\*)

But I guess (|) Will only work for words, instead of letters/spaces, any help, please?
USA #1
Hmm... First off, are you sure you set it to use regular expressions? Second, I got this to work:

^(A|\*)( |\*)(p|\*)(r|\*)(i|\*)(c|\*)(k|\*)(l|\*)(y|\*)( |\*)(s|\*)(t|\*)(i|\*)(n|\*)

Apparently the regular expression parser Mushclient uses doesn't like more than 14 sub strings. When I add (g|\*) to that it fails with a message "Too many substrings in regular expression". :(
USA #2
Try without the parentheses. They may not be necessary. After all you're not trying to pick up the matched parts, you're just trying to match things.

You could also try using the character class notation, which would be using square brackets and without the | (or bar) if I remember correctly.

Wasn't there another post on this exact same phrase not too long ago?
Australia Forum Administrator #3
This has indeed been discussed a few times. Try searching for 'prickly' on this forum. The most recent, and rather exhaustive, reply is at Converting triggers and what they mean. My own reply (at or near the bottom) shows a nice readable way of doing it.