Hi all,
I'm stuck by something that seems so easy : I want that an event (a NPC in fact) start a dialog (a text box) with the player after moving toward him.
First part of the event has no problem : the character can't move (as I use a parallel process) and the "event-NPC" is correctly moving toward the player.
But then... I don't know how to start the discussion. I try using the event position through variables, but it doesn't work. And everything else I tried doesn't work (the dialog start immediately even if the event is not next the player, or doesn't start at all). I know it's easy and I'm missing something, but I can't figure what, so I beg for your help 😀
1) PLEASE POST SCREENSHOTS OF YOUR EVENT PAGES, THE WHOLE PAGE
what no. if you use parallel process, the player should be able to move...
anyway, you possibly made the move route to not wait or something...
possibly the move towards running amok... why not just give it a definite move route? since you know exactly where the player is anyway
There isn't any problem with the event moving ; the problem for me is to start the discussion when the event reaches the position. Wherever I put the text, with or without conditions, the text appears at the beginning of the event and not when it arrives next the player.
There isn't any other parallel process. I have two other events, one basic who called a script, and one another that show text when the player touch it. No link between them and my event.
I saw this in every game, they make an event move toward something and then a text appears, why this is so difficult 🙁
All you really need to do is change your event a little bit. Make an autorun event on the side of the map that moves your "npc" to infront of the player, or wherever he needs to be, then have - in the same event! - a show text. Make sure when you use the set move route that you tell it to wait until completion. If you do it thusly, you should have no problems.
You don't necessarily NEED those conditional branches either; like Celiana said, if you set it so there's a predetermined path you can simply input the show tect command after the movement has been completed.
Your move route is not set to repeat. So your NPC will take ONE STEP towards the player, and then the conversation will start.
Don't even use a repeating Move Towards Player event, because it doesn't do any pathfinding. Your NPC could end up getting stuck behind something, and as your player can't move, she'll never get there.
Just do as others have said and fill in the move route completely, specifying the exact steps to take.
Note, AFTER the conversation is over, you'll need to turn on a switch or self switch then add a new page to that event, otherwise it's just going to keep repeating (and in this case hang the game, because once the NPC has moved to the player the first time, they'll get stuck on the second attempt at the move route)
I must say it's weird because before it doesn't work; but I've just tried once again... and now it works properly ! Thank you everyone 😉