>Hello all,
>
>
>I'm working on adding races to my mud. I've added the Race modification
>doc by Nick C. for a base, and added quite a few more changes on top of
>that. I've run into a slight snag. I'm not that good of a coder, and
>can't seem to figure this one out.
>
>I've added a clause in do_set that will allow an imp to set the race of
>a given character. Problem is, I have several races that aren't available
>for starting characters. So we have :
>
>in class.c :
>
>int parse_race(char arg)
>{
> arg = LOWER(arg);
>
> switch (arg) {
> case 'a':
> return RACE_HUMAN;
> break;
> case 'b':
> return RACE_FAIRY;
> break;
> case 'c':
> return RACE_UNDEAD;
> break;
> ...
> ...
>
>And as far as I can see, do_set uses this to get the race you're trying to
>set the character to. But, I have several races that won't be parsed.
>I know I could write a second int parse_race function, but I don't want to
>do that. Anyone have any suggestions/pointers?
>
>
>Thanks,
>
> Gabriel
>
>
>
>
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST