Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • Feature Requests /
avatar image

Brian Gish suggested an idea · Sep 21, 2017 at 10:04 PM · apis

Add ability to reset virtual currency timer

It would be nice to have the ability to either SetUserVirtualCurrency, or add a flag to AddUserVirtualCurrency or SubtractUserVirutalCurrency that would allow the timer to be reset.

Example 1:

I have a virtual currency for my Daily Reward system called DR. It regenerates one per day, and maxes out at 2. When the user has DR > 0, then I know they can redeem their daily reward. If DR = 1, then I know it's been one day since they last got an award, so I increment their daily login streak. If DR = 2, then I know they haven't been on for 2 days, so it's safe to break their login streak. If DR = 1 or 2, I need the ability to set DR to 0, and reset the virtual currency timer for this system to work.

Example 2:

In another project I gave away chests every 2 hours, and this system could have been accomplished with a virtual currency if I could reset the virtual currency timer, but I couldn't so instead I had to write a custom system.

thub.nodes.view.add-new-comment
Brian Gish

People who like this

1 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 comment

· Add your reply
avatar image

1807605288 commented · Sep 21, 2017 at 10:20 PM

Thanks for your feature request. I do believe it would be nice to have the functionality, but as you say, it's not available now.

However, I think you could accomplish this via an hourly timer instead of a daily timer. Set it to regenerate by hours, and either cap it above 2 days, at like 100, or.. don't. It won't matter.

Details:
At 0-24 hours, you know it's been less than a day. At 24-48 hours, you know it's been more than a day. At >48 hours, you know it's been over two days, and you can break the streak.

Basically, you minimize the "problem time" for your situation to a 1 hour period, rather than a 1 day period. And that 1 hour is the one you care the least about.

thub.nodes.view.add-new-comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Your Opinion Counts

    We would love to know what you need. Submit your ideas and upvote others to help us prioritize.

    Sign in to post a new idea

    Follow

    Follow This Idea

    No one has followed this yet.

    Related Ideas

    Add 'UpdateEmailAddress' to API -- Currently you have to do this manually

    API methods/CloudScript functions to interact with multiple Shared Groups at once

    Server API Allowed to Request Audit History Logs

    RequestMultiplayerServer should return the BuildId used to instantiate the server.

    Extra API call that both purchases an item AND runs a cloudscript

    Request WeChat login integration

    Throttle errors to return the time remaining, or the specific limit reached

    Adding admin API Get User Account Info with Custom ID

    Multiple JSON formatting options (get/set) from API

    REST API feature to be provided

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges