|
shaun.murray Magician
Joined: 23 Jul 2005 Posts: 334 Location: Chicago
|
Posted: 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! |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
|
|
|
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
|
|