Hello everyone,
There is a money variable in our game that is stored in the players' read only data. Since it can exceed the int32 limit, I store that data in the read only data section.
I want the players to be able to buy in-game money with real money. Is there a way to do this?
As far as I know, there's not a direct way to change read only data by purchase API so that I'm thinking of creating some stackable items. For example;
"item-10000"
"item-100000"
"item-1000000"
When one of these items is purchased, I need to execute a function in the cloudscript so that I can change the related data. If this solution feasible, is there any event that is triggered when a purchase is confirmed, and is there a way to get the purchased item's name? Because I need to check how much in-game money the player bought?