Hello there playfab team, still in love with everything.
I have a question, right now we are creating a random drop system, where we should be making a check on the item that's going to be granted before we assign it to make sure that's not a duplicate. To my understanding, opening a container item automatically assigns items (and the droptable calculations are done when it's being opened). But we need it to sort of cascade for example we have
Rare head item
Common head item
Currency containers
in the container we'd have
Rare head droptable 20%
Common head droptable 30%
Currency droptable 50%
What we want to do is check if the item that comes from the "roll of the dice" is already in the player's inventory, and if not,be able to roll again (either roll again or try to get the next item in the droptable to assign it). The way we want it to work is to cascade to the lower items, for example, if I already have all the rare head items, I should cascade to the common head items, and if I already have all of them, then I should be able to drop down to currency (which would be the last step on the cascade since we don't have a limit to currency).
I am trying to figure out how to do this using the already built in functionality in playfab, before actually going in and programming the whole system on cloud script from scratch. Is there an event that is activated when the droptable is calculated?? How could I intercept the result before actually assigning the item?? We have several items that we need to work out with this.
Thanks in advance!