I'm actually making the ren'py game, but I want to release a patch for the game, the same way you guys make that patch.
Er... I don't want to be harsh, we all start one day and aren't really smart at this time. But if you didn't understood what I wrote for my thread about string patching, are you sure that you want to write your own game ? I'll not pretend to be good at writing documentation, but the use of the patcher is really basic and just looking at the example provided in the archive really should be enough to let you know how it must be used.
I'm thinking the easiest way to allow a patch to change a characters title is to just declare it in a single variable? Does that allow you to make a patch easily?
It's the easiest way, yes. To keep your initial example :
Code:
init python:
$ thisCharacter = "teacher"
label somelabel:
"Let me present you my [thisCharacter]."
and the patch:
Code:
init 1 python:
$ thisCharacter = "gardenner"
But it's not the better looking way to patch since you don't always talk about it in passive way. By example, when you talk about a character, she's your "mother", but when you talk to her, you are less formal and say "mom". Also, you'll not talk the same way to your landlady (a classical) than you talk to your mother. In the first case you'll say something like, "Excuse-me miss, can you come in my room ?", while in the second you'll be more familiar and say "Mom, can you come in my room ?".
There's also the problem caused by derivatives subjects. In
You must be registered to see the links
by example, the default context is that you are your father's son, your father have a new girlfriends, who have two daughters. You can redefine this to make the game become an incest game, but then when MC will talk to your, now mother, he will say things like, "your daughters", when he should say, "my sisters".
So, the better solution is either to use the string patcher (exactly like in the example code above), or the callback used by
@bossapplesauce in the mod I linked above. Both will let you dynamically change every sentence you need to change, helping you to not only patch the relation between each characters, but also change sentence that are related to this relation, to keep the right feelings ; by example, changing "your daugthers" by "my sisters" when it's needed.