Could someone please help me combine these 2 scripts to make a script that will make the zombie wander until he finds me and then starts clawing my eyes out, please and thank you
; Swarm Claw Animation
:state=0:waypointstart
:state=0,plrwithin,plrdistfurther=10001:state=0
:state=0,plrwithin,plrdistwithin=10000:state=20
:state=1,plrcanbeseen:movefore=10,animate=2,state=20
:state=1,shotdamage=1:movefore=10,animate=2,state=20
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
:state=20,plrdistfurther=50,plrcanbeseen:rotatetoplr,movefore=20,animate=2
:state=20,plrcannotbeseen:state=40
:state=20,shotdamage=1:strafeforward
:state=20,plrdistwithin=50:state=50
:state=40,plrcannotbeseen,random=3:timerstart
:state=40,plrcannotbeseen,random=3,timergreater=30:rotateheadrandom=50
:state=40,plrcannotbeseen,random=3,
:state=40,shotdamage=1:rotatetoplr
:state=40,noiseheard=60:rotatetoplr,plrdistwithin=300:rotatetoplr
:state=40:state=20
:state=50:setframe=6
:state=50,random=5:plraddhealth=-5
:state=50,random=4:plraddhealth=-6
:state=50,random=3:plraddhealth=-7
:state=50,random=2:plraddhealth=-8
:state=50,random=1:plraddhealth=-9
:state=50:state=51
:state=51:incframe=6
:state=51,frameatend=6:state=52
:state=52,plrcanbeseen:state=20
:state=52,plrcannotbeseen:timerstart,state=40
:state=53:movefore=16,animate=5
:state=53,timergreater=1000:state=20
;Triggers
:state=0:state=1
:state=1,losetarget=5:state=10
:state=1,plrcanbeseen,plrdistwithin=400:state=20
:state=1,shotdamage=1:rotatetoplr,state=20
:state=1,random=20:rotateheadrandom=55
:state=1:animate=2,movefore=2.5
:state=10,random=1:state=11
:state=10:rotatey=90,animate=2,movefore=2.5,state=0
:state=11:rotatey=-90,animate=2,movefore=2.5,state=0
:state=20,plrcanbeseen:state=21
:state=21,plrcanbeseen:settarget
:state=21,plrcannotbeseen,losetarget=1:state=10
:state=21,healthless=31:state=40
:state=21,ifweapon=1,plrdistfurther=100:followplr=1,animate=5
:state=21,plrdistwithin=101:rotatetoplr
:state=21,ifweapon=1,plrdistwithin=301,plrcanbeseen=46:animate=1,rotatetoplr,freeze,useweapon,rundecal=6
:state=21,ifweapon=0:animate=1,freeze,state=22,setframe=6
:state=21,plrdistwithin=300,random=20:state=25
:state=21,plrdistwithin=100:state=30
:state=22:incframe=6
:state=22,frameatend=6:state=21,reloadweapon,sound=audiobank\guns\reload.wav
:state=25,random=1:state=26,setframe=4
:state=25:state=27,setframe=3
:state=26:incframe=4,strafe=90,rotatetoplr
:state=26,frameatend=4:state=21,animate=1
:state=27:incframe=3,strafe=-90,rotatetoplr
:state=27,frameatend=3:state=21,animate=1
:state=30:state=31,setframe=5
:state=31:incframe=5,strafe=180,rotatetoplr
:state=31,frameatend=5:state=21,animate=1
:state=40:state=42
:state=42,ifweapon=1,plrdistwithin=601,plrcanbeseen=46:animate=1,rotatetoplr,freeze,useweapon,rundecal=6
:state=42:rotatetotarget,rotatey=180,resethead,animate=5,state=43
:state=43:runfore=10
:state=43,random=5:rotateheadrandom=65
:state=43,losetarget=1:state=50
:state=43,plrcanbeseen:settarget,state=42
:state=50:timerstart,state=51,rotatey=180,animate=31
:state=51,timergreater=5000:state=10,animate=5
:state=51,random=5:rotateheadrandom=35
;End of Script
Wraith Games... Play Harder