Opplæring
Læringsbane
Get started with inventory management in Microsoft Dynamics 365 Business Central - Training
Do you buy and sell inventory items? If you do, this module will discuss how to create items and enter quantities.
Denne nettleseren støttes ikke lenger.
Oppgrader til Microsoft Edge for å dra nytte av de nyeste funksjonene, sikkerhetsoppdateringene og den nyeste tekniske støtten.
Viktig
Economy v1 APIs are in maintenance mode and will not be receiving any new features, only bug fixes. The v1 APIs will be maintained for the foreseeable future. See the Economy v2 Overview to learn more about the next version of PlayFab Economy!
The Items quickstart gives you the building blocks of your in-game economics: virtual currency, catalogs, items, and purchases.
In this quickstart, you will:
PlayFab supports a robust game economy with multiple currencies and items.
To access these features and create a virtual currency:
You can give players virtual currency directly. As an example, let's add money to a player using the Game Manager:
Tips
It can be dangerous to give clients the ability to call the AddUserVirtualCurrency API. For information about setting restrictions on specific APIs, see API access policy.
Now the player has 100 gold. What can they do with it? Buy an item!
No sense having money if you can't spend it!
You can create catalogs (a collection of items) that correspond to the platforms on which you're releasing your game, or major version numbers - whatever you like.
Tips
We don't recommend creating multiple catalogs to differentiate types of items. You can filter items more effectively using classes, tags, and stores.
To make a catalog with an item:
The bottom of the form has the PRICES section, where you define how much an item costs in your game's virtual currency.
Let's use the PlayFab APIs to make a purchase in your game.
CatalogVersion = "main"
Catalog
in the result contains an apple with a GD price of 5.CatalogVersion = "main"
ItemId = "apple"
VirtualCurrency = "GD"
Price = 5
To confirm the purchase in Game Manager:
To confirm:
Opplæring
Læringsbane
Get started with inventory management in Microsoft Dynamics 365 Business Central - Training
Do you buy and sell inventory items? If you do, this module will discuss how to create items and enter quantities.
Dokumentasjon
Catalogs (Legacy Economy) - PlayFab
Describes the Catalogs tab in the (Legacy) Economy section in Game Manager and the Catalog item type.
Stores (Economy Legacy) Quickstart - PlayFab
Quickstart for (Economy Legacy) Stores.
Manage Virtual Currencies in Economy (Legacy) - PlayFab
Describes the Currency tab in the (Legacy) Economy section in Game Manager, and how to configure virtual currencies.