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
Scirkhan
Apprentice


Joined: 14 Sep 2007
Posts: 167
Location: aztx

PostPosted: Thu Feb 24, 2011 7:25 am   

need help with {} and predefined variables
 
This one fires:

Pattern: You say, ~"(%w){ me|}~"
Value: #show %1 %2

But this one doesn't:

Pattern: You say, ~"(%w){ (%w)|}~"
Value: #show %1 %2


Why? I am trying to create a trigger with multiple options and default/unsaid options.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Thu Feb 24, 2011 6:05 pm   
 
I'm pretty sure you can't use wildcards in alternation options. You will have to use a full regex trigger instead. You may get away with a string list in that scenario, but I haven't used zMud actively for sometime, so I'm not 100% sure.
_________________
Asati di tempari!
Reply with quote
Erasmus
Wanderer


Joined: 04 Aug 2004
Posts: 82
Location: Philadelphia

PostPosted: Thu Feb 24, 2011 6:21 pm   
 
There is an option in preferences that addresses this. I don't have zMud open in front of me to get the exact box, but it's called "Allow wildcards in string lists" or something like that. It's a check box.
_________________
Erasmus

Last edited by Erasmus on Fri Feb 25, 2011 2:02 pm; edited 1 time in total
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Thu Feb 24, 2011 10:05 pm   
 
Ahh.. you're right. It's under View -> Preferences -> General -> Script Parser.
_________________
Asati di tempari!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Feb 24, 2011 10:52 pm   
 
Try it without the () around the %w in the stringlist.
_________________
EDIT: I didn't like my old signature
Reply with quote
Scirkhan
Apprentice


Joined: 14 Sep 2007
Posts: 167
Location: aztx

PostPosted: Fri Feb 25, 2011 5:32 am   
 
Wow.. Thank you, i'll look at this.
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