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
Zakarius
Newbie


Joined: 17 Mar 2003
Posts: 5
Location: Canada

PostPosted: Sun Oct 05, 2003 7:36 pm   

simple one; pattern matches only verbatim
 
Greetings

{^|a}{smile}
I want to use an anchor in a list in a trigger such as above.
The anchor is recognized verbatim but I don't want that.
I want it to trigger on smile and asmile.

and I know this trigger makes no sense but it explains what I want to know.

I don't want to make two triggers.

Can anyone explain/help?
Reply with quote
user0101
Apprentice


Joined: 01 Aug 2003
Posts: 100
Location: USA

PostPosted: Sun Oct 05, 2003 8:48 pm   
 
#TRIGGER {^{asmile|smile} the rest of the trigger string here.}

If you know the exact words you want to trigger, this is a possible method. I think LightBulb mentioned something about how this is actually less efficient than creating two triggers though, which I tend to believe.
Reply with quote
Zakarius
Newbie


Joined: 17 Mar 2003
Posts: 5
Location: Canada

PostPosted: Sun Oct 05, 2003 9:12 pm   
 
Thanks though I didn't explain fully and actually need smile anchored and asmile wouldn't be anchored
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Oct 05, 2003 10:07 pm   
 
If ^ is the first character inside the braces, it's a pattern of the type:
{^string} do not match the specified string
If it's not the first character, it's just another string character.
In either case, it's not an anchor.

You're right, this is a simple one. You already designed a test pattern, so you've probably already tested the pattern and know it doesn't work. Ask your real question about the real pattern you want to match, and include the reasons (beyond "I don't want to") why two triggers would be unacceptable.

If it's the typical list of names and #CW, nobody's ever come up with a satisfactory solution that I've seen and I've been watching people (myself included) struggle with it for years now.
Reply with quote
Zakarius
Newbie


Joined: 17 Mar 2003
Posts: 5
Location: Canada

PostPosted: Mon Oct 06, 2003 1:22 am   
 
Greetings

So two triggers it is :O)

Thank you both for your answers.
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