- Nov 20, 2018
- 11,987
- 17,789
I found an incest patch for a game that does a find-and-replace in text as you go along. Here is a small part of it; Julia would be the mother and Lucy the sister.
The problem with this is that you end up with add instances of replacement that don't make sense:
Python:
init 1040 python:
def nameChange(txt):
if "sJulia" in txt:
sJulia.name = "Mom"
return txt.replace("sJulia","sJulia")
elif "Julia" in txt:
return txt.replace("Julia","Mom")
elif "sLucy" in txt:
sLucy.name = "Sis"
return txt.replace("sLucy","sLucy")
elif "Lucy" in txt:
return txt.replace("Lucy","Sis")
else:
return txt
config.say_menu_text_filter = nameChange
- A character related to neither the MC nor Julia will say "Mom", when "your Mom" or just "Julia" would make more sense. For example, a character named Isabella says, "I feel something special for Mom. I always took care of her." But she's not Isabella's mother.
- An extended family member uses a term with his own wife that is really used for extended family (and someone in a higher position of respect within the family). For instance, a character referred to by the MC as "Aunt Emma" is getting called the same by her husband, Uncle Walter. Since she's Walter's wife, Walter would never refer to her as his aunt, but he does with the current text replacement code.
- If Ren'Py finds that a character currently speaking refers to Julia and is either the MC or Lucy, have them use "Mom".
- If a character currently speaking is Walter, have him use "Emma" instead of "Aunt Emma".