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
|2e@Lity
Newbie


Joined: 15 May 2002
Posts: 0
Location: United Kingdom

PostPosted: Mon Apr 15, 2002 4:12 am   

Help with Color Triggers?
 
I'm trying to emulate the colour coding the server sends out in my game.

A sample readout is like this....

You notice nothing unusual,GSL
a horned frogGSM
(sleeping),GSL
a grey wolfGSM
(sitting),GSL
a falconGSM
and a richly finished wooden bench with some stuff on it.

GSL is basically highlight on, GSM highlight off.

I can't seem to get it to just highlight the words within the tags without highlighting the whole line....

This is what I have so far...

#TRIGGER {^(%*)GSL} {HighlightOn = 1;BoldTemp = %1;#GAG} "" {case}

#TRIGGER {^(%*)GSM(?)} {#SUB {@BoldTemp %1};BoldTemp = "";#IF {@HighlightOn} {#COLOR white};HighlightOn = 0} "" {case}

Which seems to color the whole line upto and including the word between the tags, but does sort the formatting out(Although I do seem to get an extra 'space' before the word(s) between tags.

Thanks for any help.

-=Insomniac=-
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Apr 15, 2002 2:55 pm   
 
#HI {GSL*GSM}


LightBulb
Vague questions get vague answers
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