Special question that I can't put into a title

Okay so, here's what I want to do:


Instead of basic treasure chests, I want the player to pick up the treasure chest and place it in their inventory to be opened later when they buy a key from a shop. Once they use the key on the chest in their inventory, the treasure chest will cycle through a list of potential loot and give it to the player. I also want the item description of the treasure chest to list it's potential items.


How can this be done?
You can do that with common events. I would place a normal treasure event and when the player opens it he gets a treasure box item and the event disappears. In the description of the treasure item box you can put a list of potential loot. When the item is used it checks for the specific key and when there is one you can run a common event that chooses a random number to pick the random loot.
I'll check that out, thanks.

Original thread: https://forums.rpgmakerweb.com/threads/special-question-that-i-cant-put-into-a-title.69050/