Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
wizzard1771
Newbie


Joined: 16 May 2002
Posts: 0
Location: USA

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net