Unless there's other possibilities, which is the case here, I'm not fan of hard coded changes like this, because it break the game. As example, your mod revert all the changes made by the 0.51 version.
Here, there's really few (if not none) risks that "Alice" and "step-sister" happen to be part of a word, so you can make the change dynamically. This will leave you with few dialog lines to change directly in the source code. So few that they probably can be changed dynamically without real consequences on Ren'py performances.
So, this change "step-sister" to "sister" (with and without the upper case first letter), and "Alice" to "[sis_name]", everywhere in the game without any risk to break the game, without any need to edit the original code, and without any need to update the mod :
Code:
init python:
def aliceName( text ):
def innerChange( m ):
if m.group(0) == "Alice": return sis_name
return "Sister" if m.group(0).startswith( "S" ) else "sister"
return renpy.re.sub( r'(?:Alice|[sS]tep-sister)', innerChange, text )
config.say_menu_text_filter = aliceName
And if there's really few lines to change in addition to this two main changes, you can use this instead :
Code:
init python:
hardChanged = {
"My step-sister Alice and I have lived together for about 2 weeks now. It all started when my father moved out of the country for work and he left me with this big house and more than enough money to support myself.": "Our parents divorced when we were very young due to our father's constant travel for work. I lived with our father while my sister went to live with our mother. We never knew each other growing up." }
def aliceName( text ):
def innerChange( m ):
if m.group(0) == "Alice": return sis_name
return "Sister" if m.group(0).startswith( "S" ) else "sister"
return hardChanged[text] if text in hardChanged else renpy.re.sub( r'(?:Alice|[sS]tep-sister)', innerChange, text )
config.say_menu_text_filter = aliceName
Just update "hardChanged" with the sentences that need to be changed ; I used the first one as example, to show you how it must be done, but there's obviously more.
In the end, the only change needed in the original code source is the line where the player is prompted to choose the name of Alice.
By the way, there's an error. If the player choose the childhood friend path, he will have to read this :
ver1.rpy:47
"During his travels he usually hooked up with women but those relationship always ended when we had to leave again. This means that over the years I've had more than a few mothers and siblings."
Why do you have changed "step-mothers" and "step-siblings" ? It was the right words here. Don't know if you made the error in other places or not.