|
wizzard1771 Newbie
Joined: 16 May 2002 Posts: 0 Location: USA
|
Posted: Mon Apr 15, 2002 3:32 pm
easy variable/trigger problem |
ok, right now I have something like this:
Pattern: say (%a)
Command: emote says with a blah blah voice '%1'
So if I had something like this coming from the mud: say hahaha bahahah mahaha
it would send this: emote says with a blah blah voice 'hahaha'
The problem is that I want everything to be sent to the mud (hahaha bahahah mahaha)
-----
Zeth |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Apr 15, 2002 7:41 pm |
Use an alias instead of a trigger.
#AL say {emote says with a blah blah voice '%-1'}
LightBulb
Vague questions get vague answers |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Apr 15, 2002 9:57 pm |
quote:
Use an alias instead of a trigger.
#AL say {emote says with a blah blah voice '%-1'}
LightBulb
Vague questions get vague answers
The alias would be the better way, but just to answer the question, be aware that the %a, %d, %x, %w, %d, %n and other such wildcard symbols will only capture one-word segments of text. That's why your trigger only returned 'hahahaha' instead of 'hahahaha muhahahaha bwuhahaha".
While multi-word support for these types of wildcards doesn't seem worthy of implementation, you can get around this limitation with judicious use of the * and %* wildcards. Since in this case you're capturing speech text you might wish to go with %* over *, depending on how profoundly you use certain punctuation.
li'l shmoe of Dragon's Gate MUD |
|
|
|
|
|