If I click on an NPC on the screen, how can I make that NPC controllable?

画面上にNPCが表示される→そのNPCをクリック→NPCを操作できるようにしたいのですが、手を貸してもらえますか?
画面上にNPCが表示される→そのNPCをクリック→NPCを操作できるようにしたいのですが、手を貸してもらえますか?
There is an actual official Japanese forum if you want to ask in Japanese. As for your question, you would either give the NPC a move route or swap the player sprite to the NPC's sprite, and the NPC's sprite to the player sprite. Also swap their positions, so it looks like you took control of the NPC, but what really happened is you swapped their places and sprites.

Also this plugin will allow events to be triggered by click.
Additionally, you should keep in mind that there are no NPCs anywhere in the engine, only events pretending to be NPCs.
Thanks a lot.

Original thread: https://forums.rpgmakerweb.com/threads/if-i-click-on-an-npc-on-the-screen-how-can-i-make-that-npc-controllable.163227/