Achievements are static bonuses, local multiplier, or global multipliers once a user exceeds some points threshold.
Achievements are a powerful way to incentivize user engagement and reward specific milestones or behaviors within your system. They offer three types of rewards:
To set up an achievement, you need to define the following components:
achievement_name
string
required
A unique name for the achievement.
Example: "super_active_user"
conditions_dnf
array
required
An array of condition groups in Disjunctive Normal Form (DNF). Each group is an array of conditions that must all be met (AND logic). The achievement is unlocked if any group is fully satisfied (OR logic between groups).
Each condition consists of:
event_name: The name of the event to check
threshold: The numeric value to compare against
operator: The comparison operator (>, <, >=, <=, =, !=)