There is literally only one person on the planet who truly understands this game as it is now, which won't be the case once the story unfolds, so you might as well declare it now. Also, yes, choosing the name yourself is an important part of the experience (had to do it, the opportunity presented was too great to pass upIMHO there should always be a default value. Think about it as help for people with lack of imagination, something that would represent author's true vision, or whatever. Or just something as simple that people like when they can do something, but not that much when they have to do something.
And if alex2011 answers that choosing the name myself is important part of the experience, then I'm officially declaring that I don't understand this game (but I don't see that as problem).![]()
The default is set to "Sensei" but I didn't realize hitting enter without typing anything would overwrite that. I also didn't think anyone would just hit enter without typing anything.
Nope, that's one of those things that just doesn't make sense for the player to do, so the developer, you in this case, can't be faulted when a player actually defies logic and actually presses enter without changing it to their preferred title. I WOULD, however, make the change that Ankoku is suggesting or something similar so this can't happen. It's better to prevent something illogical from happening than to assume something logical will.Yeah that never even occurred to me. I thought people would just type in Sensei if they wanted to stay Sensei. That's why there's always special dialogue for that name, haha
No, no it does not, hence why everyone here still only refers to him as Sensei, or in my case Player Sensei to differentiate the one we play as from the one we took over.I hate this in some other games, "here are five NPCs, name them". And no defaults. Aaarg!
It's not a big problem here, I just used my favourite first name that I use for MCs in games (I think the game doesn't reveal Sensei's real name), it works well when characters should be closer. But it's the same principle, so if the game would automatically use <blank string> = "Sensei", it would be more user friendly.
There usually is some sort of fail safe code that can be implemented to automatically default to some other part of the code. I remember doing it multiple times in Visual Basic and the language Renpy games are in isn't that much different in regards to having the same basics. It should be something he can do as part of an if/else statement or similar.Its more about how coding works.
As far as I know, you basically write the different reactions to, for example, master.ami.
You write "if master.ami = daddy + script for the reaction"
After you are done with the different "ifs" you write "else master.ami = Sensei + she says 'so, like always?'"
What Sel did was putting an if for "ami.master = sensei" and for the "else" he just went on without any reaction, skipping to the rest of the evnt with no scripted reaction.
I dunno if there is a way to code "if left an empty space, ami.master = Sensei" but there should be, since you still need a "no reaction script for when you weite something like "Johnny" or whatever you want to name MC.
I see, it might be best to make this change, though I am also unsure how Renpy differs from standard Python, neither of which I have very much experience with, but both of which I can at least understand on a basic level to an extent when reading.I was referring to Selebus' comment about not thinking people would just hit enter.
Also, as it stands, Selebus uses the else statement to handle when any non-special name is entered. Best way to handle an empty string (AKA the user just hitting enter) in Python would be something like:
This way it just defaults an empty variable to Sensei then goes through the normal check.Python:$ amimaster = renpy.input("Enter a name for Ami to call you...") or "Sensei" $ amimaster = amimaster.strip()
However, I don't know if renpy.input works the same as Python's regular input, so he may need something like
if the "or" operator doesn't work. doing an "if variable:" returns false for an empty variable, true if it has any value other than false. adding the "!" before it reverses that, so an empty variable would return true. Never actually used renpy before, but Python is my preferred language for personal projects.Python:$ amimaster = renpy.input("Enter a name for Ami to call you...") $ amimaster = amimaster.strip() if !amimaster: $ amimaster = "Sensei" # Continue the code as normal from here.
Also also, single = is assignment, double == is comparing in pretty much every language.
Also also also, Selebus, if renpy.input works the same as input, you can save some effort in the future by using
You shouldn't have to strip the string on a seperate line. But again, I've never used Renpy, so apologies if this doesn't work.Python:$ amimaster = renpy.input("Enter a name for Ami to call you...").strip or "Sensei"