init python: def current_node(): namemap = renpy.game.script.namemap context = renpy.game.context def current_node(): return namemap.get(context().current, None) try: return current_node finally: del current_node current_node = current_node() Say = renpy.ast.Say def replace_text(t): # s1.rpy # t = t.replace("", "") # t = t.replace("", "") # t = t.replace("", "") # t = t.replace("", "") # t = t.replace("", "") # t = t.replace("", "") # t = t.replace("", "") # t = t.replace("", "") # t = t.replace("", "") # t = t.replace("", "") node = current_node() if isinstance(node, Say): who = node.who if who == "extend": who = _last_say_who if who and who.startswith("mc"): t = t.replace("landlady", "aunt") t = t.replace("Landlady", "Aunt") t = t.replace("landlord", "uncle") t = t.replace("Landlord", "Uncle") t = t.replace("roommate", "cousin") t = t.replace("Roommate", "Cousin") t = t.replace("ma'am", "auntie") t = t.replace("Ma'am", "Auntie") if who and who.startswith("hl"): t = t.replace("tenant", "nephew") t = t.replace("Tenant", "Nephew") t = t.replace("landlady", "aunt") t = t.replace("Landlady", "Aunt") if who and who.startswith("bk"): t = t.replace("tenant", "nephew") t = t.replace("Tenant", "Nephew") t = t.replace("landlady", "aunt") t = t.replace("Landlady", "Aunt") if who and who.startswith("zo"): t = t.replace("You're the best roommate ever", "You're the best cousin ever") return t config.say_menu_text_filter = replace_text del replace_text