Even so, the player is still allowed to input the name in a weird case like "SerA" or "sERA" since those names are not listed. While it's not very likely that someone will write their name in such a weird way, there is that possibility.
HOWEVER
I just realized there is a faster way of fixing this, using the capitalize() method from Python, this method returns a copy of the string with its first character capitalized and the rest lowercased. ("nAMe" -> "Name")
So you can try changing it to
Code: Select all
if povname.capitalize() == "Sera":
"???" "hahaha, um....please don't."
"Please choose a different name."
jump naming
elif povname.capitalize() == "Emery":
"???" "T-Thank you!"
"???" "..."
"???" "Change it immediately."
"Please choose a different name."
jump naming
etc, which is a lot shorter since you no longer need to worry about names like "emery" or "EMERY". (Sorry for bringing this solution until now)
Another option is to add this method right after the name input:
Code: Select all
$ povname = renpy.input("Enter your name. If you don't put one, a name will be chosen automatically.") or "Alex"
$ povname = povname.strip()
$ povname = povname.capitalize()
This last option is useful if you want to "generalize" the name of the player (making the first letter uppercase and the rest lowercased)
If you decide to use this after the name input, then your code after the input should look like
Code: Select all
if povname == "Sera":
"???" "hahaha, um....please don't."
"Please choose a different name."
jump naming
elif povname == "Emery":
"???" "T-Thank you!"
"???" "..."
"???" "Change it immediately."
"Please choose a different name."
jump naming
The only difference from these two options is that in the first one your players will be allowed to set names like ALEX, eric, jOhN, MIchAEl, etc,
and in the second option the player's name will always look "normal" (like Alex, Erick, John, Michael, etc)
It's up to you what you decide to use.
Again, excuse me for bringing this until the last moment, my brain is not working too well today