Hi, quick code question.
I'm trying to make a game with a text parser and I was wondering if it was possible to ignore words that the user inputs that are not in the word group? basically I want something that takes an unknown word and sets it's word group number to 0.
here's the pseudo-code
Code: ags
Something like that
Bascally if someone types "look at carpet" and there is no word for carpet the get the message:
"there's not much to see"
instead of:
"Please use another word for carpet"
Thanks for your help
I'm trying to make a game with a text parser and I was wondering if it was possible to ignore words that the user inputs that are not in the word group? basically I want something that takes an unknown word and sets it's word group number to 0.
here's the pseudo-code
if (Parser.SaidUnknownWord()) {
UnknownWord = 0;
}
Something like that
Bascally if someone types "look at carpet" and there is no word for carpet the get the message:
"there's not much to see"
instead of:
"Please use another word for carpet"
Thanks for your help