For the complete documentation index, see llms.txt. This page is also available as Markdown.

▪️Activity: Add Points / Add Gems & Diamonds

This activity is giving fixed or dynamically calculated amount of points/gems/diamonds to the player.

In case of points you can decide if the amount will be given to current balance, balance of levels progress and leaderboard progress.

You can also calculate amount of points/gems/diamonds based on the event to which activity is connect and optional to user user state function. This will require basic knowledge of JavaScript.

You can write JavaScript for the function and define user state and event, that can be used for testing.

Button "Test points function" will give you immediate result, so you can verify your definition before enabling activity for end users.

For example, following function will give 10% of deposit amount as number of points, in case total lifetime deposit amount of player is above 1000. Otherwise it will give 5% of deposit amount. Results will be rounded down, e.g. if calculated amount is 10.3 points, then we will give 10.

Last updated

Was this helpful?