In a previous post, I wrote about using Playfab’s virtual currency. Before you can use the virtual currency there are a few other functionalities that need to be built out. One of them is displaying the virtual store items.
The steps should be familiar if you have read the previous posts. First, download the latest integration file (attached) and create some items on the Playfab side.
Then create a table inside of GameSalad with 4 columns and with the name of storeItems (to make my example work). When you are ready to populate the table call post score action with the table as the score attribute and the Leaderboard Id of getTable.
Then you can display the table as the store. In my case, I still have some display issues to work out.
On top of the integration page, as usual, is the configuration for this table. Add or subtract columns from the tableColumnsValues if you want more or fewer columns. You can also re-order them.
tableColumnsValues:[“ItemClass”,”DisplayName”,”VirtualCurrencyPrices.ST”,”Description”]
There is an example of values that the call to retrieve items returns so that you can plug them into the table above.
{“ItemId”: “LHint”,“CatalogVersion”: “1”,“DisplayName”: “Hint”,“Description”: “Show the placement of 1 letter.”,“VirtualCurrencyPrices”: {“ST”: 100},“Tags”: [],“Consumable”: {},“CanBecomeCharacter”: false,“IsStackable”: true,“IsTradable”: false,“IsLimitedEdition”: false,“InitialLimitedEditionCount”: 0}