LVUER wrote:It's right that you're using a persistent variable for things like that. The problem is that when you get the points but haven't saved, you can just load the game to farm points, right? Even worse, if you don't disable rollback feature, player can just rollback and forth.
Exactly, but I got the rollback covered haha!
LVUER wrote:So the solution is more to the game design, like you can set a persistent variable to check whether a player already get the points for certain actions. If it's true, then that player will not get those points for doing the same actions...
OMG that's a really simple solution, I love it! I'm gonna try this... I'm pretty sure it'll work fine with my game!
LVUER wrote:BTW, how player can get points? What action caused it and can it be repeated in same game?
Mostly by making right choices. There is a minigame the player may be able to play more than once through the story, so I'll have to add better control over it...
xela wrote:You need to create a class or a function that would govern adding data to persistent or any other form of persistent data. Like if you save a dict:
Thank you xela, though I still don't understand all of it >_<
Code: Select all
$ persistent.coins_bronze = dict() #what dict() means/does?
$ persistent.coins_bronze["location_1"] = 1 #I didn't follow the logic here sorry T-T