Re: [CODE] Setting alignment upon start

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


[snip]
On Tue, 20 Mar 2001, Mike Stilson wrote:
> == snip parse_ethos command ==
>
> You can always try this (utils.h defines GET_ALIGN I think.)


I've managed to get it to work this way. I just hope nothing breaks.

in class.c do_start

  if (GET_ETHOS(ch) == ETHOS_GOOD)
    GET_ALIGNMENT(ch) = 1000;
  if (GET_ETHOS(ch) == ETHOS_NEUTRAL)
    GET_ALIGNMENT(ch) = 0;
  if (GET_ETHOS(ch) == ETHOS_EVIL)
    GET_ALIGNMENT(ch) = -1000;

So far it saves it to the player, the player can quit out and re-enter and
it keeps the alignment the same.

--
   +---------------------------------------------------------------+
   | 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