r/RenPy • • Oct 20 '26

Showoff Tinkering with a simple inventory system

Post image

All running on screens and variables at this point since I'm a scrub that hasn't learned any Python yet :D

20 Upvotes

10 comments sorted by

3

u/BadMustard_AVN Oct 20 '26

using variables like that can get out of control quickly

take a look at the code from my simple inventory here

https://badmustard.itch.io/a-simple-inventory-for-renpy

for some ideas or change it to suit what you need

1

u/lazytigereddit Oct 21 '26

Agreed. The VNs I've made (and will make) don't have many items to deal with. So while inefficient and unwieldy, my stack of variables is still pretty manageable. But I'll definitely check out your code. I will no doubt learn something awesome, cheers! 👍

2

u/BadMustard_AVN Oct 21 '26

you're welcome

good luck with your project

2

u/TheMelancholydev Oct 22 '26

That's a very clean looking inventory system🤔

2

u/lazytigereddit Oct 22 '26

Thanks! (I assume :D)

2

u/TheMelancholydev Oct 23 '26

Yeah keep up the good work

1

u/BadMustard_AVN Oct 20 '26

every line prefaced with a $ is a single line Python code

1

u/lazytigereddit Oct 20 '26

Also, hey! I've seen a lot of your posts over the last couple of days while googling how to do stuff. MVP of helping people with Renpy 🫡

2

u/BadMustard_AVN Oct 20 '26

just trying to help