Re: <Rookie> Displaying Race

From: Jonathan Blackhawke (
Date: 10/15/96

> for the do_score, you will need to put an extra %s in there somewhere.
> 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
> or whatever. remember that each %s is substituted for the get_?? it
> in the do_who, do pretty much the same thing. between get_class and
> or something, put in an extra %s and down the bottom, in the right order,
> put in get_race(ch)...
> Nic Suzor

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.  :)

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

This archive was generated by hypermail 2b30 : 12/18/00 PST