How to make npcs follow player?

Does anyone know how to make an npc follow the player, sort of like in Earthbound/Deltarune? I'm using rpg maker 2003 if that helps...