I am building a simply achievements system and I want to unlock a specific one when player reaches a count.
I am using a Game_System prototype, so I don't know if I can access it from here:
It returns
How to access a Game_Party variable from a Game_System function?
I am using a Game_System prototype, so I don't know if I can access it from here:
Code:
Game_System.prototype.countAchievements = function() {
var step = Game_Party.steps; // <-
console.log("steps: " + step);
}
It returns
How to access a Game_Party variable from a Game_System function?