How do you make an event that only notices the character if they're moving?

I'm in the midst of creating of horror-survival. I want to create an even that will just wander back and forth in a set motion, as long as the player doesn't move. But if they do move, I want the event to chase the player as long as they are in that same room. And if they exit and come back in, the event resets. It won't chase them again unless they move. I'm sorry for asking such specifics, but I would much appreciate any advice one could offer me on this. Thank you very much. Also, I can't really script, so if this event requires scripting, a simple explanation on how to do this or a pre-made script would be much appreciated as well. Thanks again!
You could try Yanfly's Event Chase Player script. The set up is quite simple if you follow the instructions within the script file.
Always with the bulky custom scripts, this forum. A Parallel Process event with a conditional fork that checks $game_player.moving? (using the "Script" field on the fourth tab) should be all you need.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-make-an-event-that-only-notices-the-character-if-theyre-moving.18293/