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
misaochankun
Beginner


Joined: 01 Feb 2003
Posts: 27
Location: USA

PostPosted: Sun Jan 02, 2005 7:49 pm   

Using a trigger to hilight or color change only 1 word
 
In the examples, a trigger can be written to hilight or color change the entire line if a word you are looking for is inside it.
Can a more advanced trigger be written that only hilights that one word?
It would be far easier to read if possible.
Reply with quote
misterbalrog
Apprentice


Joined: 26 Oct 2004
Posts: 108

PostPosted: Sun Jan 02, 2005 8:16 pm   
 
#cw {word} {color}

That will color only 1 word or phrase and not the entire line.
Reply with quote
misaochankun
Beginner


Joined: 01 Feb 2003
Posts: 27
Location: USA

PostPosted: Mon Jan 03, 2005 4:05 am   
 
Thanks.
To get it to work, I had to do #tr { pattern } { #cw color }
Reply with quote
misterbalrog
Apprentice


Joined: 26 Oct 2004
Posts: 108

PostPosted: Mon Jan 03, 2005 2:19 pm   
 
doing #cw... stuff I wrote in the command input line should of created that trigger by itself. Strange that it did not for you. Older version of zMUD perhaps ? Anyway. Good riddance.
Reply with quote
misaochankun
Beginner


Joined: 01 Feb 2003
Posts: 27
Location: USA

PostPosted: Mon Jan 03, 2005 5:16 pm   
 
Nope, I tried it from the command line and no triggers were created.
I have the latest version, since it auto updates.
It works now though.
Reply with quote
misterbalrog
Apprentice


Joined: 26 Oct 2004
Posts: 108

PostPosted: Mon Jan 03, 2005 8:43 pm   
 
That's something that could potentially cripple you. If more commands act the same way and do not fire off correctly from the command line like the #cw doesn't do for you...

To see that it should do as such and that the syntax is correct, all you have to do is type #cw in the command line and on it or at the end of the command/word Press F1 and it'll show you the command-wizard for the #cw command. It shows 2 entries, one which is the word or phrase you wish to color, and the second the color itself.

That this command does not work, is like I said, possibly crippling you. Any wizard that happens to know any setting that may cause this?
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