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 Brendan · Oct 05, 2015 at 12:40 AM ·

Character creation

inesmoital
started a topic on Tue, 07 April 2015 at 3:32 PM

Hello,

I what to create a customizable character in my game.

What I taught on doing was buying an item on the inventory multiple times and, depending on the quantity of that item that the player has, that would correspond on an asset in the game (for example, for the color of the eyes, if a player as 3 items names eye_color, than that would correspond on the color green on the game, if he was 2 eye_color items then the eyes would be blue for example.

The only problem is that when I buy multiple times the same item it doesn't increase the usages of that item but creates multiple items.

Is there a way to increase and/or decrease the usages of an item or know how many items the player was of the same type?

Thanks

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 Brendan · Oct 05, 2015 at 12:40 AM

Best Answer
Brendan Vanous said on Wed, 08 April 2015 at 5:17 PM

Because each purchase is a distinct operation (for which you need to be able to take action in customer support scenarios), they're listed individually. So even for consumable items, if you have an item with one use remaining and the player purchases a fresh instance with five uses remaining, the inventory for the player shows this as one item with one use left, and one with five - you'll note that they have different Purchase Dates and Instance IDs.

One way to do what you're describing would be by using Cloud Script to "accumulate" uses onto a single instance, using the ModifyItemUses API call. Using it, you could subtract the total uses from one item, and add them to another.

We're also aware of the need for a "simplified inventory" system, for games which could have player inventories with very large numbers of the same item, all purchased (or granted) at different times, such as card games. If you have a need for that, please let us know your key integration dates by emailing us at devrel@playfab.com.

Brendan


1 Comment
Brendan Vanous said on Wed, 08 April 2015 at 5:17 PM

Because each purchase is a distinct operation (for which you need to be able to take action in customer support scenarios), they're listed individually. So even for consumable items, if you have an item with one use remaining and the player purchases a fresh instance with five uses remaining, the inventory for the player shows this as one item with one use left, and one with five - you'll note that they have different Purchase Dates and Instance IDs.

One way to do what you're describing would be by using Cloud Script to "accumulate" uses onto a single instance, using the ModifyItemUses API call. Using it, you could subtract the total uses from one item, and add them to another.

We're also aware of the need for a "simplified inventory" system, for games which could have player inventories with very large numbers of the same item, all purchased (or granted) at different times, such as card games. If you have a need for that, please let us know your key integration dates by emailing us at devrel@playfab.com.

Brendan

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

    No one has followed this question yet.

    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