In our game we have both an items price to purchase it and it's worth when you sell it.
What might be the best way to specify an items sell price?
Going a little further, we were thinking that the sell price would be a percentage of the purchase price, currently it doesn't look like playfab has any mechanism set up to do this other then potentially using some sort of cloud scripting.
Thanks in advance!
Did you find a nice way to do this? I'm stuck on the same problem.
,Did you find any way to do this? I'm stuck at the same problem.
Answer by SethDu · Jul 11, 2019 at 02:30 AM
What you have described seems to be the Store feature of PlayFab, which can be a good practice for holding a sales event. Please see the documentation on: https://docs.microsoft.com/en-us/gaming/playfab/features/commerce/stores/.
In the Store, you are able to increase or decrease the price of all items by specified percentages:
The OP was not asking about sales, but SELLING an item the player has in their inventory. eg: They bought it for $100, and the game values it at less when the player goes to sell it back to the system or another player. Can Stores still be used for this?