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 /
  • General Discussion /
avatar image
Question by Cameron Hozouri · Jun 26, 2019 at 06:11 AM · Player DataPlayer Inventory

Best way to handle CCG game inventory items

Hey everyone,

I am starting to get into the implementation of the in-game items and store creation. How would i go about using custom data and having the items be stackable to show the current XP and level of the card. I have been searching about this and saw an old post about handling thousands of cards, https://community.playfab.com/questions/23083/what-is-the-best-approach-to-handle-thousands-of-i.html. This seems the same thing I am dealing with and trying to know whats the best implementation. For example If I create a store item that will give me x250 which is 250 more of a certain card, I would want my XP amount to increase by 250 in my inventory should I approach this with custom data and calling a server function if i buy an item to update the data or use stackable quantity to know how much XP I have. Any suggestion would be very appreciated

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 SethDu · Jun 27, 2019 at 07:24 AM

I think you may keep the cards stackable, and store the required information in custom data.

When the player purchase a bundle in the store, like you said x250 of a certain card, you may simply modify the remaining uses of this item instances. In addition, let the player decide whether he should consume the additional cards to gain XP or Levels. Consumption action will call a Cloud Script function and first it will do a verification, then update remaining uses and custom data.

Comment

People who like this

0 Show 1 · 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 Cameron Hozouri · Jun 28, 2019 at 11:11 PM 0
Share

Ok thank you for the answer, I will give it a shot.

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

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    Where/How to save players personal data? 1 Answer

    Grant item to entire player base,Granting an item to entire player base? 1 Answer

    Unlock inventory item after specifice time 2 Answers

    I need to perform a bulk item grant to a subset of players based on a list of SteamIDs. How can I create a segment based on a list of SteamIDs? One that is say, 500 or 1,000 users long? 1 Answer

    Best approach for a city-builder? 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