Swaping inventory Items with items in the environment, while still being able to retreive them later

If the title is a bit confusing, I essentially want the system that was used in the game Resident Evil: Outbreak (Bio-hazard in japan I believe) 1 & 2, where you could swap any item in your inventory for one in the environment and come back for it later.

I want to do this using variables (Seems the most likely to work) or events, but I don't know how.

So I am looking for help and tips on figuring the system out.
There is a script (from tsukihime if I remember correctly) that allows you to place items on the map and saves them.

It is almost impossible to do with events alone as you have to prepare the event for that - basically that means it's only possible without scripts if you limit your number of possible items to very few.
Yes, search for Tsukihime's script. It lets you drop items from your inventory to anywhere on a map and you can pick it up later. I don't know if you could EXCHANGE items easily - a little tweaking to the script may be needed (of course, you could make the player pick up an item from the map using regular events, but to "exchange" you would need to force them to replace it with something from inventory, which is where the tweaking to script may come in - not let them exit without dropping something)

Original thread: https://forums.rpgmakerweb.com/threads/swaping-inventory-items-with-items-in-the-environment-while-still-being-able-to-retreive-them-later.21050/