If you plan to use this code more often, you can also make a function that returns 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"); else 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 bug-free whatsover. -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT