frenchpapa
Yep, as I thought, it's a basic script. very easy to change.
Look at the "state=0" line and you'll see ",plrdistwithin=300,plrcanbeseen".
Change those commands to "noiseheard=x" ( where x= distance to player in segments
where noiseheard=100 is 1 segment distance , noiseheard=300 is 3 segments..ect )
Something like this..
:state=0,noiseheard=300:waypointstop,state=9,rotatetoplr,setframe=96,sound=audiobank\bond1\chaingrowl.wav
So with this the player CAN be seen, but unless you make a noise LESS than 3 segments away the enemy wont attack.
If you want both the player not to be seen AND not heard use both together like this..
:state=0,noiseheard=300:waypointstop,state=9,rotatetoplr,setframe=96,sound=audiobank\bond1\chaingrowl.wav
:state=0,plrdistwithin=300,plrcanbeseen:waypointstop,state=9,rotatetoplr,setframe=96,sound=audiobank\bond1\chaingrowl.wav
The whole script should look like this...
;Triggers
;WALKING WAYPOINTS
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
;DETECT PLAYER
:state=0,noiseheard=300:waypointstop,state=9,rotatetoplr,setframe=96,sound=audiobank\bond1\chaingrowl.wav
:state=0,plrdistwithin=300,plrcanbeseen:waypointstop,state=9,rotatetoplr,setframe=96,sound=audiobank\bond1\chaingrowl.wav
:state=0,shotdamage=1:waypointstop,state=9,rotatetoplr,setframe=96
;INTRO ANIMATION
:state=9:waypointstop,incframe=96
:state=9,frameatend=96:state=5
;CHOOSE MELEE ATTACK & RUN OR WALK
:state=5,random=2:state=1
:state=5,random=2:state=6
;MELEE ATTACK 1
:state=1,plrdistfurther=50:waypointstop,rotatetoplr,movefore=2,animate=92
:state=1,plrdistwithin=50:waypointstop,rotatetoplr,setframe=93,state=7
:state=7,framebeyond=93 60,plrdistwithin=60:plraddhealth=-10,sound=audiobank\misc\melee.wav,state=8
:state=7:incframe=93,rotatetoplr
:state=7,frameatend=93:state=6
:state=8:incframe=93
:state=8,frameatend=93:state=6
;MELEE ATTACK 2
:state=6,plrdistfurther=50:waypointstop,rotatetoplr,runfore=2,animate=94
:state=6,plrdistwithin=50:waypointstop,rotatetoplr,setframe=95,state=2
:state=2,framebeyond=95 60,plrdistwithin=60:plraddhealth=-10,sound=audiobank\misc\melee.wav,state=3
:state=2:incframe=95,rotatetoplr
:state=2,frameatend=95:state=1
:state=3:incframe=95
:state=3,frameatend=95:state=1
Try these out and see how it works for you
best
My games never have bugs. They just develop random features..
Lots and lots of random features...