Now you will have to set up a defination for buf4, but this is all and you
will use buf4 in place of the GET_RACE(ch) and use a %s when displaying it
in the score funct.
switch (GET_RACE(ch)) {
case RACE_HUMAN:
strcpy(buf4, "Human");
break;
case RACE_ELF:
strcpy(buf4, "Elf");
break;
case RACE_GNOME:
strcpy(buf4, "Gnome");
break;
case RACE_FAIRY:
strcpy(buf4, "Fairy");
break;
case CLASS_UNDEFINED:
strcpy(buf4, "NOT DEFINED");
break;
default:
strcpy(buf4, "ILLEGAL-RACE!!");
break;
}
----------
> From: Daniel <itech2@sonnet.com>
> To: Jonathan Blackhawke <hawke@excalibur.net>
> Cc: Nic Suzor <suzor@bluesky.net.au>; circle@cspo.queensu.ca
> Subject: Re: <Rookie> Displaying Race
> Date: Tuesday, October 15, 1996 8:36 AM
>
> On Tue, 15 Oct 1996, Jonathan Blackhawke wrote:
> > Small problem with this, GET_RACE(ch) is a number (%d). You'll need to
set
> > up a switch command to specifacally set up a buffer to keep the text of
> > what the race is. I can show you an example if you need. :)
>
> Could you please....But I think I have a clue...However, the example
> would be MUCH appreciated.
>
>
> Damion Thaed
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
+-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST