Text checker

So I actually want a script that is called through an event and opens a Text input window. 
After the player Inputs his text the script checks whether the Players input matches a word from a custom made database.

For example in the database I have 5 words, 
DOG, MAGIC, EARTH, TREE, DEATH

when the player types 
MAGIC a certain switch is turned on.

when the player types

DEATH another switch is turned on.

etc...

Also I would need the Database to be expandable...
Personally, I would make a Dummy Actor with no name, then use 'name input processing', to enter test, then have a conditional branch which checks that actors name.

Like so:

x.png


This method isnt perfect, but it works...
Or use hime's simple text input script

Call the script call:

enter_text("Blah blah blah", variable, max_chars)#variable would be the variable the user's choice is stored in (we're going to use 1).do a conditional branch

uxBC7IZ.png


Get it?
How do I change the variable from one to another Variable?
enter_text("Blah blah blah", (insert whatever variable), max_chars)Change the variable parameter.

Example:

enter_text("What is the name of the game?", 5, 12)Whilst 5 is the variable

12 is the max amount of characters.
It says: 
undefined method 'enter_text for #<Game_Interpreter:0x9cd7478>

EDIT: 
I actually didn't see you had a link for a script. 
I will implement the script and tell you again after I test it .
Okay works fine. Thanks for the help...
No problem.

Original thread: https://forums.rpgmakerweb.com/threads/text-checker.41259/