NEWBIE CODE: I need some help with color prompts...

From: Stryfe (likens19@MO.NET)
Date: 06/24/96

Hello everyone.  This being my first message, I hope that it gets through 
to everyone ok.  Here is my problem (actually it is two-fold): a.)I would 
like to add conditional color to my prompt (ie. green, yellow and red) 
but I haven't been able to get it to compile and b.)Today is the first 
day I have ever seen a piece of C code in my life, so I am still a bit 
shaky when it comes to the language structure.  Here is what I have so far:

    if (PRF_FLAGGED(d->character, PRF_DISPHP))
      if (GET_HIT(d->character) >= ((GET_MAX_HIT(d->character) / 3) * 2))
        sprintf(prompt, "%s%s%d%sH", prompt,
	CCGRN(??????, C_CMP), CCNRM(??????, C_CMP),
      else if ((GET_HIT(d->character) < ((GET_MAX_HIT(d->character) / 3) *
        2)) && (GET_HIT(d->character) >= ((GET_MAX_HIT(d->character) /
          sprintf(prompt, "%s%s%d%sH", prompt, 
	  CCYEL(??????, C_CMP), CCNRM(??????, C_CMP),

Now, my question is this:  What the heck am I supposed to put in place of 
the ??????s ?  And is it necessary to also have the C_NRM and C_SPR 
conditions in place as well?  Please help me out because I am totally out 
of ideas.  Thanks for your time.


This archive was generated by hypermail 2b30 : 12/18/00 PST