How do i make a player chase npc event?

npc event can easily chase a player through scripts but what about the other way around? how do i get a player to chase a event npc?
I would do it like this:
l2H6dEY.png


NPC (event) will always move away from player
forgot to clarify this is during an auto movement event so the player will need to move on its own
And you got auto movement:
Custom Route -> Move Away From player -> Parallel execution, so the event will always move away from player
yeah dont think that will initiate the player moving on its own, player freezes if event is set to auto movement because there are no commands for the player movement

I want it continuous movement from player and npc on repeat until i give them more commands
your description is rather confusing, so let's ask a few question to clarify:

do you want to make a cutscene (player as no control about movement) or do you want it a game sequence (player has control and can chose whether to follow or not)?
its during a cutscene, the player will move on its own without me controlling the player at all
I'm confused...but if I understand correctly, if you want to control the player, then in the move route event command you use the drop-down box to select player and tell them to move in whichever direction you want.

Make that command not wait for completion.

Make a second move route that's controlling the NPC event, have it use the same directions, make it wait for completion.

This will result in the two sprites moving at the same time.
no i dont want to control the player, this is during a cutscene ive done that but always looks kind of choppy, and i thought maybe random movement would be smoother
its during a cutscene, the player will move on its own without me controlling the player at all
that is simply wrong.

in a cutscene, the player will never move on its own. that is the pure definition of a cutscene.
if the player can move on its own, it cannot be a cutscene.

if you mean a background scene that happens without player interaction then you cannot involve the player at all.

but those are the only variants possible, and you have to chose which one to use, and you cannot mix them.

If the player has control, then you CANNOT have a cutscene.
I'm sorry, but I just don't understand what you want. You're saying things that conflict with each other.
player freezes if event is set to auto movement because there are no commands for the player movement
This is not true. The only thing that freezes a player is an event with the trigger: Autorun. Events with autonomous movement have no effect on player controls.
I want it continuous movement from player and npc on repeat until i give them more commands
So here you're saying that you want the player to be moving, which is what I told you how to do.
no i dont want to control the player
But here you're saying you don't want to control the player, in which case Soulrender told you how to do it.
this is during a cutscene
In a cutscene, by definition, the player is not in control, so this is going back to what I told you.
I get what the OP means.

They simply want to make an event where the player move route is dynamic (by chasing an event) during the cutscene (which you have no control over the player character).

But there is a problem. Since it is dynamic, it has a lot of complications. For example:
  • We do not know how many tiles/how far that the player character will walk. Knowing when the move route ends could help to advance the cutscene.
  • We do not know whether the event that the player chases is also moving or standing still.
If the event is standing still after the event move in a random direction, you can try to use a pathfinding plugin. If the event is not standing still, I can probably make an edit of this snippet but for the player to chase the event. However each "move toward player/event" is equal to one tile, so we still do not know how many tiles the player is going to move.
I get what the OP means.
are you sure?
because the OP insists that the player has control, and if you're using any follow command (no matter if pathfinding or something else) then the player can't have control.
because player control includes the ability to not follow the event.
are you sure?
If I read solely on the opening post and not about the confusion to the explanation in the further replies, yes.

> "npc event can easily chase a player through scripts"
This could refer to the "move toward player" move command

> "but what about the other way around?"
This refers to the "there no move toward event" move command.

> "how do i get a player to chase a event npc?"
This is asking "How do I control the player character movement in an event so that it chases an event regardless of its position?"
If that is what the OP was asking (certainly possible, although several posts contradict it), I would suggest it's not worth the effort. Having the movement being dynamic or random isn't worth the trouble of dealing with the issues that TheoAllen raises.

Just program some movement, stick it in a loop while you're doing the rest of the cutscene, and be done with it.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-a-player-chase-npc-event.142978/