|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Tue Jul 15, 2008 1:02 am
Can someone tell me why this doesn't match? |
<trigger priority="12490" case="true" verbatim="true" regex="true" id="1249">
<pattern>^\{coords\}-1</pattern>
<value>#GAG
#IF (@previouscontinentnumber != -1) {
#VARIABLE previouscontinentnumber -1
#CLR CONTINENTS
#LOOP 5 {#WINDOW CONTINENTS %cr}
#WINDOW CONTINENTS " "%ansi( red, bold)Continent view not currently enabled within areas.
}</value>
</trigger>
It SHOULD match {coords}-1, but it doesn't. Even changing it to ~{coords~}-1 for zscript triggers, it still doesn't match...
Charneus |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Tue Jul 15, 2008 1:03 am |
Never mind... seems that it didn't want to match on case sensitive as well as verbatim...
Charneus |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Jul 15, 2008 4:37 pm |
Verbatim overrides the Regular Expression option. When Verbatim is checked, then the pattern is tested against the MUD without any parsing or wildcards. So your pattern would only match the test: \{coords\}-1 from the MUD. The only special syntax checked by a Verbatim pattern is the ^ at the beginning or $ at the end for anchoring. If you get rid of the \ characters, then it would work as a verbatim trigger.
|
|
|
|
|
|