Achievements #
The Achievement system is a great tool that game designers can use to create a sense of progression by unlocking new content and rewarding players for completing tasks.
An “achievement” represents a player task which can be completed and, on completion, can unlock a reward. The reward can be in-game currency, collectables, energy, energy modifiers, or consumables.
For increased player engagement and larger sense of progression, achievements can be configured to have a precondition. This means that the achievement cannot be completed until one or more other achievements have been completed.
Achievements can also be configured to have any number of sub achievements. Sub achievements are nested, hierarchical achievements that can be used for progressive rewards.
Scheduling #
Achievements can be configured to repeat on a schedule, or to repeat automatically when the player completes the task. They can also be one-off achievements which are only completed once. If an achievement has been completed, but hasn’t been claimed yet, and the schedule causes it to reset, the player is still able claim their rewards. Alternatively, you could set the achievement to be auto claimed upon completion. If the achievement is set to reset upon completion, rather than using an interval, it will reset immediately, even if there are rewards to claim (they can still be claimed later).
An achievement’s active phase and reset schedule is calculated as soon as the configuration is loaded by the server, this means that you can’t currently create an achievement to be available at a future point in time, instead, it would have to be created/added at that future point in time. An easy way to do this is to use Satori Feature Flags to add new achievements to the remote configuration when you want them to become available.
Customization Parameters #
The following JSON represents the customization parameters you can use to configure the default user experience for the achievements system.
|
|
The JSON schema defines an achievements
object which must contain an individual object for each achievement you wish to define in the system. You can configure as few or as many achievements and sub-achievements as needed for your desired gameplay.
Property | Type | Description |
---|---|---|
achievements | string:Achievement | A map of all achievements. |
Each individual achievement is keyed by id and may define the following:
Achievement #
Property | Type | Description |
---|---|---|
auto_claim | bool | Whether the achievement’s reward should be given automatically upon completion. |
auto_claim_total | bool | Whether the achievement’s total reward should be given automatically upon completion of this and all sub-achievements. |
auto_reset | bool | Whether the achievement should reset after completion. |
category | string | The category that this achievement belongs to. |
count | int64 | The initial progress towards completion. |
description | string | The description text for this achievement. |
reset_cronexpr | string | The reset schedule expressed in CRON format. |
duration_sec | int64 | How long (in seconds) this achievement is available to progress after creation. Used for limited time achievements. |
max_count | int64 | The number of times this achievement must be progressed before it can be claimed. Set this to 0 (zero) to allow for immediate claiming, so long as all preconditions are met. |
name | string | The display-friendly name for this achievement. |
precondition_ids | []string | Achievement IDs the user must have completed to be able to start this achievement. |
reward | Reward | The rewards that a user should be able to claim once they complete this achievement. |
total_reward | Reward | The rewards that a user should be able to claim once they have completed this achievement and all sub achievements. |
sub_achievements | string:SubAchievement | A map of nested achievements. This can be used to create multiple steps that must be completed as part of the parent achievement. |
additional_properties | string:string | A map of key value pairs that can contain additional context. |