There shouldn't be any need for you to use custom cloud code, you should be able to implement this using Bundled Goods:
1. Create your 'itemX' Virtual Good as normal.
2. Create a Virtual Good for each of your 'packs', specifying an amount of 'itemX' in it's Bundled Goods:
Now, when the player is awarded the 'packA' virtual good, they will also be awarded the bundled goods associated with it.
Try this out and let us know how it works for you.
Regards,
Vinnie
S
SashaMirkovic
said
over 6 years ago
Hi,
I just finished trying just that. What I do not like about this is that goods collection looks like "goods: { itemX: n, packA: 1}" in stead of only "goods: { itemX: n }".
Is there no way around this?
Best Regards,
Sasha
S
SashaMirkovic
said
over 6 years ago
Hello,
I found a way around this.
After calling BuyVirtualGoodsRequest to buy items package (PackA) I call ConsumeVirtualGoodRequest for PackA. Then PackA is removed from goods and only items from package remain.
SashaMirkovic
Hello,
We want to allow players to buy:
Hi Sasha,
There shouldn't be any need for you to use custom cloud code, you should be able to implement this using Bundled Goods:
1. Create your 'itemX' Virtual Good as normal.
2. Create a Virtual Good for each of your 'packs', specifying an amount of 'itemX' in it's Bundled Goods:
Now, when the player is awarded the 'packA' virtual good, they will also be awarded the bundled goods associated with it.
Try this out and let us know how it works for you.
Regards,
Vinnie
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
Hi Sasha,
There shouldn't be any need for you to use custom cloud code, you should be able to implement this using Bundled Goods:
1. Create your 'itemX' Virtual Good as normal.
2. Create a Virtual Good for each of your 'packs', specifying an amount of 'itemX' in it's Bundled Goods:
Now, when the player is awarded the 'packA' virtual good, they will also be awarded the bundled goods associated with it.
Try this out and let us know how it works for you.
Regards,
Vinnie
SashaMirkovic
Hi,
I just finished trying just that. What I do not like about this is that goods collection looks like "goods: { itemX: n, packA: 1}" in stead of only "goods: { itemX: n }".
Is there no way around this?
Best Regards,
Sasha
SashaMirkovic
Hello,
I found a way around this.
After calling BuyVirtualGoodsRequest to buy items package (PackA) I call ConsumeVirtualGoodRequest for PackA. Then PackA is removed from goods and only items from package remain.
It's not nice but it works!
Thanks.
Sasha
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics