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
Oddwin
Newbie


Joined: 04 Aug 2011
Posts: 7

PostPosted: Thu Aug 04, 2011 8:41 pm   

Color trigger issue
 
I am having a problem with Cmud.

I am using the Wizard to make a trigger that colors just 1 word on the mud.

So..

I press CTRL-T
Select "Change the color of certain words from teh MUD"
Press Next
Type [Rare]
Press Next
Select the color I want displayed
press Next
Confirm the trigger. #TRIGGER {{[Rare]}} {#CW "11"}
Press Finish

and nothing changes.

Anyone know what I am doing wrong?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Aug 04, 2011 9:12 pm   
 
Umm, stupid question time. Are you generating new lines with the phrase "[Rare]" in it? Triggers are not retroactively applied to lines that appeared prior to the trigger creation, so obviously nothing would change when you press Finish.

Beyond that, you have too many sets of {}. If the phrase you want to color is "{[Rare]}", then you need to use the quote character on both the inner set of {} as well as the [].
_________________
EDIT: I didn't like my old signature
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Thu Aug 04, 2011 10:02 pm   
 
Well, that looks like an issue with the trigger wizard. If there's only one word you want to color, it probably shouldn't wrap it in {}, though it doesn't really affect it. The big problem is that it should be quoting special characters in the pattern. For the time being, this trigger should do what you want:
Code:
#TRIGGER {~[Rare~]} {#CW "11"}

Reply with quote
Oddwin
Newbie


Joined: 04 Aug 2011
Posts: 7

PostPosted: Fri Aug 05, 2011 12:38 am   
 
MattLofton wrote:
Umm, stupid question time. Are you generating new lines with the phrase "[Rare]" in it? Triggers are not retroactively applied to lines that appeared prior to the trigger creation, so obviously nothing would change when you press Finish.

Beyond that, you have too many sets of {}. If the phrase you want to color is "{[Rare]}", then you need to use the quote character on both the inner set of {} as well as the [].


absolutely nothing changes, and I am not writing the trigger, I am using the wizard.. so the program itself is writing that..

Quote:
Well, that looks like an issue with the trigger wizard. If there's only one word you want to color, it probably shouldn't wrap it in {}, though it doesn't really affect it. The big problem is that it should be quoting special characters in the pattern. For the time being, this trigger should do what you want: Code:
#TRIGGER {~[Rare~]} {#CW "11"}


No go :(
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 3797
Location: Pensacola, FL, USA

PostPosted: Fri Aug 05, 2011 11:28 am   
 
Try removing the quotes on the color number #CW 11 should work fine unquoted
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Fri Aug 05, 2011 2:18 pm   
 
Both work fine for me, in CMUD 3.34.... I actually do test all my code before I post anything here, FYI. I would never post something that doesn't work.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23377
Location: Colorado, USA

PostPosted: Fri Aug 05, 2011 6:18 pm   
 
Code:
#TRIGGER {{~[Rare~]}} {#CW 11}

works for me here. Looks like the trigger wizard is not properly quoting special characters like [ and ]

The extra {} don't have any negative impact so it doesn't hurt to use them, especially if you later plan to add additional words to the color list.

Also, nothing will change on the screen until you receive new text with the [Rare] in it.
Reply with quote
Oddwin
Newbie


Joined: 04 Aug 2011
Posts: 7

PostPosted: Sun Aug 07, 2011 2:36 am   
 
Fixed it .. thank you so much gang :P
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