;DETECT
:state=0,plrdistwithin=300,plrcanbeseen:waypointstop,state=9,rotatetoplr,setframe=478
:state=0,shotdamage=1:waypointstop,state=12,rotatetoplr,setframe=478
First off this script will never get out of state=0
Neither of the two line point to another state that exists in the current code.
Download the FPI Edit pad in the top section of the script section.
That will at least give you the commands and basic meanings.
This script was probably the worse one you could start with.
It is incomplete.
On a piece of paper Do This:
What do you want the Character to do when spawned. (Idle or Intro)
How close do you want the player to be when this character is activated? 100, 200, 300, then what do you want it to do (Walk towards player or attack or what ever)
When a set distance from the player within 100. What do you want the character to do to the player. (random Melee attacks) Player loses points, HUDs display.
Can the player inflict damage back
When the player inflicts enough damage to the character, Play death animation and destroy the character. Respawn new ones, Unhide Keys, Open doors, What ever.
Can the character kill the player.
__________________________
Use a script like this one I modified:
;Artificial Intelligence Script
;Header
desc = Nakita Ranger Char AI
;Triggers
;From Melee10 script and bond1 Zombie Modified by Pirate Myke
;Set FPSGtext Paramiters - *Works
;:State=0:fpgcrawtextsize=12,fpgcrawtextfont=verdana,fpgcrawtextr=255,fpgcrawtextg=255,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80,State=0
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\insomnia\CloseSlashOP.dds,hudname=CloseSlashOP,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\insomnia\CloseSlash.dds,hudname=CloseSlash,hudhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\insomnia\SwordSlash.dds,hudname=SwordSlash,hudhide=1,hudmake=display,State=20
:state=20,plrdistwithin=1000:State=10
;Keep enemy moving towards player Slow Walk
;:state=1,plrdistfurther=200:rotatetoplr,movefore=2,animate=2,fpgcrawtext=I'm coming for you Adam
:state=1,plrdistfurther=300:rotatetoplr,animate=7,state=1
:state=1,plrdistwithin=175:animate=2,State=31
;Lift Rope and show lotto
:state=1,plrdistwithin=300:rotatetoplr,animate=2,movefore=25,state=31
;:State=1:setframe=7,fpgcrawtext=Come Get Some,State=24
;:state=24:incframe=7,state=25
;:state=25,frameatend=7:state=31
;attack player and react to hit from player
:state=31,shotdamage=10:setframe=26,state=4
:state=31,plrdistwithin=100:rotatetoplr,setframe=22,state=2
:state=31,plrdistwithin=125:rotatetoplr,setframe=24,state=5
:state=31,plrdistwithin=150:rotatetoplr,Setframe=23,state=3
:state=31,plrdistfurther=300:rotatetoplr,animate=2,movefore=5,state=1
:State=31,plrdistfurther=151:rotatetoplr,animate=2,movefore=2,state=31
:State=31,plrdistwithin=299:rotatetoplr,animate=2,movefore=2,state=31
;sound=audiobank\voices\monster\hurt2.wav
;Sword
:state=2,plrdistwithin=100:incframe=22,plraddhealth=-25,state=32
:state=32,framebeyond=22 38:hudshow=SwordSlash,hudfadeout=SwordSlash,rotatetoplr,State=32
:state=32,frameatend=22:state=1
;Dagger
:state=3,plrdistwithin=150:incframe=23,plraddhealth=-10,state=33
:State=33,framebeyond=23 42:hudshow=CloseSlashOP,hudfadeout=CloseSlashOP,rotatetoplr,State=33
:state=33,frameatend=23:state=1
;hit animation
:state=4:moveback=20,incframe=26
:state=4,frameatend=26:state=31
;Melee animation
:State=5,plrdistwithin=125:incframe=24,plraddhealth=-5,state=34
:State=34,framebeyond=24 45:hudshow=CloseSlash,hudfadeout=CloseSlash,state=34
:State=34,framebeyond=24 77:state=1
;Get up sequence - Works
:State=10,alphafadeequal=10:rotatetoplr,setframe=9,incalphafade=100,State=10
:State=10,plrdistfurther=100,alphafadeequal=100:advframe=9 100,State=11
;SlightPause
:State=11,plrdistwithin=500:setframe=9,State=12
:State=12:incframe=9,state=12
:State=12,plrdistwithin=400:State=1
:State=12,Frameatend=9:state=11
;End of Script
Adjust the distances to your taste. Replace the anim numbers with yours or adjust your FPE file to accomidate this script.
This should get you started.
You will still need to do some changes for your situation.
Download FPI Edit pad it is a great tool. I had uploaded the actions and conditions to 118.8 at the end of the file.
Scripting hints. Pay attention to the :'s
:Condition,Condition:Action,Action
:Condition:Action,Action
Hope this helps out a bit
Nothing but coffee in my veins 'Insomnia is Coming'