Having a Randomly Moving NPC Approach You

Hello! I'm new here.

Right now, me and a friend are attempting to learn RMMV and we are very new.

So, here's the problem:
We have a randomly moving NPC (bartender) that moves along the bar every so once in a while to check up on the NPC's at the bar. So far so good.

So far we have events set up where if our character approaches one end of the bar and clicks on the counter, the bartender has a movement path that allows him to move to a spot that is across the counter from our character and engages in dialogue. However, this only works if the bartender stands still.

Since we have the bartender moving about the bar counter, how do we have him approach a certain area? (We do NOT want the bartender to approach the character i.e. walk around the bar. We want him to approach a certain spot in the tavern across from the character, and this only works if the bartender is fixed.) We would really like the bartender to walk around the area.

Any help is appreciated.

Thank you!
I don't have MV with me at work, but I did something like this:

Code:
Move Route (on bartender event) (repeat, wait for completion):
  Script: this.moveStraight(this.findDirectionTo(x,y));
  Script: if (this.pos(x,y)) { this._movementRoute.repeat = false }

Not sure if that's _movementRoute or _moveRoute.

So it will make the bartender pathfind to the x, y position (you need to replace x and y with the appropriate numbers in both lines), and stop pathfinding, and move on to the next event command, once they're there.

I ran into a few glitches with this, but it may have been due to the event I was using also having a larger hit box than 48x48 (and my plugin for that is specifically designed for non-moving events, so it's my own fault). If that doesn't work, you could try a more long-winded form like this:

Code:
Loop
  Move Route (on bartender event) (no repeat, wait for completion)
    Move Toward Player
  Control Variables X = Bartender's X position (in Game Data > Character, I think)
  Control Variables Y = Bartender's Y position
  Conditional Branch: X = (the x coordinate you want the bartender to move to)
    Conditional Branch: Y = (the y coordinate you want the bartender to move to)
      Break Loop
    End
  End
Repeat Above

This would potentially be a problem if the bartender were walking around things, and had to go AROUND something to get to the player. As long as you make sure he can't go anywhere that would potentially cause something to block his path, it should be fine.
I'm assuming you want the Bartender to walk to the other side of the Bar counter from the character?

A simple movement route event should work. It just needs two movement routes in the event targeting the NPC's Event.
One to do an Approach Player with the second to have it return to it's initial movement route (Random). Neither should be set to wait.

As long as you have those movement routes calling to the Bartender event, you can put what you like between them.

Spoiler: An Example of what I mean
example~0.png

If you're trying to go with something more complicated (like a waitress moving to their table after wandering around), @Shaz's idea would probably be better.

And if I'm completely wrong, what happens when it's not standing in a fixed position?

Original thread: https://forums.rpgmakerweb.com/threads/having-a-randomly-moving-npc-approach-you.92864/