Back with most likely another easy question!

Hey all;

I have another question which I am most likely over thinking it, but to put it simply:

I have a tavern with a long bar, I want to have the bar tender walk up to the character and take their order.

I know I need an event on each section of the bar, but my question is:

A. How do I get the bar tender to move to said location?

B. How do I have it note if the character is already at said location so it will not cause them to move again?


I have been messing with conditional events and movement within the event but either they move and repeat the movement every time I

click the location, or everything locks up and nothing happens.
You'll need two types of events - an invisible controlling event on every target place, and an "empty" event with the bar tender sprite but no content and no function - but you need to set that event to through=ON.


On each of the invisible events, upon being triggered by the player, they use control variable commands to check the current position of the bartender and give the set move route command to move that event a calculated number of steps up or down depending on current position.


That set move command needs to be set to wait, and when the sprite is above them they continue with the shop processing
There are three different ways to do this. One is using a Pathfinding script and edit the paremeters.

The other way is advance eventing were you store the player’s XY coordinates and subtract a specific point to get the correct offset.

Or you just simply do something like this.

Spoiler
vQv7okB.png
With this method the AI will move towards the direction of the player and face the player once the ai is across from the player.
Awesome, thanks for the responses, I will test it out in a second 🙂
I tried both and they both work, though it seems I will need to remove the random dungeon generator as it was causing the same error whenever I activated the event, oh wells. Thanks for all the help!
FateStCloud, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


Also, next time you make a post, use some meaningful words in the thread title. "Back with most likely another easy question" tells us nothing about what you're needing help with - we KNOW you have a question, or you wouldn't be posting there.

Original thread: https://forums.rpgmakerweb.com/threads/back-with-most-likely-another-easy-question.35068/