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 /
  • API and SDK Questions /
avatar image
Question by saashae · May 26 at 01:08 AM · apisIn-Game EconomyPlayer Inventory

How do you increment the available quantity of a limited edition item from a player's action?

I would have liked to increment the quantity of a limited edition item, but under special conditions. I would like to see that when a player who owns a copy of the same limited edition item consumes it, the quantity available in the shop is increased again.

The aim would be to ensure a stable number of the same item in circulation throughout the game economy.

However, I think the only way to increase the quantity of a limited edition is to use the admin API... which doesn't seem possible if the player triggers the action by consuming their item.

Is there a way to overcome this problem?

I'd like to point out that it's not a problem that the number in circulation may fluctuate a little, it just needs to stay within a close range.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Made Wang · May 26 at 06:19 AM

You can call IncrementLimitedEditionItemAvailability in the Azure Function, and then the client can call the Azure Function via ExecuteFunction.

Comment
saashae

People who like this

1 Show 3 · Share
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
avatar image saashae · May 26 at 06:31 AM 0
Share

Thank you for your answer. However, I thought it was not possible to call functions from admin API with Cloud Script (mentionned on a few questions like this one). Is it possible now ? I didn't find any information about that in the docs.

avatar image Made Wang saashae · May 26 at 07:18 AM 1
Share

Cloud Script legacy cannot call the admin API, but Azure Function Cloud Script can.

avatar image saashae Made Wang · May 26 at 09:04 AM 0
Share

Thank you for your kind answer. I wasn't aware of the difference between Cloud Script legacy and the new one.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    iOS Reciept Validation Failed - Request Timeout 16 Answers

    Is there any example script of purchases in iOS with Unity IAP via Playfab? 2 Answers

    Getting item,How to get ItemInstanceId in GrantItemsToUse 1 Answer

    iOS Restore Purchase Receipt using Unity IAP 1 Answer

    Need more storage for inventory item data value 1 Answer

    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