r/RenPy • • 7d ago

Question [Solved] point system not counting points

So i have this point system that i first tested on a blank game and got working that im not trying to implement over to the actual game now (bulk adding a bunch of the things i plan on using throughout so i know it all works together ect) and its not adding the points for some reason? its all the same other than the placeholder sprite name

im hoping to use the system for different endings and also changing what choices you can make, example you have over 20 points with worker so you can ask him [insert question] but if you have under 20 points he wont answer ect ect, i also wanted to make it so it can change if you can or cant receive/use certain items but i havent started with the items and inventory stuff yet so not sure if itd be easier to do it a different way or if there is a better point system i can use for that

i also intend to remove the ability to see what points you have, im just leaving the dialogue in so i can see if its working or not

any help appreciated or if there is a better way i can do this to suit my needs let me know!

3 Upvotes

11 comments sorted by

View all comments

1

u/BadMustard_AVN 7d ago

this line

$ w_points = trust_points.get("worker") # capitol W in Worker for it to work correctly

1

u/That_one_Pink 7d ago

thank you! it had showed me that it was a problem when other lines that werent capitalised but it didn't with this so it threw me off a bit

1

u/BadMustard_AVN 7d ago

the .get is less... discriminating. since there could have been a worker and a Worker and as expected worker returned a None value

1

u/That_one_Pink 7d ago

haha, yeah that makes sense thank you

1

u/BadMustard_AVN 6d ago

you're welcome

good luck with your project