question

Chris B. avatar image
Chris B. asked

Gifting all players

We wanted to gift all players with some coins as a Christmas thing. There seems to be some possible options. I noticed the post here

https://community.playfab.com/questions/353/206712187-Gifting-currency-and-items-to-players.html that talks about setting the Initial currency. So our thought was we could set the currency for a limited time, and then change it back to 0. But the question is, if we later want to do another gift, can we change the initial amount again and they would get the coins the next time we do that?

We also noticed we could set "All Players" under segments and then set it to grant coins, but we weren't sure how this would work. Does it just grant all players the coins once? Or does it even trigger for current players?

Thank you for any help provided.

Player Inventory
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

·
pfnathan avatar image
pfnathan answered

You can use Schedule Task to accomplish gift giving to your players.

https://api.playfab.com/search?q=scheduled+task

https://api.playfab.com/blog/introducing-bulk-actions-and-scheduled-tasks

https://api.playfab.com/docs/tutorials/landing-automation/bulk-actions-for-an-entire-player-segment

For the question on “set the currency for a limited time, and then change it back to 0”, this is not something that we do not support, however. It will require your own CloudScripts to handle/detct the player’s spending, limits, revoke and what not.

You can also use Schedule Task to assign whether to give coins at once or trigger for current players.

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.