Re: [NEWBIE]Where i change the color of stats?

From: Mike Stilson (
Date: 09/03/02

On Tue, Sep 03, 2002 at 09:45:22PM -0300, Nikolas wrote:
>I already changed THANKS anyway :-)
>I thinked... thinked... tried tried tried tried... and after a day of try i
>did make this(WORKS!):
>This code will make life/mana/move yellow at 66% and red at 33% and green
>with more than 66%:
>char *make_prompt(struct descriptor_data *d)
[snip code that adds hard-coded ANSI color codes]

Well yeah, that's sure one way of doing it.

If that's the patch/snippet that has prompt_str() then make_prompt()
should be calling that with something like:
if(STATE(d)==CON_PLAYING)) prompt = prompt_str(d->character);
or something along those lines.

If it isn't, I'm not familiar with the snippet you're talking about.
Your way will (and obviously is) working for you, but it makes future
modifications a little bit more involved.


   | FAQ: |
   | Archives: |
   | Newbie List:   |

This archive was generated by hypermail 2b30 : 06/25/03 PDT