question

Dmitry avatar image
Dmitry asked

The best way to implement the daily rewards system

Players have the opportunity to claim rewards by logging into the game each day. There are a total of 4 types of rewards, which are known in advance. The list of rewards is known for 7 days. After that, the player starts receiving rewards from the beginning of the list. For example, on the first day, the reward could be 100 coins, on the second day, it could be 20 energy, and so on. What is the best approach to implement this using PlayFab?

Player Dataapisunity3dIn-Game Economy
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Neils Shi avatar image
Neils Shi answered

You can store the reward list in Title Data, and players can call the PlayFab SDK method ExecuteFunction to execute the Azure Functions to determine whether to get the daily reward. PlayFab provides an example of how to do a daily progressive reward system: PlayFab-Samples/Recipes/ProgressiveRewards at master · PlayFab/PlayFab-Samples · GitHub, you can refer to it for more info.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.