Simple Item Pick/Drop plugin

Hi, I would like to know if a system where you can simply pick up and drop an item on the ground is possible. The idea is simple, the player is restricted from accessing the menu. An item event (e.g. a key) is picked up by the player by pressing "ok". Later the player can drop the item by pressing "cancel" and it creates or moves the item event "key" at the location of the player. Now the catch is the player can only carry one item at a time. Any time the player picks up another item, it is switched and left on the ground.

I'm able to do this via eventing, but with the increasing amount of pickable items every level, it rapidly becomes convoluted. Also since it does not carry over to the next level, I have to create separate individual items every level.

Basically:
-Player can't access menu (i can do that).
-Pick up item from ground / drop item on the ground / switch item from inventory with the ground.
-"Ok" button for pick up/ "Cancel" button for drop.

Video attached:


As you can see here, I managed to do it through events, but with the many items in one map it becomes impractical.
I need this plugin too. I've been using events to get the same result but plugins will definitely make it a lot easier.
An event spawner plugin, perhaps? E.g. Galv's Event Spawner or Yanfly's Event Spawner. 🙂

You can remember the currently-carried item ID with a variable; from your GIF I assume you've got that, or some equivalent, working already.
Yes I used an event spawner plugin to spawn an event when I select discard item and then set event graphic to said item (a charset is made using icons). I also a used event save position so the item stays at the same position upon map change until picked up. Note that I didn't get to experiment this system for long. So there may be loopholes in my planning. I moved to getting actual progress on the game done. I'll take a look at it again when I have to work on the items and database.
But won't the newly spawned events would conflict since the event id is different from the parent event? Since my item events interact with each other. But this is interesting, I may despawn the event once the item is picked up, and spawn another upon dropping said item.

Original thread: https://forums.rpgmakerweb.com/threads/simple-item-pick-drop-plugin.114074/