Re: alignment

From: Hades (tourach@servtech.com)
Date: 04/26/96


> 
> 
>   Here is what I imagined for my do_sc alignment.
> Is it too bad? 
> remember! I don't know C yet =o)
> 
>  
>   if (GET_ALIGNMENT(ch) >= 10000)
>     strcpy(alinhamento,  "You are a Saint.\r\n");
>   else if (GET_ALIGNMENT(ch) >= 9000)
>     strcpy(alinhamento,  "You are a Sacred Angel.\r\n");
>   else if (GET_ALIGNMENT(ch) >= 7500)
>     strcpy(alinhamento,  "You are an Angel.\r\n");
>   else if (GET_ALIGNMENT(ch) >= 5000)
>     strcpy(alinhamento,  "You are totally Good.\r\n");
>   else if (GET_ALIGNMENT(ch) >= 3000)
>     strcpy(alinhamento,  "You are Very Good.\r\n");
>   else if (GET_ALIGNMENT(ch) >= 351)
>     strcpy(alinhamento,  "You are Good.\r\n");
>   else if (GET_ALIGNMENT(ch) == 350)
>     strcpy(alinhamento,  "You are getting Good.\r\n");
>   else if (GET_ALIGNMENT(ch) >= -349)
>     strcpy(alinhamento,  "You are Neutral.\r\n");
>   else if (GET_ALIGNMENT(ch) == -350)
>     strcpy(alinhamento,  "You are getting Evil.\r\n");
>   else if (GET_ALIGNMENT(ch) >= -351)
>     strcpy(alinhamento,  "You are Evil.\r\n");
>   else if (GET_ALIGNMENT(ch) >= -3000)
>     strcpy(alinhamento,  "You are Very Evil.\r\n");
>   else if (GET_ALIGNMENT(ch) >= -5000)
>     strcpy(alinhamento,  "You are a Devil.\r\n");
>   else if (GET_ALIGNMENT(ch) >= -7500)
>     strcpy(alinhamento,  "You are a Damned Devil.\r\n");
>   else if (GET_ALIGNMENT(ch) >= -9000)
>     strcpy(alinhamento,  "You are totally Evil.\r\n");
>   else
>     strcpy(alinhamento,  "You are Damned Evil like Lucifer.\r\n");
> 
>   sprintf(buf, "%sYour armor class is %d/10, and %s",
> 	  buf, GET_AC(ch), alinhamento);
> 
> 

Do you realuize that for the == 350 lines, the chances of it being == 350
exactly is VERY slim? Morts will prob never ever see those messages.



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