|
Luhta Beginner
Joined: 11 May 2003 Posts: 25 Location: USA
|
Posted: Fri Dec 19, 2003 5:52 am
trigger is wierd with paren's in it |
Trigger:
^You sing '(*)'
Code:
#col {%1} yellow,bold
#cap Communication
Match:
You sing 'er ignore this again trying to fix smiley trigger problem in sing trigger ignore this... :)'
Problem: (Dialog box with the following information presented:)
Error in trigger pattern:
er ignore this again trying to fix smiley trigger problem in sing trigger ignore this... :)
----
It appears to get crazy whenever a ( or ) is on the line. My question is what can cause a trigger message like that? and how can I fix or work-around it |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Fri Dec 19, 2003 7:35 am |
Trigger:
^You sing
Code
#COLOR yellow,bold
#CAP Communication
Just use the "#CO attribute" usage?
The usage of "#CO [pattern] attribute" is to create a color trigger. |
|
|
|
Luhta Beginner
Joined: 11 May 2003 Posts: 25 Location: USA
|
Posted: Fri Dec 19, 2003 5:33 pm |
ok then how can I change the color of just the stuff sung and not the "You sing", without creating a new trigger?
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Dec 19, 2003 5:47 pm |
#PCOL
#TR {^You sing '(*)'} {#PCOL bold,yellow %x1} |
|
|
|
Luhta Beginner
Joined: 11 May 2003 Posts: 25 Location: USA
|
Posted: Fri Dec 19, 2003 7:53 pm |
hmm odd, contrary to the help file syntax, that still results in an all yellow line, am I missing something?
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Dec 19, 2003 10:54 pm |
You need to delete all the old #COLOR triggers you made with your original script.
|
|
|
|
Luhta Beginner
Joined: 11 May 2003 Posts: 25 Location: USA
|
Posted: Sat Dec 20, 2003 7:10 am |
ok done, I'm still getting an all yellow line though
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Dec 20, 2003 4:26 pm |
Sorry, I can't help you then. The trigger works.
Input on command line:
#TR {^You sing '(*)'} {#PCOL bold,yellow %x1}
#SHOW You sing 'er ignore this again trying to fix smiley trigger problem in sing trigger ignore this... :)'
Output on screen:
You sing 'er ignore this again trying to fix smiley trigger problem in sing trigger ignore this... :)'
If you get all yellow, it's because you have something else which makes the green portion yellow. |
|
|
|
Guede Wanderer
Joined: 30 Nov 2003 Posts: 65 Location: United Kingdom
|
Posted: Sat Dec 20, 2003 6:16 pm |
Hi,
Lightbulb's trigger will work (I used a similar one myself for something for long enough) BUT if you're using the 6.66 beta there's a bug with PCOL and it's working the same way as #COLOR and colouring the whole line. (There's something about it on the BETA forum - sorry I've not done a link)
It's on the fix list for the next version. Stay with it though. :)
HTH
-G- |
|
|
|
Luhta Beginner
Joined: 11 May 2003 Posts: 25 Location: USA
|
Posted: Sat Dec 20, 2003 6:19 pm |
Ahh, that's what the problem is 6.66 here, thanks for the help all
|
|
|
|
|
|