Remove characters from Name Input processing

Okay so there is something I need help with...

I want the player to be able to enter some text, however, they are only allowed to use certain characters.
I'm fine with simply using the default "Enter Hero Name" command but there are too many characters/symbols and I don't want the player to be able to use those.

I've tried messing around with Window_NameInput but I just can't seem to figure it out.
This is how I made the name window look:

screenshot.png


Essentially, those are the characters the player should be able to use. No option for lowercase letters, no symbols and so on.
Is there any way to achieve that? Thankful for any help I can get.
Well, you can definitly do it, but that will require a script, no matter what. Eventing something like that is possible but it is really complex and also requires many different script calls. If you ask me the answer is:
Best way -> Use a script that changes your input window
No-Script way -> Use events and pictures with script calls
No-Script nor Script calls way -> good luck with that. It is not impossible but it is VERY boring and also not efficient at all.
Thank you for your reply. I'm not opposed to using scripts at all, but I wasn't able to find a script that does what I need it to do.
I *think* there should be a way to do it by reworking some stuff at Window_NameInput, but I'm not proficient enough at RGSS to know what exactly I need to change for it to work properly.
There is a way to obtain what you need by changing the Window_NameInput class but I have to warn you that many different methods need to be edited in order to do that. First of all you should create your customized table of possible characters (it is the big array at the beginning of the script), after that you have to change every other method that interacts with that array according to the new length of your array and resize your window.

I gave it a fast glance before answering you and I can say it is not too difficult. But it will require time because many methods interact with that.

Of course it would be much easier if you are fine with just removing few characters from your table and leaving other spaces empty. If you wat to resize your window then you have to change the way your cursor works, the way your window handlers work, the given size of your table (which apparently is not passed as a parameter to methods but is instead used as an integer INSIDE every method)...well, it will require you to work around it a bit.

I'd like to provide more help but at the moment I don't have enough time for that and I can only give you few leads on how to achieve it. I am sorry about that 🙁

Original thread: https://forums.rpgmakerweb.com/threads/remove-characters-from-name-input-processing.85868/