MV Item drop/pickup

Im working on a rpg maker mv game and im trying to make it so players can pick up and drop items does anyone know how to make it or have seen a plugin for it?
Do you want the item to go into the player's inventory when they pick it up or carry it over their head like Link carrying a pot?
There's none. The closest there are are loot drop items from ARPG Battle System when enemy dies, but discard item to map as icons from inventory, haven't seen one. There are icons as events plugin but the drag mechanic, have not found one.

if you use galv event spawner you can make event as items as icons spawn near player, or get a custom item menu command discard to trigger this.
There's none. The closest there are are loot drop items from ARPG Battle System when enemy dies, but discard item to map as icons from inventory, haven't seen one. There are icons as events plugin but the drag mechanic, have not found one.
It's doable with an event spawn plugin that spawns an event in the tile in front of the player that triggers when the player selects an item from their inventory.
It's doable with an event spawn plugin that spawns an event in the tile in front of the player that triggers when the player selects an item from their inventory.
How would you go about that? It sounds like you're saying there's some kind of floating event already in front of the player...how would doing something in the menu trigger an event?

And why do it that way instead of just writing the code in that menu command to create an event? Maybe I'm confused by what you're describing.

Regardless, it's definitely possible if someone writes the interface for it (and probably hooks it to an event spawn plugin for convenience). But I haven't seen it existing.
How would you go about that? It sounds like you're saying there's some kind of floating event already in front of the player...how would doing something in the menu trigger an event?

And why do it that way instead of just writing the code in that menu command to create an event? Maybe I'm confused by what you're describing.

Regardless, it's definitely possible if someone writes the interface for it (and probably hooks it to an event spawn plugin for convenience). But I haven't seen it existing.
There is no floating event in front of the player. You select an item from the item menu, it stores that in a variable, looks up that itemID in the database, gets its <spawnMapId:x> note tag, then spawns the item from the spawn map. The spawn map gives you a template to copy premade events from so the items with all their event pages already exist.

This code I wrote will make it so if you hold down shift on the game map, it brings up the item menu and does all that stuff above. It uses Galv's event spawner but you can do it with anyone's: Yanfly, Ritter, whatever.
or by plugin to place it anywhere (not saved on the free version)
PKD_PocketEvents, I dont know about AquaEcho way, but it can work
out if its also temporarly that works if you want it fully evented.

its kinda neat that I dont know about it as well 🙂
There is no floating event in front of the player.
Cool, I didn't understand your previous post. Nice snippet. I was being concerned about making a nice integration into the actual menu, but that's a very accessible way to implement this.

It's easy for a user to make the edit, of course, but won't the Shift long-press count up while Shift and other keys are held? e.g. to dash?
It's easy for a user to make the edit, of course, but won't the Shift long-press count up while Shift and other keys are held? e.g. to dash?
Yes, at the moment it shares the key with dashing so the item menu will come up while the player holds down shift to dash. I haven't implemented extra key bindings into my project yet so all the available keys are already bound to something.
So someone looking to implement this might want to add a key for it to their keymapper - for example, include the below as a plugin:
Code:
Input.keyMapper = {
    9: 'tab',       // tab
    13: 'ok',       // enter
    16: 'shift',    // shift
    17: 'control',  // control
    18: 'control',  // alt
    27: 'escape',   // escape
    32: 'ok',       // space
    33: 'pageup',   // pageup
    34: 'pagedown', // pagedown
    37: 'left',     // left arrow
    38: 'up',       // up arrow
    39: 'right',    // right arrow
    40: 'down',     // down arrow
    45: 'escape',   // insert
    73: 'item', // I
    81: 'pageup',   // Q
    87: 'pagedown', // W
    88: 'escape',   // X
    90: 'ok',       // Z
    96: 'escape',   // numpad 0
    98: 'down',     // numpad 2
    100: 'left',    // numpad 4
    102: 'right',   // numpad 6
    104: 'up',      // numpad 8
    120: 'debug'    // F9
};

That adds a definition 'item' for the key "I".

Then you can change the top of @AquaEcho's event to read isLongPressed('item') and it won't interfere with any other functions.

Or you can change it to isTriggered (and get rid of the stuff with the variable immediately after) if you don't want the user to have to hold down the key to access the item drop menu.

Other additions include taking it out of a parallel process and using a plugin like Yanfly's Button Common Events to trigger it (which I think already lets you use any key you want, so you wouldn't need the snippet I put above).
I found this

The documentation says it works with Yanfly Item Discard so this is another option. It is paywalled ($5) though. This guy writes pretty involved plugins thousands of lines long but I'm hesitant to give him more money after the pathfinding one I bought from him two weeks ago didn't work and he still hasn't fixed it.

Original thread: https://forums.rpgmakerweb.com/threads/item-drop-pickup.156935/