Re: [Circle] NEWBIE: color commands.

From: Niese-Petersen (
Date: 07/25/96

On Thu, 25 Jul 1996, Terry Valladon wrote:

> ok, I put this in my comm.c under make_prompt, and I #include "screen.h" or
> whatever, I paster the include right from the color.doc.
>       if (PRF_FLAGGED(d->character, PRF_DISPMANA))   
>       sprintf(prompt, "%s%s%dM%s ", CCRED(ch, C_CMP), prompt,
>       GET_MANA(d->character), CCNRM(ch, C_CMP));

Just change your ch to d->character  .. make_prompt get a variable d of
descriptor_data structure.  And only way from there to get the character
data (char_data structure) is the pointer d->character ....

Hope that helps.

Erik Niese-Petersen
Aka Quint The typo God
Realms of Darkness IMP [ 6666. Playertesting]

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

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