[CLOSE] Steam Achievements with stats
Posted: Mon Feb 14, 2022 3:21 pm
Hey
I'm making steam achievements for my game, but I don't understand how exactly to write the code collecting achievements in the script.
I use usual achievement like that and it's work okey:
But how do I create an achievement that requires you to complete several actions for it? For example, if you have to make two specific choices to get this achievement.
I guess I need to do something with achievement.register and achievement.progress, but what exactly?
I suppose it should be very simple code, but I can't find an example.
Nor should part of the achievement be counted twice.
I really don't know much about python.
__
And I create stats in steam for my achievement, but if you can also give advice on exactly how to set it up, I would be glad.
I'm making steam achievements for my game, but I don't understand how exactly to write the code collecting achievements in the script.
I use usual achievement like that and it's work okey:
Code: Select all
$ achievement.grant("NEW_ACHIEVEMENT_1_0")
init:
$ achievement.register("NEW_ACHIEVEMENT_1_0")
$ achievement.sync()
$ achievement.sync()I guess I need to do something with achievement.register and achievement.progress, but what exactly?
I suppose it should be very simple code, but I can't find an example.
Nor should part of the achievement be counted twice.
I really don't know much about python.
__
And I create stats in steam for my achievement, but if you can also give advice on exactly how to set it up, I would be glad.