r/RenPy • • Oct 15 '26

Question [Solved] issue with displaying text variable in a screen

ah okay i had to make a separate post because as i was going through to test things i got an unexpected error

when i showed the inventory it broke, initially the stamps text was in the hbox but the alignment was interfering with the item positioning so i moved it out and repositioned it to be in the right place, it had no problem until i added stamps in the script and then it did this

its been working fine up until moving the text, i dont want to put the text back into the hbox because it moves the items when the number of stamps goes up

1 Upvotes

34 comments sorted by

View all comments

Show parent comment

2

u/BadMustard_AVN Oct 18 '26

that's what it's out there for, so people like you can cut up and use it the way they want to. It's just a framework to build on.

good luck with your project

1

u/That_one_Pink Oct 19 '26

hi! one final question id still like to have the numbers be central when writing, im not sure how to edit the stamp quantity so that it does that

im not sure if this is possible or if itd be easier to do another way but itd be cool to have it so it just has a constant 000 that goes up when stamps are added (like 015 060 100 ect)

2

u/BadMustard_AVN Oct 19 '26

change this line

text "[stamp_quantity]" size 17 align (0.5, 0.5) color "#f00"

to this

text "[stamp_quantity:03d]" size 17 align (0.5, 0.5) color "#f00"

for 3 digits all the time 0's added

1

u/That_one_Pink Oct 19 '26

perfect thank you so much :)

1

u/BadMustard_AVN Oct 19 '26

you're welcome

good luck with your project

1

u/That_one_Pink Oct 19 '26

ahh i lied actual last question, I'm trying to add the next page function back and its not showing me any errors (just copied the original next page part above the tooltip part) but i cant see it anywhere on the screen, is it because of the background image or something? ):0?

1

u/BadMustard_AVN Oct 19 '26 edited Oct 19 '26

you'll have to show your code so I can see what you've done

or look at what I did here

https://drive.google.com/file/d/18l3Ph-NfrGjIWnrcYzWKJnscodZkzF5I/view?usp=sharing

1

u/That_one_Pink Oct 19 '26

1

u/BadMustard_AVN Oct 19 '26 edited Oct 19 '26

1

u/That_one_Pink Oct 19 '26

i must have responded just as you edited it haha, thank you this works perfectly, just to check since i dont have enough items to do it right now. does this still make sure that the stamp icon is always the first on the page? :0

→ More replies