question

unregistered33 avatar image
unregistered33 asked

Improvement character characteristics

It is necessary to explain how to organize the improvement of the characteristics of the purchased character / item. For example, the game has three characters: warrior, archer, magician. The player can buy any of them several times. During the game, the player earns virtual money and can improve the characteristics of the character (health, strength, accuracy, mana). How to organize such a model in PlayFab?

Characters
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Rick Chen avatar image
Rick Chen answered

In your game, does the player control a single character at a time or control many characters at once? If it is the former, you could use the Characters system in PlayFab.

You can set up the character token items in your Catalog with different IDs representing different types of characters. The players can purchase those characters for themselves. Characters also have their own system similar to Players, such as Inventory, Statistics, Virtual Currency, Data. You can decide whether the property should be under a Player or a character that belongs to the player. For example, you can put the character’s health, strength in the character’s data.

Here are available character’s APIs:

https://docs.microsoft.com/en-gb/rest/api/playfab/client/character-data?view=playfab-rest

https://docs.microsoft.com/en-gb/rest/api/playfab/client/characters?view=playfab-rest

If it is the latter, like the RTS game StarCraft, we would recommend using the catalog item as your Character model instead, since the character system is designed for cases where a player has a few characters that each has their own unique inventory, VC, and statistics. In this way, the character’s health, strength info can be stored in the custom data of the catalog item.

If you have any further question, please feel free to ask.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.