Re: Alignment

From: Henrik Stuart (hstuart@geocities.com)
Date: 11/27/01


Greetings,

On Tuesday, November 27, 2001 8:39:48 PM you wrote:
[snip]
>    switch (GET_RACE(d->character)) {
>   case RACE_HUMAN:
>    GET_ALIGNMENT(d->character) = ALIGN_GOOD;
>     return;
>   case RACE_BARBARIAN:
>    GET_ALIGNMENT(d->character) = ALIGN_NEUTRAL;
>     return;
[snip] (next line is end of switch)
>    }
>    switch (GET_CLASS(d->character)) {
>   case CLASS_NECROMANCER:
>    GET_ALIGNMENT(d->character) = ALIGN_EVIL;
>     return;
>    }
> }

> My problem is that when a human necromancer is created, the alignment is set
> to good, when it needs to be set to evil, however humans are a neautral
> class in all respects, but necromancers are an evil class but welcome in all
> towns on our mud, evil, or good.

   When you type return; it actually quits the entire function -
   replace with break. :o)

--
Yours truly,
  Henrik Stuart (http://www.unprompted.com/hstuart/)

--
   +---------------------------------------------------------------+
   | 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/06/01 PST