Hello everyone, it's been a while since i've used FPS Creator, and i was never a good scripter, so i've run into a problem. I've
attempted to combine two scripts, but as usual, it didn't work. I need "Hag", from model pack 23, to chase the player, but keep her/it's default animations. I tried setting "chase.fpi" to the main AI in the properties, but that doesn't work. Like i said, i need her to use her default move/attack etc. animations, but keep going after the player no matter how far away they are, even if they're in another room. So, i tried combining the default main script with the chase.fpi, then the hag didn't even appear when i stepped into her trigger zone. I checked the properties for both the trigger zone and her, and all the settings are right, so i don't know why she didn't appear. I know it's possible to make her chase the player, because when the chase.fpi is applied to a generic character with a gun, they follow and follow the player until they die, even opening doors when you shut them in their face. The only things that have me stumped here are the animations for walking and attacking. Below are all the scripts involved in what i'm trying to do. Can someone please help me out here? Maybe tell me what i did wrong?
The default main script for hag
desc = Devourer
;Triggers
;WALKING WAYPOINTS
:state=0,plrdistwithin=300,plrcanbeseen:state=50,rotatetoplr,sound=audiobank\dungeonpack\hag_intro.wav
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
;DETECT PLAYER
:state=50,plrdistwithin=300:waypointstop,rotatetoplr,setframe=1,state=1
:state=50,plrdistwithin=200:waypointstop,state=3
:state=1:incframe=1
:state=1,frameatend=1:state=50
:state=1,plrdistfurther=800:waypointstop,rotatetoplr,animate=1,state=50
:state=1,plrdistwithin=200:waypointstop,animate=2,state=3
;Select Attack
;walk
:state=3,plrdistwithin=200:waypointstop,rotatetoplr,animate=3,movefore=1,state=3
:state=3,plrdistfurther=200:waypointstop,rotatetoplr,animate=1,state=0
:state=3,plrdistwithin=60:state=4
;Choose attack
:state=4,plrdistwithin=60,random=2:waypointstop,rotatetoplr,setframe=94,state=5
:state=4,plrdistwithin=45,random=2:waypointstop,rotatetoplr,setframe=95,state=7
;attack1
:state=5,framebeyond=94 14,plrdistwithin=60:plraddhealth=-10,sound=audiobank\dungeonpack\hag_attack.wav,state=6
:state=5:incframe=94,rotatetoplr
:state=5,frameatend=94:animate=10,state=50
:state=6:incframe=94,rotatetoplr
:state=6,frameatend=94:animate=10,state=50
:state=6,plrdistfurther=200:waypointstop,rotatetoplr,state=50
;attack2
:state=7,framebeyond=95 14,plrdistwithin=45:plraddhealth=-10,sound=audiobank\dungeonpack\hag.wav,state=8
:state=7:incframe=95,rotatetoplr
:state=7,frameatend=95:animate=10,state=50
:state=8:incframe=95,rotatetoplr
:state=8,frameatend=95:animate=10,state=50
:state=8,plrdistfurther=200:waypointstop,rotatetoplr,state=50
The default chase.fpi
;Artificial Intelligence Script
;Header
desc = Chase And Shoot
;Triggers
:nearactivatable=0:settarget,activatetarget=2
:losetarget=50:freeze,runfpidefault=1
:plralive=0:freeze,runfpidefault=1
:ifweapon=1,plrcanbeseen=46,plringunsight,rateoffire:settarget,useweapon,rundecal=6,choosestrafe
:ifweapon=0:reloadweapon,freeze,setframe=6,state=4,sound=audiobank\guns\reload.wav
:shotdamage=10:rotatetoplr,state=5
:state=0,plrdistfurther=100:state=1
:state=0,plrdistwithin=101:state=2,animate=1
:state=1,plrelevfurther=10,plrcanbeseen=46,plringunsight:freeze,settarget,animate=1,state=0
:state=1:followplr=1,animate=5
:state=1:state=0
:state=2:rotatetoplr,resethead
:state=2:freeze,state=0
:state=4:incframe=6
:state=4,frameatend=6:state=0
:state=5,random=1:state=6,setframe=4
:state=5:state=7,setframe=3
:state=6:incframe=4,strafe=90,rotatetoplr
:state=6,frameatend=4:state=1,animate=1
:state=7:incframe=3,strafe=-90,rotatetoplr
:state=7,frameatend=3:state=1,animate=1
;End of Script
My combination script
(Please forgive me if this script is crap and nowhere near correct, as i'm still a beginner at scripting, and i've only had success with ridiculously simple scripts.)
desc = Devourer
;Triggers
;WALKING WAYPOINTS
:state=0,plrdistwithin=300,plrcanbeseen:state=50,rotatetoplr,sound=audiobank\dungeonpack\hag_intro.wav
:waypointstate=0:animate=2,waypointstart
:waypointstate=3:animate=2,waypointnext
:waypointstate=4:animate=2,waypointrandom
:waypointstate=5:animate=2,waypointreverse
;DETECT PLAYER
:nearactivatable=0:settarget,activatetarget=2
:losetarget=50:freeze,runfpidefault=1
:plralive=0:freeze,runfpidefault=1
:state=0,plrdistfurther=100:state=1
:state=0,plrdistwithin=101:state=2,animate=1
:state=1,plrelevfurther=10,plrcanbeseen=46,plringunsight:freeze,settarget,animate=1,state=0
:state=1:followplr=1,animate=5
:state=1:state=0
:state=2:rotatetoplr,resethead
:state=2:freeze,state=0
:state=4:incframe=6
:state=4,frameatend=6:state=0
:state=5,random=1:state=6,setframe=4
:state=5:state=7,setframe=3
:state=6:incframe=4,strafe=90,rotatetoplr
:state=6,frameatend=4:state=1,animate=1
:state=7:incframe=3,strafe=-90,rotatetoplr
:state=7,frameatend=3:state=1,animate=1
:state=50,plrdistwithin=300:waypointstop,rotatetoplr,setframe=1,state=1
:state=50,plrdistwithin=200:waypointstop,state=3
:state=1:incframe=1
:state=1,frameatend=1:state=50
:state=1,plrdistfurther=800:waypointstop,rotatetoplr,animate=1,state=50
:state=1,plrdistwithin=200:waypointstop,animate=2,state=3
;Select Attack
;walk
:state=3,plrdistwithin=200:waypointstop,rotatetoplr,animate=3,movefore=1,state=3
:state=3,plrdistfurther=200:waypointstop,rotatetoplr,animate=1,state=0
:state=3,plrdistwithin=60:state=4
;Choose attack
:state=4,plrdistwithin=60,random=2:waypointstop,rotatetoplr,setframe=94,state=5
:state=4,plrdistwithin=45,random=2:waypointstop,rotatetoplr,setframe=95,state=7
;attack1
:state=5,framebeyond=94 14,plrdistwithin=60:plraddhealth=-10,sound=audiobank\dungeonpack\hag_attack.wav,state=6
:state=5:incframe=94,rotatetoplr
:state=5,frameatend=94:animate=10,state=50
:state=6:incframe=94,rotatetoplr
:state=6,frameatend=94:animate=10,state=50
:state=6,plrdistfurther=200:waypointstop,rotatetoplr,state=50
;attack2
:state=7,framebeyond=95 14,plrdistwithin=45:plraddhealth=-10,sound=audiobank\dungeonpack\hag.wav,state=8
:state=7:incframe=95,rotatetoplr
:state=7,frameatend=95:animate=10,state=50
:state=8:incframe=95,rotatetoplr
:state=8,frameatend=95:animate=10,state=50
:state=8,plrdistfurther=200:waypointstop,rotatetoplr,state=50
;End of Script
Cheers, Jake
------------------------------------------------------------
-The Marsundle Residence- (Coming Soon)