question

removed avatar image
removed asked

Can I set a limit to the maximum amount of a currency a player may have?

I would like a currency to be hard-capped at a certain number and when it reaches that amount, adding to it does not increase it. Is this doable?

Content
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

You can set a recharge maximum, so that once the currency is at or over that value it cannot be increased by regeneration. For any other VC addition, we highly recommend not enabling the VC addition call from the Client (which is disabled by default for all titles). Then, when adding VC to the player account in Cloud Script or your custom game server, you can simply check the current value to ensure you're not exceeding your desired max.

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.