Activity: Add Points
Last updated
Was this helpful?
Last updated
Was this helpful?
This activity is giving fixed or dynamically calculated amount of points to the player.
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 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 immidiate 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 to the higher value, e.g. if calculated amount is 10.3 points, then we will give 11