question

Sergey Yakovlev avatar image
Sergey Yakovlev asked

How to automatically transfer purchased items to characters?

In my game Players do not own anything but Characters. Like in Diablo. Every item should belong to some character immediately. Ideally, they should be assigned to the character at the purchase stage automatically by the server.

I have hopes for PlayStream events + CharacterID in CustomTags => Azure Functions to execute MoveItemToCharacterFromUserRequest.

The problem is player-vc-item-purchased and player-inventory-item-added both lack the ItemInstanceId...

How can I overcome this?

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

·
Gosen Gao avatar image
Gosen Gao answered

You can purchase the item for Character directly with API Player Item Management - Purchase Item - REST API (PlayFab Client) | Microsoft Learn by specifying the Character Id.

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.