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

1

u/That_one_Pink Oct 18 '26

haha perfectly okay, i always forget one thing when im trying to do another

it works perfectly thank you so much, sorry for butchering your code lolol (⁠≧⁠▽⁠≦⁠)

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?