Re: Races.

From: Xual (xual@danathara.dhs.org)
Date: 01/28/00


On Fri, 28 Jan 2000, Victor Wennberg wrote:

> I've added the races.txt to my bpl12 circlemud... but when i try to edit
> the score command to show what race i tried: GET_RACE(ch),
> ch->player.race.. but it just gives me some errors. how to ? anyone tested
> this before?

It would help if you included the error messages, as well as the errant code
with your help request.  I can say this much however, you won't display more
than a letter using the GET_RACE() macro, as it points to a single char or
int, and not to a string.  You are probably after the pc_race_types[] array
(or whatever you happened to call it) and should use the GET_RACE() macro as
the subscript. ie:

pc_race_types[(int)GET_RACE(ch)]

--

"Don't smoke the cheap stuff!!!"
        -= Cat's Dad =-


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



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