Is there a way to check if an NPC event is at a certain spot on the map through another event?

So I have a bartender at a lodge who has a defined move route where it looks like he is speaking to all the other NPCs at the bar.

To prevent disruption to the bartender's route, I want to make it where when the player sits at the only vacant barstool, the player will have the option to signal the bartender. If the player chooses to signal the bartender, I want the player to wait until the bartender is in front of the player through the bartender's normal move route, before the party engages in conversation with the bartender.

This is my map with the bartender. The bartender is the guy behind the counter just under the wine shelf
1692492123168.png

His route goes: D1, L1, TD(Turn Down), W60 (Wait 60f), L2, TD, W60, L2, TD, 6W60, L2, TD, W60, R8, TD, W60, R2, TD, W60, R2, TD, W60, R2, TD, W60, U1, L7, TU(Turn Up), W60

That would bring the bartender back to where he started. The process is endlessly repeated.

If the player signals the bartender, I want the bartender to continue his movement until he is above the vacant stool (where the player would be sitting). From starting position, this should be: D1, L1, TD, W60, L2, TD, W60, L2, TD, 6W60, L2, TD, W60, R8, TD

From wherever the bartender may be, he will need to continue until "R8, TD" where he would be in front of the player.

Here is the barstool event:
1692492888287.png


I want to insert some kind of conditional branch after "Gather Followers" that checks whether the bartender is at the coordinates in front of the player before he asks "How may I help you?" The correct coordinates should be: {014,005}

But all I have for an option, is this:
1692493204339.png

No option to specify coordinates.


Is there another way I can go about this?
the event command "get location info"

you specify a location and one of the returns is the ID of an event at that position.

or control variable, game data, event position X/Y

in all cases the result is loaded into a variable that then needs to be checked by conditional branch.
I do not understand what you mean.
This is all it gives me:
1692494087282.png


I have no clue what to do with it.

It does not give me the option to select a specific event ID or anything. Just literally "event ID" and the other options refer to the player.

There is no way to tell it what event. And usually you need two variables for locations, one for X and one for Y. This only allows you to use one variable.


I am clueless here.
if you need the bartender to be next to the player, define the bar itself as "counter" (should be defined by default) and set the bartender to be it's own event routine, set to player trigger.
the counter projects the trigger forward to whatever event is behind it.
You did not read when I said that I did not want his route disrupted. If I made the barstool event trigger a route and had him "move towards player" until he got in front of the player, when the event is all said and done, the bartender's automatic movement will be all messed up because he would not be where he was previously when the player sat down.

There is no way to tell it to return to its original location or to store where he was prior to the event trigger. You can only specify specific movements.

This was a HUGE downgrade from the PS1 version of RPG Maker because you had more control of movement in that version.
I have no clue what to do with it.
If there is an event on the given location, then the ID of that event is loaded into the variable you specified. If there is no event at that location, then 0 is loaded into the variable.

so that way you can check by conditional branch comparing the content of the variable if there is an event at that location and if yes, which event that is.

but in your case it would be better to use the second option I described, use control variable to get the X and Y position of where the barkeep currently is.
It still does not work.

I can add variables for bartender's X & Y coordinates but the only option in conditional branches that allow me to select the bartender as the focus only allows for his facing direction as indicated in the third image in my OP.

If I could have selected him elsewhere in the conditional branch or select location requirements for him, I would not have needed to make this post, I would have already done your second suggestion but as it stands, it is not possible to do what you are suggesting.
No - you use control variable to get the event's position x into a variable.
You select the barkeep in the control variable command NOT in the conditional branch!!!
then conditional branch variable = 14? if the x position of the event should be 14

then you repeat the same with the y position, and if both numbers are the coordinates you want then you'll knowthat the barkeeper is at the correct position.

EDIT:
PLEASE Take a month or so to work through an eventing tutorial to learn what commands are there and how to use them.

EDIT:
This is what yoiu need:
controlvar.png
Like this?:
1692497496320.png
The process is endlessly repeated.

If the player signals the bartender, I want the bartender to continue his movement until he is above the vacant stool
then you need to define the move route as custom within the bartender's routine with script calls.
-move
-move
-move
-at position? -> IF switch, turn down, ELSE, move.
-loop around.

then, use the player to turn that switch on or off.
you can use combinations of region IDs, script calls and checks to see where the bartender is at.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-check-if-an-npc-event-is-at-a-certain-spot-on-the-map-through-another-event.160441/