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


Joined: 24 Jan 2003
Posts: 2
Location: USA

PostPosted: Fri Jan 24, 2003 11:16 am   

Highlighting Specific Words
 
Hiya Everyone,

I have a quick question:

Is there a way to highlight a specific word or group of words?

For example:

I'd like to have the word massacres show as red in the line.

Soandso massacres Barney with his slashes.

Is this possible, if so, please tell me how.

Thanks in advance

An intelligent man speaks and then listens, a wise man listens and then speaks!
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Jan 24, 2003 12:57 pm   
 
Make a trigger that uses #CW:
#TRIGGER {massacres} {#CW red}

Kjata
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Fri Jan 24, 2003 6:52 pm   
 
For a group of words:

#TRIGGER {{massacres|eviserates|smashes}} {#CW red}

Similarily:

#VARIABLE Damage_Messages {massacres|eviserates|smashes}

#TRIGGER {{@Damage_Messages}} {#CW red}


Ton Diening
Reply with quote
s0ccaman
Newbie


Joined: 24 Jan 2003
Posts: 2
Location: USA

PostPosted: Fri Jan 24, 2003 7:33 pm   
 
Hi,

Thanks, I'll try it, for the groups of words though I meant something like:

Soandso slashes Barney extremely hard.

or

Soandso slashes Barney very hard.

I suppose I could set up a trigger similar to the one you showed for each individual word, but I would rather have a seperate color for "extremely hard" and "very hard".

Thanks again, :)

An intelligent man speaks and then listens, a wise man listens and then speaks!
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Jan 24, 2003 7:50 pm   
 
For this case you use #COLOR which colors the whole line instead of only the matching portion:
#TRIGGER {%w slashes Barney %w hard.} {#COLOR red}

Kjata
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