Code: Select all
class GENERATOR:
def genderpickerroll(self):
genderpick = renpy.random.choice(genderpicker)
store.gender = genderpick + ""
def namegeneration(self):
if gender == "M":
name = renpy.random.choice(male_name_list)
surname = renpy.random.choice(surname_list)
store.name = name + " " + surname
if gender == "F":
name = renpy.random.choice(female_name_list)
surname = renpy.random.choice(surname_list)
store.name = name + " " + surname
else:
name = "Error"
surname = renpy.random.choice(surname_list)
store.name = babyname + " " + surname
Why I'm not using if/else for the name choice code, when there are only two options: To test if the code works, for now. I might add other options later.
Why I'm repeating the store.name code: I don't want to break the code. If I could have it only once, that would be nice.
Update: With the gender-neutral names, I have found that it will now read the gender correctly if gender = F. If gender = M, no dice.