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
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: 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
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

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


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
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