• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums

Tournament Questions

Scheduled Pinned Locked Moved General
portalapi hooktournamentcloud code
2 Posts 2 Posters 236 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Davis Knox
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
  • J Offline
    J Offline
    JasonL bitHeads
    wrote on last edited by
    #2

    (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.
    1 Reply Last reply
    0

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users