Ren'Py Character relationship help

xLoneWolf3Dx

Newbie
May 14, 2019
91
1,757
I'm very early in the process of creating my first VN using renpy. I have played some games where you can choose the relationship of the characters to avoid using a patch. How would I code that? If anyone could help or point me in the right direction it would be greatly appreciated.
 

Kuviragames

Member
Game Developer
Oct 9, 2024
489
1,081
How to do it is simple:
Python:
label whatever:
    $ girlIs = renpy.input( "What is she for you ?" )
    if not girlIs:
        $ girlIs = "roommate"
    "Noted, the girls is your [girlIs]."
But having a story that will make sense while doing is it something extremely difficult.
The reason why a roommate would refuse to be sexually involved with the MC isn't the reason why a sister would refuse. Therefore you'll end like all the game doing this, with dialogs as stupids as, "no, we can't have sex, I'm your roommate, it would be so wrong."

Letting the player define the relationship is not how one should deal with Patreon ban regarding incest. There's many thread explaining how to do it correctly, this one being probably the most complete.
This could help. :giggle:
 

nudepx

New Member
Feb 19, 2025
8
92
Or even simpler. Use a menu dialog to state the relation and safe in a boolean.
Like:

Python:
default ok_to_bang = False

label start:
    "Who is she?"
    menu:
        "Stepsister":
            $ ok_to_bang = True
        "Sister":
            $ ok_to_bang = False

    "Should we do it?"
    if ok_to_bang:
        "Yes"
    else:
        "No"
 

xLoneWolf3Dx

Newbie
May 14, 2019
91
1,757
Or even simpler. Use a menu dialog to state the relation and safe in a boolean.
Like:

Python:
default ok_to_bang = False

label start:
    "Who is she?"
    menu:
        "Stepsister":
            $ ok_to_bang = True
        "Sister":
            $ ok_to_bang = False

    "Should we do it?"
    if ok_to_bang:
        "Yes"
    else:
        "No"
I heard even step-cest was frowned upon by Patreon and I'm trying to avoid any issues if I decide to monetize the game at all. I played a game recently that let you input the relationship and seemed to work well. Just thought I would do some research on it and see if it was worth implementing.
 

nudepx

New Member
Feb 19, 2025
8
92
Well in my case you can change text to anything you want and have a finite list of options.
For the proposal from Kuviragames you need to manually put all the variants you don't agree with.
And still user may input something you can miss, like 'sis', 'sissy' etc.
 
  • Like
Reactions: xLoneWolf3Dx

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
11,660
17,911
Well in my case you can change text to anything you want and have a finite list of options.
If devs rely on a free input for this, it's not just because they are lazy, it's also because having a finite list do not permit to answer "I'm not responsible for what the player enter as relationship" when Patreon will want to kick them out of their platform.

This being said, the link in what Kuviragames quoted lead the best compromise, both safe for the dev, and still enjoyable for the player.
 
  • Like
Reactions: Kuviragames