Phantasy Star (MD)-style movement (Collision?)

So, I'm looking to solve a problem. What would it take for me to create a movement common event or otherwise make it to where:

If my party walks into a "door frame" on a map (i.e. 1 tile from the "hole"), the character pathfinds (for lack of a better term) the opening and starts walking through the hole in the wall as occurs in Phantasy Star games. It's incredibly convenient for movement and just really enjoy the way that movement action feels when playing. Any help I can get I really appreciate!​
Pathfinding is the correct term.

It's not terribly complicated to do, but it is moderately complex. You should be able to achieve it as either a plugin or a common event, but it would be much less efficient as a common event because you'd have to have it running in parallel and checking things every time you press a button to move. (and as best as I can think, you'd have to be throwing in script calls anyway)

So it would be more efficient to add as a plugin, because you can have the code kick in after it's already determined that the tile you want to move into is impassable.

You then have it see if there is a tile on one side of that which is passable, and if so you override the input and make the player move toward it instead of the direction they pressed.
Thanks. I was kind of hoping to discover some existing plugin for MZ, but it still seems as if a lot of MZ plugin development is in its infancy, in comparison to previous iterations of Maker.
I don't know about infancy, a lot of pretty complex stuff has been put out there. But yes, there are fewer plugins for MZ than MV, which makes sense as it's been out for fewer years.

To be fair to MZ, I never saw a plugin like this for MV, either.

But here it is - works for both MV and MZ in my testing. It pops a warning in the MZ plugin manager, but it appears to be perfectly compatible - I just can't bother to figure out how to get rid of that 😉

Enjoy!
I don't know about infancy, a lot of pretty complex stuff has been put out there. But yes, there are fewer plugins for MZ than MV, which makes sense as it's been out for fewer years.

To be fair to MZ, I never saw a plugin like this for MV, either.

But here it is - works for both MV and MZ in my testing. It pops a warning in the MZ plugin manager, but it appears to be perfectly compatible - I just can't bother to figure out how to get rid of that 😉

Enjoy!
Excellent. Thank you!

And yeah, "infancy" may not be the correct term. Not that plugins aren't elaborate or complex in MZ in comparison. I just mean the vast number of plugins for MV dwarfs MZ by far for now. Hoping for other future ports from one to the other, too.

EDIT: My note on this is that it works even with pixel movement plugins. Very cool! Thanks so much!

Original thread: https://forums.rpgmakerweb.com/threads/phantasy-star-md-style-movement-collision.144667/