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
Michael Nelson
Novice


Joined: 03 Oct 2005
Posts: 36

PostPosted: Mon Oct 03, 2005 9:07 am   

Question: Reguarding color
 
Hi I realise this is probably quite a remedial question for this type of forum but if someone could help me I would much appreciate it.

I would like to be able to use the html style color codes e.g. #CE59CE or $CE59CE inline with the #show or #say function

Much like you can #show %ansi(red)hi %ansi(blue)michael

currently I can only figure out how to use those codes line by line e.g.

#say {hi michael};#color $CE59CE
(the above example would need to be set to an alias or trigger to work properly I believe)

I cant figure out how to change colors inline

anyway if someone could help me I would appreciate it feel free to e-mail me
sinnerou@gmail.com
Reply with quote
Simucal
Beginner


Joined: 26 Sep 2005
Posts: 13

PostPosted: Mon Oct 03, 2005 3:26 pm   
 
I would use an open MXP command such as:

#say Here is a test: ~<color #CE59CE>hi~</color> ~<color #663473>michael~</color>

Hope this helps!
Reply with quote
Slaem
Apprentice


Joined: 20 Sep 2005
Posts: 135

PostPosted: Tue Oct 04, 2005 8:27 am   
 
Did you try %colorname?
_________________
Show your love.
Support Zugg Software!
Donate to zugg@zuggsoft.com with PayPal Send Money.
Reply with quote
Simucal
Beginner


Joined: 26 Sep 2005
Posts: 13

PostPosted: Tue Oct 04, 2005 1:08 pm   
 
lol, Slaem... re-read his question. He wants to be able to use HTML color codes, which is why I suggested the open MXP command
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Oct 05, 2005 12:01 am   
 
Simucal has the right of it. You can also use the #MXP command just like #SAY or #SHOW; #ECHO has a slightly different behavior. Using #MXP has the benefit that it preforms less parsing of the <> in the command allowing you to more readily type such things without the use of extra tildes (~). Also I believe the MXP specification supports both # and $ for signalling a hexadecimal value. You may need to use $ in scripts where the syntax checker is involved. In any case proper use of quotes can often make the syntax checker happy:
#MXP "Here is a test: <color #CE59CE>hi~</color> ~<color #663473>michael</color>"
_________________
The only good questions are the ones we have never answered before.
Search the Forums
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