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
shaun.murray
Magician


Joined: 23 Jul 2005
Posts: 334
Location: Chicago

PostPosted: Wed Jan 20, 2010 6:49 pm   

weird trigger question.....
 


so that blue line (the one under You are currently PK-able.) is what i want to trigger off of.... its going to start/stop my capture. so, i'm kinda stuck. here is what i have right now.

Code:
<trigger priority="15520" ansi="true" newline="false" prompt="true" id="1552">
  <pattern>^(&79x)$</pattern>
  <value>#say got it.....</value>
</trigger>


my thinking is that the &nn will give me 79 spaces (pretty sure its 79) and the %x will give me my non-white spaces. but its not working. so, i'm kinda unsure how to proceed. any help is greatly appreciated again! TIA!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Wed Jan 20, 2010 10:47 pm   
 
&XX does not equate to "fixed length of whitespace", it equates to "whatever the next XX characters are, regardless of content". So basically your trigger was looking for a pattern of "whatever the next 79 characters are, regardless of content, with a lowercase letter x as the 80th character".

Since you cannot limit the matching power of the fixed-length pattern you either need to remove the x or figure out a different way to describe what you're looking for.

Obviously you have ansi codes, so you'll need %e~[%d;m to match those. You also have whitespace, so " " or %s is needed. You also have letters and symbols, so a list of those letters/symbols or %x (which makes %d unnecessary) is needed. What I would do is this:

^ ansi code for the blue color[%e%x%s]

The ansi code, when pasted into the pattern, will have a format of %e~[%dm and possibly a semicolon in there.
_________________
EDIT: I didn't like my old signature
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