Help! Pathfinding doesn't work

Hi, I try to make my npc move from random location to a certain location after the player makes a certain choice.
However, I can't seem to find it working out. I tried using:" this.moveStraight(this.findDirectionTo(X, Y)); ", but it did nothing. Or sometimes it makes the npc run off only 1 tile and then disappears.

Then I tried to use the Smart Pathfinder from Shaz, but I don't see it showing up at my plugin command. It doesn't show anything at the parameters, but on their post it's said to have no parameters set. And It's for MV? Maybe that's why it doesn't work, but I'm not sure.

I also tried:" $gameMap._events[this._eventId].moveStraight($gameMap._events[this._eventId].findDirectionTo( 18, 11 )); ", but that doesn't work either. Please help ;n;
please show us screenshots of what you tried, and screenshots of your plugin manager.

and please give better descriptions than "it did nothing" - at minimum we need a comparison of what it should have done and what it did in reality.
please show us screenshots of what you tried, and screenshots of your plugin manager.

and please give better descriptions than "it did nothing" - at minimum we need a comparison of what it should have done and what it did in reality.
1659307225140.png

I figured out what the problem was. Apparently the Transparent ON & Through ON was causing it issues. It didn't wait for the script to finish. So after 1 frame, the NPC disappeared.

1659307464087.png


With this it worked.
1659307521367.png

Although, I still haven't figured out the plugin yet. It doesn't show up at the Plugin Command, because there's nothing at the parameters. Is it because the plugin is for MV only or is it possible to use it for MZ too?

Thanks for the respond btw!

Original thread: https://forums.rpgmakerweb.com/threads/help-pathfinding-doesnt-work.149946/