Tournament Questions
-
I am planning on using weekly rotating leaderboards in conjunction with weekly tournaments to increase engagement in my game.
I noticed there is a "auto-claim" option for tournaments in the portal. Is it possible to hook into this behavior to modify tournament rewards? My game has a "coin bonus" IAP that multiplies earned VC, and I would like to apply it to my tournament rewards.
Alternatively, if it is not possible to hook into the auto claim feature, and I must claim tournament rewards manually, I plan to do so via cloud code. I noticed that the claimTournamentReward API takes a version, but the description of the api states "Processes any outstanding rewards for the player." If a user has an outstanding reward(s) for some tournament(s) some number of weeks ago, can I pass -1 to this version to award an aggregated reward, or must I manually get all the versions of each outstanding tournament the user has rewards for and manually claim each one individually?
Thanks,
Davis -
(Post the answer from brainCloud chat channel)
Actually, there is a workaround that you can perform the tournament rewards adjustments,
- Turn off the auto claim
- Add a post-hook to Authenticate instead <- where auto-claim would normally run
- And in the post-hook look to see if they have tournament rewards, and if they do, claim them there - performing any award adjustments that need to be made.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login