Name input used as a password?

Hi, this is my first time posting on these forums and I've had rpgmaker MV for almost two years now but I still feel really new to everything. I want to know if I can use the player's name input as sort of a password. The player inputs their name at the beginning of my game and I'm planning to ask them for it again nearing the end of the game (I want it to impact the ending on whether they get it right or not if that makes sense), I'm not too sure on how to do it. Is there a plugin for it? Can I do this without plugins? If this is too complex then should I just scrap the idea?
The default way to use a passwort is to use one or more "unused" actors to enter and store names that are supposed to be passwords.

However this is usually done against fixed passwords set by the developer (using the conditional branch checking for actor name), not against player-entered names.

You might have to use a script to compare two different actor names depending on what exactly you want to check.
The default way to use a passwort is to use one or more "unused" actors to enter and store names that are supposed to be passwords.

However this is usually done against fixed passwords set by the developer (using the conditional branch checking for actor name), not against player-entered names.

You might have to use a script to compare two different actor names depending on what exactly you want to check.
Thank you, I haven't used scripts yet so I have no idea how to I can use one
That one would not be a full script but a single line in the conditional branch script option, but I don't have the command ready to tell you - you'll have to wait for someone else to do that.
you can use an variable as well

variable x = "" (scriptcall of empty string)
enter actor name (n letters)
set variable y to actor name
if: variable y === variable x
do what you want if correct
else
you do something that incorrect
end

this is the very basic setup, variable name can also be a piece
of paper that set the variable name, so you set this, the empty string
is there so the box is always empty when you enter a name.

but there are other ways as well.
The following should work for seeing if two actors have the same name the following script inside a condition should work:
$gameActors.actor(x).name() == $gameActors.actor(y).name()
Replace x and y with both actor's ids.
@

Woomyand_Veemo​

This video by Driftwood Gaming should help you haven't figured it out yet. It shows you how to use the Name Input as password using either letters or numbers. (Whichever one you plan to use)
Thank you everyone! I managed to figure it out by myself, what I did was have a separate event and set the player's name as a variable and have a second actor use the same name!
I then used another event as my 'password' event and used this script
$gameActors.actor(1).name() == $gameActors.actor(2).name()
to see if the player input was equal to what actor 2's name was (AKA the name that the player input at the beginning of the game)
This thread is being closed due to being solved. If you for any reason you need the thread reopened, report it and let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/name-input-used-as-a-password.157083/