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


Joined: 11 Aug 2003
Posts: 3
Location: USA

PostPosted: Fri Jan 14, 2005 7:39 pm   

Changing default text foreground color
 
Is there a way to change the default text foreground color from the command line?

The reason for this question is that I normally use the standard green for that color. When I'm looking for a member of the merchant guild while online the mud I play their level shows up in green when I use 'who short'. In order to find a merchant I end up going into Preferences, changing the default foreground color to gray, checking 'who short' and then changing the color back.

I'm looking to try to change this into a macro. I've looked for ways to change the forground color or change to a to a user defined color scheme and back, but have not had any luck.
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Sat Jan 15, 2005 5:12 pm   
 
What may be easier is to set a trigger to highlight the merchants in a colour other than green.
What is the text that identifies a merchant? Or is it just that there's no specific text for a merchant, and that the only way to identify them is that their level shows in green?

A simple colour trigger may work though
#cw {text to match} {colour}
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
s004geh
Newbie


Joined: 11 Aug 2003
Posts: 3
Location: USA

PostPosted: Sat Jan 15, 2005 5:39 pm   
 
Here is a couple lines of what I see in who short:

[ 10] Alexiusraven [ 22]-Cairne [ 6] Carinde [ 29]-Cullyn
[ 8] Cypher { 90}-Danik [ 15] Dinadan [ 46] Elthan
[ 50]-Evanescent [ 15] Evilild < AW>-Faeryll [ 15] Fjorn
[ 63]-Fuze [ 19] Gremillion [ 15] Hung [ 30] Ixtalis
[ 6] Jacobogoth { 60} Kahuna [ 20]-Kaze [ 50] Kittykitty
[ 10] Kleines [ 16] Kurwa <104> Kyrt [ 15]-Malkais

It's spaced more neatly when I view it in the MUD because I use a fixed width font in Zmud. Any of the people with {} or [] arround their level could be a merchant. I can give the name of the Mud if anyone would like to look at it themselves, but I was trying to avoid the whole shamless plug thing.
Reply with quote
horks
Apprentice


Joined: 20 Jul 2001
Posts: 127
Location: USA

PostPosted: Sun Jan 16, 2005 2:04 am   
 
even if your default text is green, the mud will still send an ansi code to change the color to green. Since the default doesn't have this ansi code, you should be able to trigger off it? (only guessing here, haven't tested it)
_________________
<b>Father Horks</b>
<i>The only problem with computer security, is when you think it exists.</i>
Reply with quote
Falan
Wanderer


Joined: 17 Aug 2004
Posts: 98
Location: OK, USA

PostPosted: Sun Jan 16, 2005 5:21 am   
 
s004geh wrote:
Here is a couple lines of what I see in who short:
Code:

 [ 10] Alexiusraven  [ 22]-Cairne        [  6] Carinde       [ 29]-Cullyn       
 [  8] Cypher        { 90}-Danik         [ 15] Dinadan       [ 46] Elthan       
 [ 50]-Evanescent    [ 15] Evilild       < AW>-Faeryll       [ 15] Fjorn       
 [ 63]-Fuze          [ 19] Gremillion    [ 15] Hung          [ 30] Ixtalis     
 [  6] Jacobogoth    { 60} Kahuna        [ 20]-Kaze          [ 50] Kittykitty   
 [ 10] Kleines       [ 16] Kurwa         <104> Kyrt          [ 15]-Malkais   


Just off the top of my head, make 2 ANSI triggers to fire off the green; one matching the braces and the other for the brackets. Something like

#TR {%e[xxm~[%s%d~]?%w} {#CW orange} "" {color}
#TR {%e[xxm~{%s%d~}?%w} {#CW orange} "" {color}

I imagine it'll be easier to do it via the Settings Editor, but this gives you an idea. Obviously, the [xxm part would be the code for green. Also, I'm not sure about the question mark (?) for matching both a space and a dash (-).
_________________
zMUD 7.05a
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