Re: [Races/classes]

From: Peter Ajamian (
Date: 11/04/00

RJ Bean wrote:
> case RACE_HUMAN:
>   SEND_TO_Q("\r\nClasses available to humans: ", d);
>   SEND_TO_Q(class_menu_human, d);
>   if ((GET_CLASS(d->character) = parse_class_human(*arg)) ==
>     SEND_TO_Q("\r\nThat's not a class.\r\nClass: ", d);
>     return;
>   }
> break;

You're not giving the user a chance to input the class.  You are
displaying the class menu and immediately trying to parse the class name
from the entry already in the arg buffer.  What you need to do is send
the menu, change the CON_ state, and then return.  Then in the new CON_
state you can check the arg for the user's response.

If this seems confusing then just look at the way everything else is
done in nanny.

Regards, Peter

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

This archive was generated by hypermail 2b30 : 04/11/01 PDT