Page 1 of 1

Query achievement unlocked

Posted: Fri Dec 02, 2022 1:02 am
by Theis
I want to query if a player has unlocked an achievement, but i can find very little information the api.
So maybe someone else knows more?

As far as i can see
There is a table of in game.achievement_prototypes.
There is a LuaAchievementPrototype where there isn't a field/method to indicate it has been unlocked.
There is a method unlock_achievement to unlock an achievement.

But i can't find a way to see if an achievement has actually been unlocked.

Re: Query achievement unlocked

Posted: Tue Dec 06, 2022 11:46 am
by Bilka
This is not possible because the state of the achievements isn't deterministic (state depends on factors outside of current game) and not saved in the save file (to make it deterministic).