I'm trying to use a Conditional Branch with this script to match Actor 6's name to Actor 1's name.
Let's use Wentz for example. Wentz is Actor 1 in the game. During the Name Input (which is Actor 6), if the player puts in their name as, Wentz, the game wouldn't allow it. I need the match to be case-insensitive to pretty much check any potential capitalization variations that the player might put in, like wENtz or WeNtZ. Same thing would apply for the other Actors in the game as well.
This is the script I tried to write:
(/$gameActors.actor(6)/i.match("$gameActors.actor(1)"));
Every time I try this, the Conditional Branch is skipped altogether. I'm not sure if I just CAN'T do something like this or if I'm genuinely messing up somewhere.
Any thoughts?
Let's use Wentz for example. Wentz is Actor 1 in the game. During the Name Input (which is Actor 6), if the player puts in their name as, Wentz, the game wouldn't allow it. I need the match to be case-insensitive to pretty much check any potential capitalization variations that the player might put in, like wENtz or WeNtZ. Same thing would apply for the other Actors in the game as well.
This is the script I tried to write:
(/$gameActors.actor(6)/i.match("$gameActors.actor(1)"));
Every time I try this, the Conditional Branch is skipped altogether. I'm not sure if I just CAN'T do something like this or if I'm genuinely messing up somewhere.
Any thoughts?