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
glor
Beginner


Joined: 25 Feb 2003
Posts: 10

PostPosted: 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?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

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


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Jul 08, 2004 4:19 am   
 
%w {are cool|is stupid}
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