|
Scirkhan Apprentice
Joined: 14 Sep 2007 Posts: 167 Location: aztx
|
Posted: 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. |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
Erasmus Wanderer
Joined: 04 Aug 2004 Posts: 82 Location: Philadelphia
|
Posted: 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 |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Thu Feb 24, 2011 10:05 pm |
Ahh.. you're right. It's under View -> Preferences -> General -> Script Parser.
|
|
_________________ Asati di tempari! |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Scirkhan Apprentice
Joined: 14 Sep 2007 Posts: 167 Location: aztx
|
Posted: Fri Feb 25, 2011 5:32 am |
Wow.. Thank you, i'll look at this.
|
|
|
|
|
|