Move an event as you would a player

Is it possible to control the movements of an event using the arrow keys? I want to have a part where the player has to use control an NPC to push a switch that would ordinarily be out of reach.

I've tried looking for a script that does this but I didn't have much luck.
You can make a parallel process checking the buttons, and depending on what is or is not pressed that parallel process can then set a move route for the event you want to move (set move route can be targeted by the dropdown list top left)
If the player isn't moving at the same time, and you're not using the Party Followers option, then you could just make the NPC the "player" and (if the main character would still be visible) temporarily make the player into an NPC.

Otherwise, Andar's solution is probably pretty good.  Alternately, if this is something you're doing a ton, you could hijack one of the Move Route commands (like "Move Away From Player") that you're not using in the Script Editor to have it behave the same way that the Game_Player object responds to movement.
Sounds like a part in an old PS1 game called Legend of Legaia where your party has to split up and you advance the dungeon by controlling each one separately and each one could only get sofar before you had to switch to the other party members

First you need and event (or a script depending on your needs) to initiate the switch.

If your player character might be in a different location each time you switch save the map location of your character in several variables

Fadeout the screen

jump the player to the "NPC" location and change the sprite of the character to the NPC sprite

Jump the NPC event to the location of the player (use the variables you saved before if you have them) and change the sprite to the player character sprite

Fadein the screen

Complete the action of the NPC then do the same steps to switch back (using a 2nd set of variables if you need to for the new NPC location)
Thanks for your replies, all. I had considered switching the NPC and the Player from the get go, but figured there may be a better way.

I did have this planned to be something that happens multiple times in the game so Wavelength's idea interests me. Is it literally a matter of copying the Game_Player script and pasting it in whichever move route i choose?

I tried messing around with parallel processes but I'm gonna need to read up on them before I fully get how they work.

For some more context, My idea was to have the character use a key item to control an NPC, by going up to them, speaking to them from behind a counter, and then taking control of them until the switch is pushed, at which point control would go back to the Player character.

Thanks again for your help guys
http://forums.rpgmakerweb.com/index.php?/topic/31413-solved-npc-to-imitate-player-movement/

I've found that the script here ended up solving all my problems, for future reference

EDIT: I may have spoke too soon, the event follows my movement but I'm having trouble using it to activate other events, guess I'm watching some parallel process tutorials
events can't trigger other events by touch by default if you are trying to activate another event with the action button you'd be better off just switching the player and NPC around because event on event action button activation would require more scripting.

that or have your switch be a kind of pressure plate on the ground and have the event compare it's x and y to the controlled event's X and Y
I ended up sorting it out by having a control switch activate when the x and y of the controllable NPC lines up below the button and deactivate when it leaves this place, and when its activated i just had it so that the space above the player acts as the switch.
nice, glad it worked out for you

Original thread: https://forums.rpgmakerweb.com/threads/move-an-event-as-you-would-a-player.45611/