Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: LRH on Mon 30/03/2009 20:11:59

Title: Trouble with enhanced text parser
Post by: LRH on Mon 30/03/2009 20:11:59
I'm using the enhanced text parser module and I'm having some issues, I wonder if anyone can help? You see, I'm not sure how this module wants me to code new commands. You start with only "look" and "get" it seems (besides save, load, etc, etc.) And whenever I try to add a line of code to the room script saying something like

Else if (Parser.Said("eat sandwhich"))
{
Display("I don't have a sandwhich, idiot.");
}

When I go in game and write "Eat sandwhich" it will say something along the lines of "Use another word besides 'eat'"

It just cuts directly to the NoMatch function. How can I fix this?
Any help is very, very much appreciated.
Title: Re: Trouble with enhanced text parser
Post by: Khris on Mon 30/03/2009 22:36:44
You have to add "sandwich" to the word list in the Text Parser pane first.
Title: Re: Trouble with enhanced text parser
Post by: LRH on Mon 30/03/2009 22:52:22
*slaps forehead*
T_T
Thank you, it works now.