He wish to do it yourself, just to hide it that he not want to do it. My help was very usefull, all what you need is to pace a action and a new line with a condition to the script. This isn´t very hard.
Quote: "If you want to learn how to do this then the answer given by Corno_1 was a good enough start"
Quote: "ironically he's one of those few that take script requests"
Sadly correct.... I didn´t want to do it(study), but sometimes I do it to become not rusty. Also if I find something is a funny idea, I can not let my hands away
But beside that:
This is the hole script you need, now you must give all npc which should run away, the same name and put the name also in the Ifused field(editor) of all npc
;Artificial Intelligence Script
;Header
desc = Follow Waypoints, Run Away If Shot
;Triggers
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
:nearactivatable=0:settarget,activatetarget=2
:random=20:rotateheadrandom=65
:shotdamage=1:settarget,activateifused=1,state=2
:activated=1:settarget,state=2
:state=2:rotatetotarget,rotatey=180,resethead,waypointstop,animate=5,state=3
:state=3:runfore=10
:state=3,random=5:rotateheadrandom=85
:state=3,losetarget=10:state=10
:state=3,plrcanbeseen:settarget,state=2
:state=10:etimerstart,state=11,rotatey=180,animate=31
:state=11,etimergreater=5000:state=0,activateifused=0,animate=2,waypointstart
:state=11,random=5:rotateheadrandom=35
;End of Script
I did not make this that you just use it. Look what I did and understand it!!!! That is the way how you become a scripter
Corno_1