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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Wed Oct 06, 2010 4:04 am   

[3.30] Pattern matches but doesn't fire
 
Code:
<trigger priority="150" id="15">
  <pattern>^   ((%w) (%x)){%s((%w) (%x))|}$</pattern>
  <value>#SAY %1
#SAY %2
#SAY %3
#SAY %4
#SAY %5
#SAY %6</value>
</trigger>


Here is a sample of mud text:

Code:
You know the following athletics crafts:

   practice wall-climbing           practice rope-climbing       
   spar pell-block                  run obstacle-course           
   practice brawling                walk balance-beam             
   dismantle assembled-target       make hay-target               
   practice medium-pierce       
_________________
Discord: Shalimarwildcat
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Wed Oct 06, 2010 5:38 am   
 
It fires, but you're not allowing for the spaces at the end of the line. Put a %s after the (%x) and you'll see it fire.

Charneus
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Wed Oct 06, 2010 1:01 pm   
 
Doh!
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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