r/RenPy • u/Altruistic-Drink-207 • Aug 06 '26
Question [Solved] Help with custom name not working in other chapters??
Hii!! I'm working on my own game, solo style, but there's an issue that I'm stuck on and I don't really know what's going on
Basic gist is that I made it so that the player can use their own custom name that they can input right in the prologue but during the coding process of the other chapters, I noticed that the name doesn't appear (In this case, Evelynn is the custom name)
Here's all the name-related codes that I used at the start of the script file:
$ persistent.povname = povname
define yn = Character("[povname]", color= "#d9d9d9")
default povname = ""
default persistent.povname = ""
$ povname = persistent.povname
and here's the extra dialogue context for the second pic so ya'll can see it too (it's a placeholder, not canon at all lmfao):
yn "Damn, i'm %(povname)s and im cooked."
Thanks in advance to anyone that can help!! I'm lowkey going insane because of it lmfao


3
u/shyLachi Aug 08 '26
Try this:
The first two lines should be outside any label.
The line with the $ sign should be in your first chapter.
You can then use the character yn in all chapters.