question

mhamlin avatar image
mhamlin asked

Item to Currency Conversion

As part of the economy model we are designing, most purchases will be delivered through bundles or containers. However, we want certain items, if already owned by the player, to be converted to one of our currencies.

Apologies if this functionality already exists, but how would you suggest implementing this feature? I was thinking to implement Cloudscript functionality to unlock a purchased container, iterate through the items, and convert when appropriate.

CloudScriptIn-Game EconomyPlayer Inventory
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

·
Seth Du avatar image
Seth Du answered

We believe you are on the right track. The only thing you should worry about is the cloud script running time (may only have issues when you have an extremely large Catalog, make sure you are using proper algorithms…). Please see this thread as an example. However there is another solution which is using the help of 3rd party tools like snowflake, please see this thread.

If your Catalog and container scale are not that large, it is safer indeed to check the ownership and grant VC on Cloud Script.

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.