Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
masterkrueger
Wanderer


Joined: 24 Jan 2010
Posts: 65
Location: Hamburg

PostPosted: Wed Jun 16, 2010 6:36 pm   

Pattern for @List with space
 
Hi Guys,

i can't get a simple trigger to work perfect.
My trigger fires for all movementkeywords like
@movekeywords = north|south|...

the problem is i really wanna match east not southeasy.

Code:
<trigger name="ColoredExits" priority="1860" case="true" id="453">
  <pattern>{@moveshortkeywords}</pattern>
  <value>#CW white</value>
</trigger>


I tried to enter a space before @movekeywords but it did not work.

Any idea? Thanks!! :)
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Wed Jun 16, 2010 6:50 pm   
 
Just change it so the pattern looks like this:
Code:
%q{@moveshortkeywords}%q


%q is effectively a border check. If it's not a space or punctuation, then it doesn't match.

Charneus
Reply with quote
masterkrueger
Wanderer


Joined: 24 Jan 2010
Posts: 65
Location: Hamburg

PostPosted: Wed Jun 16, 2010 7:05 pm   
 
Works perfect thanx :)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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