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
Loftaris
Adept


Joined: 24 Aug 2004
Posts: 277

PostPosted: Sun Oct 10, 2010 8:13 pm   

Help with a trigger
 
Cmud Pro 3.26
Windows 7

I have the following trigger, but I need to figure out how to make it ignore a specific name.

Code:
<trigger name="tell1" priority="9530" regex="true" id="953">
  <pattern>^(?:>\s|)(You tell \w+|\w+(?   <value>:Tells:#sayprompt {%cr%ansi( bold, blue)""%ansi( bold, magenta)"["%1"]: "%ansi( bold, grey)%2}</value>
  <trigger type="Loop Pattern" regex="true" prompt="true">
    <pattern>^ +(?:LT\:)?(.*)$$</pattern>
    <value>:Tells:#print {%ansi(bold,grey)" "%1}</value>
  </trigger>
</trigger>


I have YOURPET a variable of Tibban, but it doesn't work. I've tried a few things but nothing I do works...

Does anyone have any suggestions?
Reply with quote
Moo
Apprentice


Joined: 10 Apr 2009
Posts: 145

PostPosted: Sun Oct 10, 2010 9:00 pm   
 
One way would be to have a "You tell Tibban" trigger with a lower priority, and set it to "stop further processing". It wouldn't need to actually do anything in the trigger, but it would prevent your existing trigger from firing.
Reply with quote
Loftaris
Adept


Joined: 24 Aug 2004
Posts: 277

PostPosted: Sun Oct 10, 2010 9:06 pm   
 
ROCK ON! Hey that was ingenious, thanks hehe.
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