Hello, Here is out situation:
(Using Unity SDK and C#)
Recently we have developed a new inventory system that would get items based on an ID from an array and add them to slots in UI and categorized based on categories such as "Weapon", "Armor" and "Misc" linked to the item ID and this works great when testing and pressing a button that "grants" the player an item based on what ID is given.
PlayFab has only just started to be integrated with our project so these might be newbie questions but I could not find anything specific in the forums.
Q. 1) In the GetInventoryCallback(GetUserInventoryResult result) Function (taken from the "Prize Wheel" recipe) how can I get a property from an item in the inventories index similar to the categories I described above. Also what if I want GetInventory() to just return VC and not items so when I update the UI it just gets VC if I am updating the user's VC UI display it works the other way around or does getting the players inventory have to return everything each call.
Q. 2) Now for testing adding items from a button click by passing a number to the inventory UI works but we want to get an item from a drop table or catalog and add it to the players PlayFab inventory, from looking at the Client API I can only see Purchasing items as the only way to add an item to the players inventory through PlayFab, not always will the player be paying VC for items and we could just Purchase an item with the price of 0 to grant the item to the player but why is there not just an addItemRequest(string itemID,string userID, int amount) function that adds a new item from a catalog onto the end of the item array's index? Unless I am missing something what is the best way to just add an item, does it have to be done through drop tables, if so how?
I hope I was able to communicate my questions clearly, I'll clarify more if needed.
Thanks in advance
- Tolin Simpson
Owner, LeatherBound Games