(newbie) character creation

From: matt (mbrodie@ihug.com.au)
Date: 10/26/01


hi i've added character creation into a mud i'm making
i've added it into the do_nanny( ) function and everything
works fine except for a problem i'm having

i have it so you choose your
eye color
hair lenght
hair color
ki color

STATE(d) = CON_QHAIRL;
SEND_TO_Q("\x1B[1;33m_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_\x1B[0;0m\r\n"
"\x1B[1;31mWhat is your hair length?\x1B[0;0m\r\n"
"\x1B[1;33m_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_-~-_\x1B[0;0m\r\n"
"\x1B[1;33m(\x1B[1;36m1\x1B[1;33m)\x1B[0;0m I have very short hair.\r\n"
"\x1B[1;33m(\x1B[1;36m2\x1B[1;33m)\x1B[0;0m I have short hair.     \r\n"
"\x1B[1;33m(\x1B[1;36m3\x1B[1;33m)\x1B[0;0m I have medium length hair.\r\n"
"\x1B[1;33m(\x1B[1;36m4\x1B[1;33m)\x1B[0;0m I have long hair.      \r\n"
"\x1B[1;33m(\x1B[1;36m5\x1B[1;33m)\x1B[0;0m I have very long hair, \r\n"
"\x1B[36mHair Length\x1B[0;0m:\r\n", d);
    break;
   
 case CON_QHAIRL:
    switch (*arg) {
    case '1':
      d->character->player.hairl = HAIRL_V_SHORT;
      break;
    case '2':
      d->character->player.hairl = HAIRL_SHORT;
      break;
    case '3':
      d->character->player.hairl = HAIRL_MEDIUM;
      break;
    case '4':
      d->character->player.hairl = HAIRL_LONG;
      break;
    case '5':
      d->character->player.hairl = HAIRL_V_LONG;
      break;     
    case'6':
      d->character->player.hairl = HAIRL_BALD;
      break;
     default:
      SEND_TO_Q("That is not a hair length.\r\n", d);
      return;
    }

now when someone chooses 6... bald... i want it so that it skips
QHAIRC (hair color) and goesto QKI (ki color)... i've tried many things
so far but all i keep getting is a blank after you choose 6...
could anyone suggest what i could do to make it work as it's really
starting to bug me

thanx

matt

P.S Sorry about the code being long.. if it's too long anyway

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