Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Brite
  • 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
  1. Home
  2. General
  3. Tournament Questions

Tournament Questions

Scheduled Pinned Locked Moved General
portalapi hooktournamentcloud code
2 Posts 2 Posters 1.1k 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

      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
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

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