Is it possible to edit names in renpy games?

divarticx

Newbie
Apr 20, 2023
24
9
im just looking if is possible change variables like names, roles and age on renpy games, recently im playing a game but i dont want the mc reffer to his mom like step-mom or change the age of a girl that is obvius dont have 18 years old
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
11,749
18,135
[...] i dont want the mc reffer to his mom like step-mom [...]
It's not editing the name, it's changing words, that happen to be names, that can possibly appear in all dialogs, as well as menu and screens.

There's other solution than the one gave by tanstaalf, but they need even more knowledge since it imply to code a small mod for the game.
 

Midzay

Member
Game Developer
Oct 20, 2021
255
651
Code:
    $ player_name = renpy.input("The number of characters is 12", length=12)
    $ player_name = player_name.strip() # remove space
    if player_name == "":
        $ player_name="Default Name"
    author "author: Pleased to meet you, %(player_name)s!"
More info:
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
11,749
18,135
More info:
It's not what OP is asking.

How to let players define the name of a character in the game you are making will not help him, because what he want is to change the way the MC address another character in a game that he's playing.

But, as I said, this is part of the dialog. Like there's no naming system implemented in the game, there's also 99,99% chance that there's no [charSayer] in the dialogs. Therefore the only way to do is to write a small mod for this.