Event Drag and Drop Code without plugin

Hey guys, I was looking everywhere for some simple code to make drag and drop events without requiring a plugin and was able to come up with a pretty easy solution so I thought I'd Post it. Currently the code allows for stacking of events and allows you to pull the lowest value Event ID from the stack. I may look into pulling the top event ID later but it seems to work decent enough for basic drag drop functionality.

Video Demo:


Here's a screenshot of the Event code page 1 and page 2 as well as some extra code that disables the player move command in case you need that.
drag drop event code.png
even if it works to drag and drop, I wonder how the play walk while doing so.
or toggle mouse for movement or not as the last scriptcall does.

it would be ideal if those cannot stack, so you can build a nice drag and drop
if they save the position when you leave the map for building a town or room 🙂

nice tutorial though.
im very interested in the drag drop of events.. there's only 2 plugins i know - tomoaky TMEventClick.js and Kingpin MightyMouse plugin..

i already have a working picture drag with collision plugin..

it would be awesome in events - especially for puzzles, match3..

Original thread: https://forums.rpgmakerweb.com/threads/event-drag-and-drop-code-without-plugin.153309/