question

lu.zhang@sectionstudios.com avatar image
lu.zhang@sectionstudios.com asked

Is there any API for Updating Player's Currency Directly?

I only saw the AddUserCurrency and SubtractUserCurrency function. Is there any function can set the user currency to a certain amount directly? 

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, since currency balances are normally only added to or subtracted from by game operations, those are the methods provided. When setting up your currencies in your game (in the Economy->Currencies tab), you can define the starting balance for a player, so that they start the game with a specified balance. You can also change the balance in the Game Manager, for customer support scenarios. If neither of those take care of the scenario you have in mind, could you detail it out, so that we understand what the player experience is?

10 |1200

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

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.