- May 9, 2017
- 151
- 79
Yes, I tried to search in this site for resolve but still can't find out, maybe i miss something, somewhere.
However, I made it myself a patch for renpy game :
### ----------------------------------------------------------------------------------------------------------------
$ mc = Character('[mc_name]', image = 'mc_char')
$ step_mom = Character('[stm_name]', image = 'stmom_char')
$ step_sis = Character('[stsis_name]', image = 'stsis_char')
mc_name is "Bellustus", stm_name is "Alice", stm_sis is "Jessica"
### ----------------------------------------------------------------------------------------------------------------
so I want when Alice say then [mc_name] will be replace as : "son"
when Jessica say then [mc_name] will be replace as : "step brother"
when mc say to Alice then [step_mom] will be replace as : "Mother"
when mc say to Jessica then [step_sis] will be replace as : "Step sister"
when Alice say to Jessica then [step_sis] will be replace as : "[stsis_name]" (this is default of script, so this not need to care about)
I mean depend on who say, the replace text will fix to correct. Because this patch I made myself will replace char(step_mom) call char(step_ sis) as Step-Sister too
However, I made it myself a patch for renpy game :
with :init -2 python:
import re
def XNameChange( txt ):
# if globals()['[mc_say]'] :
if "[step_sis ]" in txt:
return txt.replace("[stm_name]","{color=#00FF00}{b}Step-Sister{/b}{/color}")
elif "[step_mom]" in txt:
return txt.replace("[mname]","{color=#FF0000}{b}Step-Mom{/b}{/color}")
else :
return txt
config.say_menu_text_filter = XNameChange
### ----------------------------------------------------------------------------------------------------------------
$ mc = Character('[mc_name]', image = 'mc_char')
$ step_mom = Character('[stm_name]', image = 'stmom_char')
$ step_sis = Character('[stsis_name]', image = 'stsis_char')
mc_name is "Bellustus", stm_name is "Alice", stm_sis is "Jessica"
### ----------------------------------------------------------------------------------------------------------------
so I want when Alice say then [mc_name] will be replace as : "son"
when Jessica say then [mc_name] will be replace as : "step brother"
when mc say to Alice then [step_mom] will be replace as : "Mother"
when mc say to Jessica then [step_sis] will be replace as : "Step sister"
when Alice say to Jessica then [step_sis] will be replace as : "[stsis_name]" (this is default of script, so this not need to care about)
I mean depend on who say, the replace text will fix to correct. Because this patch I made myself will replace char(step_mom) call char(step_ sis) as Step-Sister too