Hi,
I would like to make a game with a textbox, but it doesnt function. The program always says, it gives an error. I had my game loaded up: http://de.geocities.com/bermudagames/index.html. Perhaps can you look, which error I make.
Hello Daniel
I took a look at your game. AGS quits with an error because it expects a different GUI and object (text box) number than you specified. Your GUI and text box numbers are 0.
...
string input;
GetTextBoxText (GUI0, 0, input); // <--- adjust this
ParseText (input);
if (Said("look fence")) {
Display("It's an old wooden fence.");
}
if (Said("eat apple")) {
Display("You'd love to, but you don't have one.");
}
Oh, and to make the parser to work you need to add the following words to the text parser editor: look, fence, eat and apple.
Does it work?
~Cheers