Re: do_score

From: ShadowLord (
Date: 04/24/96

On Tue, 23 Apr 1996, Marcelo Valle Moreira wrote:

> Well, now my newbie problem is how to change that "your alignment is 0"
> to "you are neutral"
> I'm having troubles to make a table of alignments so a function would look 
> for the value and check the table for the mesg.

[note: please only use 79 columns]

	You don't need a table at all, nothing like that, just this:

sprintf(buf, "%sYour armor class is %d/10 and your alignment is %s.\r\n",
	buf, GET_AC(ch), IS_GOOD(ch) ? "good" : IS_EVIL(ch) ? "evil" :

	Anyway, I don't remember what alignment is coupled with in the
do_score command, so it's not just a simple "replace" job, but I think you
get the idea.

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