static bool Parser.Said(string text)
Checks whether the player typed in TEXT in their input passed to ParseText.
Returns true if it matches, false otherwise.
See the text parser documentation for a more detailed description.
Example:
String input = txtParserInput.Text;
Parser.ParseText(input);
if (Parser.Said("load")) {
txtParserInput.Text = "";
RestoreGameDialog();
}
will bring up the restore game dialogue if the player types "load" in the text parser.
See Also: Parser.ParseText, Parser.SaidUnknownWord
|