Hey, I need a little bit of help with this event. I'm trying to make an NPC that the player has to follow so that it moves on a set path, but will only move when the player is approaching. I could just use a series of event triggers that move the NPC from one 'stop' to the next, but I would prefer it if I could make it move continuously but stop and wait if the player gets too far away. Any ideas how to do this?
Follow the NPC
RPG Maker VXAce Supportin xp theres event range condition script and pathfinding script to make something like that .
i have no idea about vx ace script , maybe start looking in google about a script like that ?
i have no idea about vx ace script , maybe start looking in google about a script like that ?
Set up four variables. Make two of them contain the player's X and Y coordinates on the map. Make the other two contain the event's X and Y coordinates. Then set up a parallel process that will update the four variables constantly while on the map. After that, figure a way to change the event's move route along the path you want. Set up a conditional branch that compares both the X and Y coordinates of the player and the event (if 'event_x' equals 3 above 'player_x', if 'event_y' equals 3 above 'player_y', then set move route to continue, else set move route to ' ').
Simply put, variables + event conditions are perfectly capable of doing this, with the proper formatting of the events. You really don't need a script if this is a one-time thing. Might be a bit laborious if it is more than one time, or over more than one map.
Simply put, variables + event conditions are perfectly capable of doing this, with the proper formatting of the events. You really don't need a script if this is a one-time thing. Might be a bit laborious if it is more than one time, or over more than one map.
Original thread: https://forums.rpgmakerweb.com/threads/follow-the-npc.38280/