[newbie] help with adding deity code.

From: Peter d (death_comes_to_all@hotmail.com)
Date: 09/20/02


hi!

i made my own deity code. it's not fance.. i made it in the same fashion as
class and race. i have god_menu, just as class_menu, parse_god()
and the definitions like class system.. all i need help with is make it
blend into the menu code in interpreter.c..

write_to_output(d, "%s\r\nRace: ", race_menu);
         STATE(d) = CON_QRACE;
         break;

  case CON_QRACE:
                load_result = parse_race(*arg);
                if (load_result == RACE_UNDEFINED) {
                        write_to_output(d, "\r\nThat's not a race.\r\nRace: ");
                        return;
                } else
                        GET_RACE(d->character) = load_result;
      write_to_output(d, "%s\r\nClass: ", class_menu);
                STATE(d) = CON_QCLASS;
                break;

  case CON_QCLASS:
    load_result = parse_class(*arg);
    if (load_result == CLASS_UNDEFINED) {
      write_to_output(d, "\r\nThat's not a class.\r\nClass: ");
      return;
    } else
      GET_CLASS(d->character) = load_result;

where do i put case CON_QGOD: ?
without making it crash the mud..
i want it after class selection..
help?



_________________________________________________________________
MSN Hotmail är världens populäraste e-posttjänst. Skaffa dig ett eget konto
du också: http://www.hotmail.com

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT