Disappearance of all items from the inventory and their subsequent restoration.

Hi, I have a question.
How to make such mechanics as if the backpack is lost and found?
I want to make such a mechanic in my game that at some point my character loses his backpack (loses all items and money) and then finds it (gets back all the items and money he had before). How to make such a thing?
Sorry for my bad English.
Thank you in advance.
There have been a few threads about this; there's also this tutorial which tells you how to save and restore the inventory:

Gold should be very simple. Just use the regular event commands to save the current gold into a variable.
There have been a few threads about this; there's also this tutorial which tells you how to save and restore the inventory:

Gold should be very simple. Just use the regular event commands to save the current gold into a variable.
Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/disappearance-of-all-items-from-the-inventory-and-their-subsequent-restoration.169649/