Re: [CODE] Setting alignment upon start

From: flawed (flawed@io.com)
Date: 03/17/01


[snip]
> flawed wrote:
> >
> > At the moment Im using an ethos system from the ftp site. It allows
> > a player to pick an ethos (alignment) good, neutral, and evil.
> > The problem is no matter what the player picks, the alignment
> > always stays at 0.

> You forgot to add 'break' statements.
>
> switch (GET_ETHOS(d->character))
> {
>         case 'a': case 'A':
>                 GET_ALIGNMENT(d->character) = 1000;
>                 break;
>         case 'c': case 'C':
>                 GET_ALIGNMENT(d->character) = -1000;
>                 break;
>         default:
>                 GET_ALIGNMENT(d->character) = 0;
>                 break;
> }


Seems adding break statements doesnt solve anything. regardless of whats
selected, it always returns the alignment to 0. Any other ideas?

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/04/01 PST