Re: <Rookie> Displaying Race

From: Admin of The Keep (dkoepke@california.com)
Date: 10/15/96


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

  A switch statement for this is a waste of time and efficiency, IMHO.
  In whatever way you implement races, you probably gave them names in
  the code; if you followed the manner in which I gave you then the
  table includes the name of the race (Races[GET_RACE(ch)].name), or
  you may  have an array (pc_race_types[GET_RACE(ch)].name).  No switch
  required.


  <*=-+Daniel+-=*>
  "Forgive me father, for I am sin."


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