sleepingkirby
Well-Known Member
- Aug 8, 2017
- 1,321
- 1,955
- 262
I looked into that. Those numbers are aggregates that are overwritten by the leaderboard_score() function I mentioned in my previous post every time you do something to update the score. I tried to manually change those and it made no difference. Didn't even update the leaderboard.Thank you for looking into this and for the explanation. It makes sense, I understand the code now.
1. I do think it would be a cool little feature. Nothing major, but it's helpful to those who don't want to grind through so many study and combat sessions. Instead we could simply click the button once to set the score to e.g. 500 points. That would save a lot of time and grinding. Still, I do understand it might not be a major help if people don't care about the leader board.
So whether or not "it's worth the effort" depends mostly on the degree of coding effort.
One simplistic solution could be to have a button that sets the score to e.g. 500. So something crude like this:
Code:@property def leaderboard_score(self) -> Dict[str, float]: score = {"combat": 500, "cognitive": 500} return score
Those might work out. The thing to remember is, there's no way to click on something to set the points to 100. As the scores are procedurally calculated every time. So the best you'd get is a button that, when you click, runs the function to add another study or training event to your history. It would up the score, but not up it to a specific amount. It would only increase it like if you had just had another session of study or training. I'll look into this more tomorrow.2. There's space for a button in the canvas/frame used for the "Name" table header. I don't know how UIs work with Renpy, so I don't know how easy it is to add a button there. This might be a rough idea:
View attachment 5168625