Help me how to make case not senstive in MV name input processing

Hello anyone i have problem with my project i use name input processing fitur in Mv nd now i want make it not sensitive case , so i use script for vx i try use in MV nd get error , can you help me fix the script ?

There is script i use

!($game_actors)[11].name=~ /arnold/i).nil?

Note :
11 is number of actor
You can't use scripts from VX in MV since VX uses Ruby and MV uses Javascript, these are two distinct languages!

I don't really understand what do you want to do? I don't know Ruby, which is perhaps why this line: !($game_actors)[11].name=~ /arnold/i).nil seems ununderstandable for me.

Anyway, in MV you can access any actor's name like this: $gameActors.actor(actorId)._name

From this try to do whatever you want, but in Javascript, not in Ruby!
Hello kmph , i see that.s script in tutorial on google so i try it , but it comes with error in my project in MV , they say when i use that.s script it make whatever input in name processing, even it use capslock or not it will be true ,
For example : i make name actor 11 is arnold ,player who playing my game , can input Arnold,ARNOLD,arnolD is will true nd not false when i use that,s script they said , but in MV it.s different , i hope someone can tell me true script for Mv with the same function of script VX i found
Uhm I still don't understand what do you want to achieve?

Name input processing doesn't check or test anything! It only allows the player to rename an actor, not to find an actor by inserting his name!

For example, if you have an actor called Harold, you can allow the player to make him called Andy from now on. Or Thomas. Or sliejfkd. Or qwerty.

If you want the player to select an actor, wouldn't it be easier to use Show Choices instead?
Are you trying to do some password thing like this with name input processing? If you're making the conditional case insensitive then you're going to need javascript regex eg. /arnold/gi

Under the if conditional, choose script and type:
/arnold/gi.test($gameActors.actor(actorId)._name)

It will return true if the actor's name is Arnold, or arNOLD, or aRnolD
Hmm sorry i forget told you something , i use even name input processing nd conditional branch for check if the input player is correct or not it works but i want make the case not sensitive when player input name so i use that.s script in conditional branch tab 4 "script" in tutorial say that script can make case not sensitive whatever player input if it still harold it will be correct not false
Are you trying to do some password thing like this with name input processing? If you're making the conditional case insensitive then you're going to need javascript regex eg. /arnold/gi

Under the if conditional, choose script and type:
/arnold/gi.test($gameActors.actor(actorId)._name))

It will return true if the actor's name is Arnold, or arNOLD, or aRnolD


Hello i will try this regex i hope it works
I hope it works too. Please let me know if it does. If not, post a screenshot of your event page so we can understand what you need better.

*UPDATE* I made a blunder and put an extra bracket before. Have tested in a conditional branch and it works, not case sensitive at all.
Hay dahlys thanks i use that.s script in conditional branch nd work perfecly thanks bro

Original thread: https://forums.rpgmakerweb.com/threads/help-me-how-to-make-case-not-senstive-in-mv-name-input-processing.84877/