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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Luhta
Beginner


Joined: 11 May 2003
Posts: 25
Location: USA

PostPosted: 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
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: 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.
Reply with quote
Luhta
Beginner


Joined: 11 May 2003
Posts: 25
Location: USA

PostPosted: 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?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Dec 19, 2003 5:47 pm   
 
#PCOL

#TR {^You sing '(*)'} {#PCOL bold,yellow %x1}
Reply with quote
Luhta
Beginner


Joined: 11 May 2003
Posts: 25
Location: USA

PostPosted: 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?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Dec 19, 2003 10:54 pm   
 
You need to delete all the old #COLOR triggers you made with your original script.
Reply with quote
Luhta
Beginner


Joined: 11 May 2003
Posts: 25
Location: USA

PostPosted: Sat Dec 20, 2003 7:10 am   
 
ok done, I'm still getting an all yellow line though
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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.
Reply with quote
Guede
Wanderer


Joined: 30 Nov 2003
Posts: 65
Location: United Kingdom

PostPosted: 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-
Reply with quote
Luhta
Beginner


Joined: 11 May 2003
Posts: 25
Location: USA

PostPosted: Sat Dec 20, 2003 6:19 pm   
 
Ahh, that's what the problem is 6.66 here, thanks for the help all
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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