question

fanwu avatar image
fanwu asked

Best practice for Droptable

We need to create a chest that will reward 10 random items to a player (items are weighted according to quality). I know that using "evaluateRandomResultTable" 10 times is a horrible way to do this. Is there any other way around that's less costly?

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

·
Andy avatar image
Andy answered

Try using a bundle or container with a drop table set to the desired quantity. This is explained in more detail here: https://api.playfab.com/docs/tutorials/landing-commerce/droptable

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.