- Dec 2, 2018
- 72
- 3,050
TheNeuronProject
To whoever made the ipatch (If someone knows who made the patch, tell him/her this)
I suggest adding the following line of code that only mc and Gina (sister) would call Ron(father) and Scarlet(mother) by relationship while the other characters will continue to address to Ron and Scarlet by their names(I haven't delved into the games plot and don't know who else is a member of the family, but I think the pattern is clear and adding other members won't be a problem)
To whoever made the ipatch (If someone knows who made the patch, tell him/her this)
I suggest adding the following line of code that only mc and Gina (sister) would call Ron(father) and Scarlet(mother) by relationship while the other characters will continue to address to Ron and Scarlet by their names(I haven't delved into the games plot and don't know who else is a member of the family, but I think the pattern is clear and adding other members won't be a problem)
Python:
init python:
import inspect
def replace_text(text):
frame = inspect.currentframe()
who = frame.f_back.f_locals.get('who')
## All replacements...
#...
text = text.replace("*gasp* I love you-","*gasp* I love you Sis-")
text = text.replace("","")
text = text.replace("","")
text = text.replace("","")
## add a condition if the speaker is pro or g, the replacement will take place
if who is pro:
text = text.replace("[m]","Mom")
text = text.replace("[f]","Dad")
if who is g:
text = text.replace("[m]","Mom")
text = text.replace("[f]","Dad")
## and so on you can add other characters...
return text
config.say_menu_text_filter = replace_text
Last edited: