Enemy run script

I tried various ways and searched for a solution but to no avail.


I need a way to make a certain enemy try to escape when its HP is below some HP. Is there a script for that as I was not able to find any script in the master list?
I don't think you need a script to force an enemy to run away when under a certain amount of HP. You should be able to open up the Database, then go to the Enemies tab, then under the 'Action Patterns' of the specified enemy add the 'Escape' skill with the following information :


enemy-escape.png


 
​


I haven't tested this, but it should work.
Stupid me. I deleted the original skill set else way I should have known that there is such an action. Thanks. Worked magnificently.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-run-script.68131/