hummm.... hold on...
;Artificial Intelligence Script
;Header
desc = Default Entity Behaviour (Nothing)
;Triggers
:state=0:activated=0,none
:state=0:activated=1,state=1
:state=1:activated=1,destroy
;End of Script
it's basicaly this...
and... the char script
;Artificial Intelligence Script
;Header
desc = cvilian with problems
;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,animate=1,state=0
:state=0:waypointstop,state=1
:state=1,plrcanbeseen:settarget,state=2
:state=1,random=20:rotateheadrandom=65
:state=1,random=60:rotatetoplr
:state=1:settarget,animate=1,rotatetotarget,resethead,state=2
:state=1,noiseheard=5:settarget,rotatetotarget,rotatetoplr
:state=2,pickobject=1,plrdistwithin=60,plrusingaction=1:timerstart,plrdisable=100000,state=3,
:state=3:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=3:fpgcrawtext=(Destroier)humm...what i can do for you sir ?
:state=3,timergreater=500,plrusingaction=1:timerstart,state=4
:state=3,scancodekeypressed=211:plrdisable=0,state=0
:state=4:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=4:fpgcrawtext=(sickman)hey !!! you work for tarsus, huh ?
:state=4,timergreater=500,plrusingaction=1:timerstart,state=5
:state=4,scancodekeypressed=211:plrdisable=0
:state=5:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=5:fpgcrawtext=(Destroier)yeap how do you know ?
:state=5,timergreater=500,plrusingaction=1:timerstart,state=6
:state=5,scancodekeypressed=211:plrdisable=0
:state=6:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=6:fpgcrawtext=(sickman)what a hell are you talking aboult.
:state=6,timergreater=500,plrusingaction=1:timerstart,state=7
:state=6,scancodekeypressed=211:plrdisable=0,state=0
:state=7:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=7:fpgcrawtext=(Destroier)huh ? excuse me sir ?
:state=7,timergreater=500,plrusingaction=1:timerstart,state=8
:state=7,scancodekeypressed=211:plrdisable=0,state=0
:state=8:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=8:fpgcrawtext=(sickman)how many time has gone since the last time you take a look on the mirror ?
:state=8,timergreater=500,plrusingaction=1:timerstart,state=9
:state=8,scancodekeypressed=211:plrdisable=0,state=0
:state=9:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=9:fpgcrawtext=(sickman)you're clearly modified like some new kind of mech...it's evident...
:state=9,timergreater=500,plrusingaction=1:timerstart,state=10
:state=9,scancodekeypressed=211:plrdisable=0,state=0
:state=10:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=10:fpgcrawtext=(Destroier)we may resume this talk aboult your intentions ?
:state=10,timergreater=500,plrusingaction=1:timerstart,state=11
:state=10,scancodekeypressed=211:plrdisable=0,state=0
:state=11:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=11:fpgcrawtext=(sickman)ohhh...yeahhh...my intentions it's simple i want you to shut down that NSF warehouse...
:state=11,timergreater=500,plrusingaction=1:timerstart,state=12
:state=11,scancodekeypressed=211:plrdisable=0,state=0
:state=12:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=12:fpgcrawtext=(sickman)cuz they are killing everyone who are against to their revolutionary ideas !!
:state=12,timergreater=500,plrusingaction=1:timerstart,state=13
:state=12,scancodekeypressed=211:plrdisable=0,state=0
:state=13:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=13:fpgcrawtext=(sickman)their guarding illegal weapons inside ! if you want proff go inside an take a look.
:state=13,timergreater=500,plrusingaction=1:timerstart,state=14
:state=13,scancodekeypressed=211:plrdisable=0,state=0
:state=14:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=14:fpgcrawtext=(sickman)and do me a favor kill them all!
:state=14,timergreater=500,plrusingaction=1:timerstart,state=15
:state=14,scancodekeypressed=211:plrdisable=0,state=0
:state=15:fpgcrawtextsize=24,fpgcrawtextfont=verdana,fpgcrawtextr=150,fpgcrawtextg=150,fpgcrawtextb=150,fpgcrawtextx=50,fpgcrawtexty=60
:state=15:fpgcrawtext=(destroier)HUMMM...i may take a look but don't you think i will kill anyone
:state=15,timergreater=500,plrusingaction=1:timerstart,state=16
:state=15,scancodekeypressed=211:plrdisable=0
:state=16,timergreater=500,plrusingaction=1:globalvar=40,setvar=1,plrdisable=0
;End of Script
simple trapdoor script(not mine, just added globalvar and activateifused)
;Artificial Intelligence Script
;Header
desc = Remote Controlled Door (close by triggerzone)
;Triggers
:always:globalvar=40
:state=0:state=1,setframe=0,sound=$0
:state=1:incframe=0
:state=1,frameatend=0:state=2,coloff
:state=2,activated=1:state=3,activateifused=1,sound=$1,colon
:state=3:decframe=0
:state=3,frameatstart=0:setframe=0,state=4
:state=4:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\lockeddoor.tga,hudname=keydoorprompt,hudhide=1,hudmake=display,setvar=0,state=10
:state=10,plrdistwithin=60,varequal=0:hudshow=keydoorprompt,hudfadeout=keydoorprompt
:state=10,plrdistwithin=60,varequal=1,plrusingaction=1:state=5,setframe=0,sound=$0
:state=5:incframe=0
:state=5,frameatend=0:state=6,coloff
:state=6,plrdistfurther=60:state=7,sound=$1,colon
:state=7:decframe=0
:state=7,frameatstart=0:state=10,setframe=0
;End of Script
mods for creating a inteligent game,at least