View Single Post
Old February 19, 2009, 15:14   #4
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Well, I got close this time, but it looks like no cigar for me.

I thought I'd added everything I needed for an extra parameter in the monster text, but now it is no longer recognizing the D: line! (Which I don't think I've touched)

Error at line 121 of 'monster.txt'.
Record 1 contains a 'undefined directive' error.
Parsing 'D:He looks squalid and thoroughly revolting.'.


Code:
	/* Process 'D' for "Description" */
	if (buf[0] == 'D')
	{
		/* Store the text */
		if (!add_text(&(r_ptr->text), head, buf+2))
			return (PARSE_ERROR_OUT_OF_MEMORY);
	}

	/* Process 'T' for "Talk" */ 
	if (buf[0] == 'T')
	{
		/* Store the line of speech */
		if (!add_text(&(r_ptr->talk), head, buf+2)) 
			return (PARSE_ERROR_OUT_OF_MEMORY);
	}
Oh well, better luck next scheme.
PaulBlay is offline   Reply With Quote