question

entelicon avatar image
entelicon asked

Inventory Duplicates

When granting an item to a players inventory, is there any inbuilt way of making sure the player doesnt already have the item?

Player Inventory
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

·
brendan avatar image
brendan answered

No, we will be supporting "only N per player" type logic for inventories in a future update. For now, you would check the player inventory in Cloud Script before making the call to grant the item.

2 comments
10 |1200

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

sowee avatar image sowee commented ·

Hi Brendan,

I also need this logic, has this been implemented yet?

Thanks!

0 Likes 0 ·
brendan avatar image brendan sowee commented ·

This is a planned addition for the new commerce model as a follow-up addition once it's in General Availability. Keep an eye on our blog for information on upcoming functionality (ex: https://blog.playfab.com/blog/upcoming-roadmap-2019-q1-jan-march-edition).

1 Like 1 ·

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.