The Achievement module allows the developer to grant achievements to the player, to clear achievements, and to determine if an achievement has been granted. It also allows the recording of progress towards an achievement.
By default, the achievement stores information in the persistent file. If Steam support is available and enabled, achivement information is automatically synchronized with Steam.
An action that calls achievement.sync(). This is only sensitive if achievements are out of sync.
Clears the achievement with name.
Clears all achievements.
Grants the achievement with name, if it has not already been granted.
Returns true if the player has been granted the achievement with name.
progress(name, complete) link
Reports progress towards the achievement with name, if that achievement has not been granted. The achievement must be defined with a completion amount.
register(name, **kwargs) link
Registers an achievement. Achievements are not required to be registered, but doing so allows one to pass information to the backends.
The following keyword parameters are optional.
Synchronizes registered achievements between local storage and other backends. (For example, Steam.)