Better Autonomous Movement "Approach" ?

In one of my maps some enemies movement is set to "Approach" and from technical point there is nothing
to complain, except one thing that this movement "Approach" is kinda ... Irrational - Events often likes to block on
obstacles.

So my question is, how you handle "approach" movement that is actually "smart"?
I know there is the Yanfly Move route, that has this feature you want.
Also you can use a script call inside move route:
this.moveStraight(gamePlayer.x, gamePlayer.y)

But I don't remember if this command make it smart, or just remove the random movements from approach.
I'll give it a try 🙂 Thanks 🙂

Edit: Well... It's better, but still not quite what I expect.
I'll give it a try 🙂 Thanks 🙂

Edit: Well... It's better, but still not quite what I expect.
Yes!
I think by default Rm Mv not have this smart feature. Maybe you should try the plugin from yanfly.
Also, I think Quoxios has one too.
The Shaz one I never used.
Use Shaz's https://forums.rpgmakerweb.com/index.php?threads/smart-pathfinding.46761/
Then add
Code:
Game_Character.prototype.searchLimit = function() {
     return 999; 
};
The reason why it isn't that "smart" is that there is a limit on how far the search is going to be. Uncapping the limit may make the search smarter but also being a burden to your game when it's too far,
Use Shaz's https://forums.rpgmakerweb.com/index.php?threads/smart-pathfinding.46761/
Then add
Code:
Game_Character.prototype.searchLimit = function() {
     return 999;
};
The reason why it isn't that "smart" is that there is a limit on how far the search is going to be. Uncapping the limit may make the search smarter but also being a burden to your game when it's too far,

Oh. I didn't know that, thank you Theo. Anyway thank you all. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/better-autonomous-movement-approach.111853/