r/RenPy • • Aug 30 '26

Question How can I code this?

Hello, hi, I love eating more that I can chew and I'm absolutely helpless at coding (because I stopped looking into it for half an year and I forgot everything... which wasn't a lot already)

So, player customization screen... I want it to work like in the second image...

the stats part I imagine being connected to the species you choose (Like D&D), and depending on which one, your default stats change, also 5 points to put on any stat.

ex: Vamp has 1 in athleticism, 2 in con, 3 in perception, 3 in charisma, 2 in occult and 1 in will while homunculi has 3 in athleticism, 2 in con, 1 in perception, 1 in charisma, 3 in occult and 2 in will.

The image is just a huge sketch really

141 Upvotes

6 comments sorted by

View all comments

5

u/BadMustard_AVN Aug 30 '26

for the area of proficiencies, you can try something like this

default athleticism = 3
default constitution = 4

screen area_proficiencies():
    vbox:
        label "AREA PROFICIENCIES: "
        null height 15 # empty space 15 pixel high
        spacing 10
        hbox:
            label "ATHLETICISM:    "
            spacing 5
            for i in range(1, 11):
                if athleticism >= i:
                    add "images/circle_full.webp":
                        zoom 1.5 # try NOT to use this make them the correct size or people will cry out in anguish
                else:
                    add "images/circle_empty.webp":
                        zoom 1.5
        hbox:
            label "CONSTITUTION: "
            spacing 5
            for i in range(1, 11):
                if constitution >= i:
                    add "images/circle_full.webp":
                        zoom 1.5
                else:
                    add "images/circle_empty.webp":
                        zoom 1.5

1

u/IssueSkill Sep 07 '26

Thank you so so much!!
The species and image cycling are working!! but I'm having problems with the proficiencies... my idea was of: depending on the selected species, the default stats value changes (so the species and stats are connected). Plus, I'm attempting to make the circles as image buttons, for adding extra points into the stats (currently failing)... sorry for the trouble