Hello, I want to make a door that opens if you answer it correctly.
The answer (which player types in) is going to be a sentence. Let’s say the correct one is “It’s forbidden to go outside of the city”. But I would like to consider the answer as correct if player types a similar sentence like “restricted to go out”.
I don’t think it’s possible unless you envisage all the things the player might enter, which is impossible.
How can you code something like “If the meaning of the phrase is virtually the same, then…”?
Only a neural network of some kind could do that. The straightforward computer logic can’t.
Thank you for replying.
If so, I would like to think more simple. The correct answer is “It is forbidden to go outside of the city” I consider it correct if player types in “forbidden” and “outside” at the same time. Do you think this is possible?
Kind of; save the whole phrase as a string. Then you can take the player’s input and break in into array of strings separated by the space, and then you can check if the initial phrase contains these words.
Or let’s say you make two string arrays with multiple synonyms of “restricted” and “outside” respectively, and check if the player’s phrase contains at least one of each.
Woah, thank you for taking the time and explaining to me. I am a beginner on blueprint stuff. It will take some time to implement to my project because I need to figure out how to do those things you mentioned