Re: [newbie] text based alignment

From: Templar Viper (
Date: 06/27/02

If you plan to use this code more often, you can also make a function that
your alignment in text. For example:

char alignmenttext(struct char_data *ch)
if (IS_NPC)
  return ("Oops.. Looks like you left your alignment back in mobland.");

if (GET_ALIGNMENT(ch) >= 750)
  return ("Saintly");

  return("Oops. Looks like your alignment has not yet been developed.");

Which you can call by:

send_to_char("Align: %s %d" GET_ALIGNMENT(ch), alignmenttext(ch));

Note, this is just written in my email client, so don't expect it to compile

   | FAQ: |
   | Archives: |
   | Newbie List:   |

This archive was generated by hypermail 2b30 : 06/25/03 PDT