Re: [Circle] NEWBIE NEEDS HELP AGAIN! (*sigh*)

From: Joshua Mentzer (galion@bga.com)
Date: 07/31/96


>   if (percent >= 100)
>      sprintf(prompt, "%s%sPERFECT%s|", prompt, CCGRN(d->character, C_NRM),
>              CCNRM(d->character, C_NRM));
>   else if (percent >= 90)
>      sprintf(prompt, "%s%sGREAT%s|", prompt, CCBLU(d->character, C_NRM),
>  CCNRM(d->character, C_NRM));
>   else if (percent >= 75)
>      sprintf(prompt, "%s%sFAIR%s|", prompt, CCWHT(d->character, C_NRM),
>              CCNRM(d->character, C_NRM));
>   else if (percent >= 50)
>      sprintf(prompt, "%s%sBAD%s|", prompt, CCYEL(d->character, C_NRM),
>              CCNRM(d->character, C_NRM));
>   else if (percent >= 30)
>      sprintf(prompt, "%s%sVERY BAD%s|", prompt, CCCYN(d->character, C_NRM),
>              CCNRM(d->character, C_NRM));
>   else if (percent >= 15)
>       sprintf(prompt, "%s%sAWFULL%s|", prompt, CCRED(d->character, C_NRM),
>              CCNRM(d->character, C_NRM));
>   else if (percent >= 0)
>     sprintf(prompt, "%s%sDYING%s|", prompt, CCMAG(d->character, C_NRM),
>              CCNRM(d->character, C_NRM));

   I can see one problem, if a person has 100 percent, it will print 
every prompt, this is probably not what is causing your crash, but it is 
something to take into account for when you figure out what is doing 
that. :)

 -josh

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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