Trying to make enemies roam free so you can't fight them?

I want to make enemies roam free, like they do in Mad Father so the character can't fight them until they have the correct tool. Could someone please tell me how to do that and follow a specific course and when they see the main character they go after them? Thank you.
Please explain in detail what you mean by roam free like in Mad Father. Not everyone has played that game, and even those who have might not remember it the same way you do.
They walk around in specified places, some of them run away from you and some run towards you and deal damage but you can't damage them.
Do you want to do it via Events or via Script? Via events you can just set their autonomos movement to reach the player then activate. If the player has the correct tool the battle starts, if not they deal damage and jump back by 2 squares (you should then add a wait command to let the player run away eventually).
If you want something more complex then your explaination wasn't detailed enough.
I want to make a game with no real battle sequences. I want it to be more like a horror survival game. I'm trying to have enemies walk around on the map. They deal damage to characters and they can't be harmed but they go to attack you without activating a battle screen. I don't really care if it's script or event but if it's a script I would need either a walkthrough or just a copy and paste thing.
Straightforward eventing will do this. No battle will start unless you give the Battle Processing command.

So on your enemy event have a Conditional set to Is the tool equipped/in inventory?
If yes then reduce enemy HP (with an animation if you want).
If no, reduce player HP (again with an animation)

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-make-enemies-roam-free-so-you-cant-fight-them.83282/