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 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:
Python:
$ amimaster = renpy.input("Enter a name for Ami to call you...") or "Sensei"
$ amimaster = amimaster.strip()
This way it just defaults an empty variable to Sensei then goes through the normal check.
However, I don't know if renpy.input works the same as Python's regular input, so he may need something like
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.
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.
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
Python:
$ amimaster = renpy.input("Enter a name for Ami to call you...").strip() or "Sensei"
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.