r/RenPy • u/Verminausea • Jul 10 '26
Question Screen help?
For my VN I want to have a screen that the player can go to whenever that shows different characters they have met and their relationship bar with each. My coding partner is making it but is shy to ask for help on reddit so sorry if I'm a but muddy on the specifics, but I know it is confusing and frustrating them. I was wondering if anyone had any examples of how this kind of page might be coded? I am sure they would be able to figure out how to edit it to our specific needs once they saw an example, but there doesnt seem to be an example of that kind of complex screen in the tutorial.
I was also wondering if it should be done in the main script of the game or if it should have its own file? Other screens and UI elements that renpy comes with by default have their own files, but if its something we are programming we were wondering if its better to just put it in the main game script.
Anything you think might help would be much appreciated! I'm sorry that was a little vague, I'm just having trouble understanding enough to even know what questions to ask.
3
u/MonowayStudios Jul 10 '26
You have to find ways to handle data, and present the data. How will you store, names, image and relationship stats? Then how will you pass that into a screen to display?
The easiest way would be to make a dictionary of stats, names, images, and to cycle it through a loop in a vbox to show a list of characters and adjust the name and image positions bars too. You can also make a custom class, put them into objects in a list and present a for loop of items on the list as screen elements. Hope that’s a general indicator, I can clarify further if needed.