|
glor Beginner
Joined: 25 Feb 2003 Posts: 10
|
Posted: Wed Jul 07, 2004 10:31 pm
having a trigger that fires on 2 diff patterns? |
I'm trying to get a particular state in a trigger to advance onto the next state if it sees one of two things. Either a specific message, like "You are cool", or a message in the form of a pattern like "%w is stupid". I've tried making this the pattern:
{You are cool|%w is stupid}
but that hasn't been working. I know that it works fine if I don't have the %w in there and just fire off of set messages, but is there a way to get it to work like this? |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Wed Jul 07, 2004 11:18 pm |
This can be done, but it requires you tweak around with the regex format for your pattern. I would suggest you provide each of the texts individually to zMud and hit the Convert to Regex button. Note what they are converted to. Then provide the whole text and convert it. You will find that the %w is not substitued as you desire. Refer to your notes and you should be able to setup the correct regex to do it.
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Thu Jul 08, 2004 4:19 am |
%w {are cool|is stupid}
|
|
|
|
|
|