Making Name Input Not Case Sensitive

Is there a way to make name inputs not case sensitive? Im using it for a password. I stumbled upon this, but I'm not sure I 100% understood.


"


First, let the player name the Actor you want (in this example it's Actor 4).


Then, on page three of event commands you have something called "Script" towards the end of the list open it and use this (Replacing 5 with a new actor you don't use anywhere else, and 4 with the actor the player is naming):


$gameActors.actor(5).setName($gameActors.actor(4).name().toUpperCase());


This tells the program to change Actor 5's name to the same name as Actor 4 and then put it into all caps. From there, when you use your conditional branch, check for the names you want against Actor 5's name and type them in all caps. This way, no matter how the player decides to write the name, it will check an all caps version against an all cap version.


Actor 4 will remain the way the player typed it, even if they typed it as "RaLpH"


"


Thanks
The easiest way is probably just to look into regular expressions in Javascript 
lol - regular expressions and easy are words that don't belong in the same sentence.


What you have above will work fine.  It's letting the player put a name in for actor 4, and then converting that name to upper case for actor 5.  For a password situation, you would just create two additional actors in the database and not give them names, and use the id of those two actors instead of 4 and 5.  Then in the conditional branch, you'd see if Actor 5's name (or whatever actor you used when converting to upper case) is equal to the correct password, and you would put that password in upper case.
I suppose I should replace "easiest" with "efficient" lol
As much as I hate to admit this, I'm still a bit confused. If someone could walk me through it, i would really appreciate it.


Thanks!
On your Actors tab, create two additional actors but leave all their details blank.  They will never be added to your party.


On the event, ask for the password, and use the Name Input Processing command.  Choose the first of your "extra" actors.


Add a Script command and type the following line into the script box.  Instead of 4, put the id of the actor you used in the above command.  Instead of 5, put the id of the other "extra" actor:


$gameActors.actor(5).setName($gameActors.actor(4).name().toUpperCase());


Add a Conditional Branch, go to page 2 and click the Actor button.  Choose the second "extra" actor from the dropdown list.  In Name, type your required password in capital letters.


If you want one thing to happen when they get it right, and another when they get it wrong (like just a message that they got it wrong), check the Create Else Branch box.  If you don't want anything to happen when they get it wrong, leave that box unchecked.


That's it - now you just fill in the 'true' and 'false' parts of the conditional branch with what you want to happen when they get it right or wrong.
Thanks so much!
2 additional actors including the one I want to use as a placeholder for the password, or the placeholder and two others?


Thanks
You are using an actor to store the real password?  Why?
Following this tutorial:


http://blog.rpgmakerweb.com/tutorials/password-input-using-actor-names/


Thanks
You don't need that (and it would have been good if you'd posted that in your very first post so we knew you were trying to follow a guide rather than figure it out on your own).


Ignore the tutorial.  Everything I gave you in the step-by-step above will do what you want.
Okay, I just did exactly as you said, but now it only works when I type the password in all caps.


Thanks
When you do the conditional branch to see if the actor name is set to the password, you have to type the password in all caps.  But when the player enters the password, they can use any combination of upper or lower case.  The goal is to accept what the player enters, as long as the letters are correct.  This does require YOU to enter the password in the conditional branch in all caps.


If you're saying the player has to enter the password in all caps, then something hasn't worked properly.  In that case, please show a screenshot of your Actors tab and of your event.  Use alt+printscreen to take the screenshot, to ensure it includes all the information I need to see.






Thanks
If Name of #3, not #2 - you want to compare the real password to the upper case version of what they entered.
Perfect, Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/making-name-input-not-case-sensitive.71376/