 |
masterkrueger Wanderer
Joined: 24 Jan 2010 Posts: 65 Location: Hamburg
|
Posted: 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!! :) |
|
|
|
 |
charneus Wizard

Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: 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 |
|
|
|
 |
masterkrueger Wanderer
Joined: 24 Jan 2010 Posts: 65 Location: Hamburg
|
Posted: Wed Jun 16, 2010 7:05 pm |
Works perfect thanx :)
|
|
|
|
 |
|
|
|