Re: <Rookie> Displaying Race

From: Nic Suzor (suzor@bluesky.net.au)
Date: 10/15/96


At 11:17 PM 10/14/96 -47900, you wrote:
>I have set up the race code per the instructions in the race.doc; 
>however, I can not get the SCORE command to display the race of a 
>character.  I put the GET_RACE(ch) in with the GET_NAME(ch) and 
>GET_TITLE(ch) so that it would display the Name Race title....but it 
>didn't work.  the effect that I am looking for is that when you type SC 
>or SCORE you see a line like this:
>
>  "Damion the Human Warrior" or better yet....
>  "You are proud to be a(n) Elf"
>
>I am also in the process of trying to put the race on the WHO listing...I 
>want it to look like:
>
>         [1 Wa <Human>]  Chains the mighty Warrior.
>
>Anyone caring to help me out would be much appreciated.
>
>Oh, and I tried to set my Paladin's alignment to 1000 at start up but it 
>didn't work, can someone suggest some code....I tried:
>
>           case CLASS_PALADIN;
>           GET_ALIGNMENT(ch) = 1000;
>            break;
>
>But it didn't work.....any ideas??
>
><Damion Thaed -=- Implementor of DungeonMUD, Modesto's first dial-up MUD>

for the do_score, you will need to put an extra %s in there somewhere. right
now, it will look like this:

sprintf(buf, "%s This ranks you as %s %s (level %d).\r\n", buf,
        GET_NAME(ch), GET_TITLE(ch), GET_LEVEL(ch));

change it to:

sprintf(buf, "%s This ranks you as The %s, %s %s (level %d).\r\n", buf,
        GET_RACE(ch), GET_NAME(ch), GET_TITLE(ch), GET_LEVEL(ch));

this will print out: This ranks you as The Human, Damion the great (level 1)
or whatever. remember that each %s is substituted for the get_?? it performs...

in the do_who, do pretty much the same thing. between get_class and get_name
or something, put in an extra %s and down the bottom, in the right order,
put in get_race(ch)...

Nic Suzor

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