In the conditional branch option "Actor Name Applied," is there any way to get the game to disregard case? I.e., to read "Robert," "robert," "ROBERT," and "rObErt" as the same? I'd really rather not write the exact same conditional branch for every single case iteration of the name.
In case anyone's curious... you choose a name to use while the main character is undercover. Later, if a second character discovers that you've chosen his name, he teases you about it. But I'd like him to tease you about it regardless of whether you've capitalized it weirdly or at all. At the moment he'll only tease you if you've capitalized it properly, and, as I mentioned, I don't want to write a whole bunch of conditional branches if I can avoid it.
Any help would be greatly appreciated! Thanks in advance.
Disregarding upper/lower case in actor name
● ARCHIVED · READ-ONLY
-
-
You could add this to the conditional branchs script box:
Code:$game_actors[x].name.downcase == "robert" -
PencilCase27, that works perfectly and completely solves my issue. Thank you so much!!
-
No problem. This one is a little bit shorter and should work, too:
/robert/i =~ $game_actors[x].nameThe difference is probably only academic, but I like the second one more. Yeah, scripters are weird :) -
Shorter is always better with that character limit in the script box, so thanks for that one too :D