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 Nicolaj Hammerbo · Sep 14, 2021 at 01:47 AM · Player DatadataPlayer Inventoryentities

Storing custom game data specific to a player (card game example),Inventory management data structure in a card like game

I'm building a game where players use different cards that they unlock throughout the game.

All cards exist in a catalog as well as different chests/card packs they can acquire. All this works well and I can easily access the cards a player is in possession of.

Each player has the option to create decks and fill them with the cards from their inventory. Say a player has two decks filled with cards they own. One card can be in multiple decks at once.

What would be a good approach to store and handle this data? As Entity Objects? can they then be manipulated through CloudScripts? (if a player destroys a card, it needs to be removed from the decks as well)

I hope this isn't too confusing of a post

,

I'm building a game where players use different cards that they unlock through different rewards.

All cards exist in a catalog as well as different chests/card packs they can acquire. All this works well and I can easily access the cards a player is in possession of.

Each player has the option to create decks and fill them with the cards from their inventory. Say a player has two decks filled with cards they own. One card can be in multiple decks at once.

What would be a good approach to store and handle this data? As Entity Objects? can they then be manipulated through CloudScripts? (if a player destroys a card, it needs to be removed from the decks as well)

I hope this isn't too confusing of a post



Comment

People who like this

0 Show 1
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 Nicolaj Hammerbo · Sep 13, 2021 at 01:44 PM 0
Share

I see both the new and old title got posted

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Rick Chen · Sep 14, 2021 at 09:21 AM

You could make a deck by storing the reference of the card items, for example the item instance id, in Player data, Entity files or Entity Objects. They can be manipulated through CloudScripts. When the player chooses to destroy a card, your CloudScript can remove the corresponding item instance and update the decks to remove the reference. But please note that there are limits for those data storing service. You could check the limits in [Your Game Manager]->[Title Settings]->[Limits] page. Normally, for entity objects, the max Number of objects stored for the title player account entity is 5 and the Maximum size of each object stored on the title player account entity is 20 bytes.

Comment

People who like this

0 Show 0 · 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

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

    How do i get the player inventory from javascript? 1 Answer

    Looking for a viable way to save our mutiple json files. 1 Answer

    ,How Can I get other player VC with their ID's ? 1 Answer

    Playfab Player Data Fields ? 1 Answer

    Setting player data through ue4 blueprints 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