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


Joined: 24 Nov 2011
Posts: 9
Location: United States

PostPosted: Tue Jul 18, 2017 2:23 am   

#show and #color
 
I have a trigger that does a #show upon receiving certain text.

I want to color the output of the #show a specific color.

I do:

#show blah blah
#color blue

and it prints the #show but colors the line that triggered the trigger instead of the #show output.

I tried using #cw and #say instead, and it didn't help.

Any suggestions?
Reply with quote
mikeC130
Wanderer


Joined: 03 Jul 2006
Posts: 59

PostPosted: Tue Jul 18, 2017 5:40 pm   
 
You could try including the color command in the command itself.

#SAY %ansi(blue) blah blah

This is per the CMUD command reference for #SAY. It should work for #SHOW as well.

http://forums.zuggsoft.com/modules/mx_kb/kb.php?page=3&mode=doc&k=2550

Mike
Reply with quote
rabek
Newbie


Joined: 24 Nov 2011
Posts: 9
Location: United States

PostPosted: Wed Jul 19, 2017 8:58 am   
 
This does seem to work, thank you!

Is there a way to use non-ansi colors with #SHOW or #SAY? %ansi doesn't seem to read it properly. I tried using %color and %colorname, and that also didn't work.
Reply with quote
shalimar
GURU


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

PostPosted: Sun Jul 23, 2017 7:33 am   
 
You can use hexadecimal colors if you know the code, just use #RRGGBB in place of the color word

for example:

#SAY {<color #FF5733>some text</color>}
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
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