Re: [CODE] get_alignment/get_ac and do_score

From: Chuck Reed (creed@EXIT1.I-55.COM)
Date: 02/07/98


>Does anyone know the value range possible from get_alignment and get_ac?
>And does anyone have a formula to turn that number into an array item so
>that instead of seeing "Your alignment is 300" in score, they would see
>"You are feeling pretty good about yourself" or something similar? Thanks.

just do something like this in do_score where it shows alignment

if (GET_ALIGN(ch) > 80)
   strcat(buf, "You feel naked.\r\n");
else if (GET_ALIGN(ch) > 60)
   strcat(buf, "You are feeling quite unprotected.\r\n");
else if (GET_ALIGN(ch) > 40)
   strcat(buf, "You see where I'm going with this?\r\n");

Increment at your own discression and use whatever message you want.

Chuck


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



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