question

Sampsa avatar image
Sampsa asked

How to get list of all drop tables in CloudScript

Is there way to get list of all drop tables that our title has, specifically their ids? I would use it in GetRandomResultTables to get data for all tables at once. If there is way to get data for all tables directly then that solves our problem as well.

Our game uses custom function to evaluate drop tables and we would like to retrieve all tables at once so we would not have to request each table separately since with nested and complex tables that will cause us to exceed our API request limit.

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, a title could have a large number of drop tables, so there isn't a query to dump all of them into a response. If you can describe from a top-down level the actual gameplay mechanic you are attempting to create, we can help to advise on the best approach.

2 comments
10 |1200

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

Sampsa avatar image Sampsa commented ·

We have lootbox that gives 3 items. User can't get duplicate items from same lootbox so all loot needs to be unique. Player also has level and some items can only come from lootboxes if player has reached certain level. We currently store the required level to items custom data and our custom function filters those out before calculating the loot. We currently have drop table for each lootbox that we have (about 8) and then drop tables for each item rarity (3 rarities) and type. (2 types) So in total that's 14 drop tables. Creating separate drop tables for each lootbox and level (we have 20 levels) would be a lot of work and hard to maintain since all lootboxes have different rates and items so we would prefer if there was better solution.

0 Likes 0 ·
brendan avatar image brendan Sampsa commented ·

Simply put, we do not support that scenario right now. We will be updating the inventory system in a future update to allow for a way to override returns from drop tables where there are items the player can only have one of, but that's not going to be in the next couple of months. For now, and given that you're not actually using the Drop Tables to add items to the player account directly, I would have to recommend storing the loot drop specifics in a Title Data KVP, so that you can get it in a single API call.

0 Likes 0 ·

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.