;Artificial Intelligence Script by TheStoryteller01 2012 ;Header desc= This script only works with FPSC 1.18 or later Made for dynamic entities that talk to the player. To start the script at any time, the player has to move the crosshair over the NPC and press . THIS SCRIPT IS DIFFERENT - IT STARTS WHEN THE PLAYER IS CLOSE ENOUGH TO THE NPC AND CAN BEE SEEN: ;Triggers :state=0:state=1 :state=1,shotdamage=1:state=290 :state=1,plrcanbeseen,plrdistwithin=150:etimerstart,state=11 ;//NPC :state=11,shotdamage=1:state=290 :state=11:rotatetoplr :state=11:fpgcrawtextsize=24,fpgcrawtextfont=Arial,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15 :state=11:fpgcrawtext=Hello Is someone there?! :state=11,etimergreater=1000,plrusingaction=1:plrdisable=0,state=15 :state=11,etimergreater=10000:plrdisable=0,state=12 ;//NPC :state=12,shotdamage=1:state=290 :state=12:rotatetoplr :state=12:fpgcrawtextsize=24,fpgcrawtextfont=Arial,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15 :state=12:fpgcrawtext=Please Help Me! :state=12,pickobject=1,plrusingaction=1:plrdisable=0,state=15 :state=15,shotdamage=1:state=290 :state=15:etimerstart,plrdisable=100000,rotatetoplr,state=21 ;//PLAYER :state=21:fpgcrawtextsize=26,fpgcrawtextfont=Arial,fpgcrawtextr=000,fpgcrawtextg=000,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80 :state=21:fpgcrawtext=Are you hurt? :state=21,etimergreater=1000,plrusingaction=1:plrdisable=0,state=25 :state=21,etimergreater=10000:plrdisable=0,state=25 :state=25:etimerstart,plrdisable=100000,rotatetoplr,state=31 ;//NPC :state=31:rotatetoplr :state=31:fpgcrawtextsize=24,fpgcrawtextfont=Arial,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15 :state=31:fpgcrawtext= Im fine Just had to hide from those abominations out there :state=31,etimergreater=1000,pickobject=1,plrusingaction=1:plrdisable=0,state=35 :state=31,etimergreater=10000:plrdisable=0,state=35 :state=35:etimerstart,plrdisable=100000,state=41 ;//PLAYER :state=41:fpgcrawtextsize=26,fpgcrawtextfont=Arial,fpgcrawtextr=000,fpgcrawtextg=000,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80 :state=41:fpgcrawtext=Who are you and what are you doing here? :state=41,etimergreater=1000,plrusingaction=1:plrdisable=0,state=45 :state=41,etimergreater=10000:plrdisable=0,state=45 :state=45:etimerstart,plrdisable=100000,state=51 ;//NPC :state=51:rotateheadrandom=10 :state=51:fpgcrawtextsize=24,fpgcrawtextfont=Arial,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15 :state=51:fpgcrawtext=Im Agent Collins FBI We got a tip regarding massive disappearances in this area :state=51:fpgcrawtext=They sent me to investigate :state=51,etimergreater=1000,plrusingaction=1:plrdisable=0,state=55 :state=51,etimergreater=10000:plrdisable=0,state=55 :state=55:etimerstart,plrdisable=100000,state=61 ;//NPC :state=61:rotateheadrandom=20 :state=61:fpgcrawtextsize=24,fpgcrawtextfont=Arial,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15 :state=61:fpgcrawtext=Never thought I would find anything like this though :state=61,etimergreater=1000,plrusingaction=1:plrdisable=0,state=65 :state=61,etimergreater=9000:plrdisable=0,state=65 :state=65:etimerstart,plrdisable=100000,state=71 ;//PLAYER :state=71:fpgcrawtextsize=26,fpgcrawtextfont=Arial,fpgcrawtextr=000,fpgcrawtextg=000,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80 :state=71:fpgcrawtext=Is there anything useful you could tell me? :state=71,etimergreater=1000,plrusingaction=1:plrdisable=0,state=75 :state=71,etimergreater=10000:plrdisable=0,state=75 :state=75:etimerstart,plrdisable=100000,state=81 ;//NPC :state=81:rotateheadrandom=20 :state=81:fpgcrawtextsize=24,fpgcrawtextfont=Arial,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15 :state=81:fpgcrawtext=Ive found references to a place called the Castle but no reference to its location :state=81:fpgcrawtext=Also a D Caldwell is mentioned but whereabouts unknown :state=81,etimergreater=1000,plrusingaction=1:plrdisable=0,state=85 :state=81,etimergreater=9000:plrdisable=0,state=85 :state=85:etimerstart,plrdisable=100000,state=91 ;//PLAYER :state=91:fpgcrawtextsize=26,fpgcrawtextfont=Arial,fpgcrawtextr=000,fpgcrawtextg=000,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80 :state=91:fpgcrawtext=Ive found mentions of both as well :state=91:fpgcrawtext=They had an emergency there and that is the cause for some of this i think :state=91,etimergreater=1000,plrusingaction=1:plrdisable=0,state=95 :state=91,etimergreater=10000:plrdisable=0,state=95 :state=95:etimerstart,plrdisable=100000,state=101 ;//NPC :state=101:rotateheadrandom=20 :state=101:fpgcrawtextsize=24,fpgcrawtextfont=Arial,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15 :state=101:fpgcrawtext=Some kind of sick experiments that got away from them! :state=101:fpgcrawtext=The sick bastards Ill keep looking for more information and try to get some backup :state=101:fpgcrawtext=Something is blocking all outside comms :state=101,etimergreater=1000,plrusingaction=1:plrdisable=0,state=105 :state=101,etimergreater=9000:plrdisable=0,state=105 :state=105:etimerstart,plrdisable=100000,state=111 ;//PLAYER :state=111:fpgcrawtextsize=26,fpgcrawtextfont=Arial,fpgcrawtextr=000,fpgcrawtextg=000,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80 :state=111:fpgcrawtext=Yeah I cant call anybody either I just want to get out of this place :state=111:fpgcrawtext=If I get a signal Ill call immediately :state=111,etimergreater=1000,plrusingaction=1:plrdisable=0,state=115 :state=111,etimergreater=10000:plrdisable=0,state=115 :state=115:etimerstart,plrdisable=100000,state=121 ;//NPC :state=121:rotateheadrandom=20 :state=121:fpgcrawtextsize=24,fpgcrawtextfont=Arial,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15 :state=121:fpgcrawtext=Id appreciate that Oh one other thing I overheard a message talking about entrance to the Castle :state=121:fpgcrawtext=I know you want to escape but this might come in handy :state=121,etimergreater=1000,plrusingaction=1:plrdisable=0,state=125 :state=121,etimergreater=9000:plrdisable=0,state=125 :state=125:etimerstart,plrdisable=100000,state=131 ;//NPC :state=131:rotateheadrandom=20 :state=131:fpgcrawtextsize=24,fpgcrawtextfont=Arial,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15 :state=131:fpgcrawtext=Thats probably where communications are being jammed :state=131:fpgcrawtext=and the source of this madness is We could stop it! :state=131,etimergreater=1000,plrusingaction=1:plrdisable=0,state=135 :state=131,etimergreater=9000:plrdisable=0,state=135 :state=135:etimerstart,plrdisable=100000,state=141 ;//PLAYER-CHOICE OF 3 :state=141:fpgcrawtextsize=26,fpgcrawtextfont=Arial,fpgcrawtextr=000,fpgcrawtextg=000,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80 :state=141:fpgcrawtext=Ok How do I get in? Ill think about it No way first chance Im leaving! :state=141,etimergreater=100000:state=141 :state=141,etimergreater=1000,scancodekeypressed=59:etimerstart,state=151 :state=141,etimergreater=1000,scancodekeypressed=60:plrdisable=0,state=181 :state=141,etimergreater=1000,scancodekeypressed=61:plrdisable=0,state=201 ;//NPC :state=151:rotateheadrandom=20 :state=151:fpgcrawtextsize=24,fpgcrawtextfont=Arial,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15 :state=151:fpgcrawtext=The message mentioned a false wall of sorts hidden in a basement complex the code is 9696 Id guess away from prying eyes :state=151,etimergreater=1000,plrusingaction=1:plrdisable=0,state=145 :state=151,etimergreater=10000:plrdisable=0,state=145 :state=145:etimerstart,plrdisable=100000,state=161 ;//PLAYER :state=161:fpgcrawtextsize=26,fpgcrawtextfont=Arial,fpgcrawtextr=000,fpgcrawtextg=000,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80 :state=161:fpgcrawtext=Thank you ill check that out Good luck and be careful :state=161,etimergreater=1000,plrusingaction=1:plrdisable=0,state=155 :state=161,etimergreater=10000:plrdisable=0,state=155 :state=155:etimerstart,plrdisable=100000,state=171 ;//NPC :state=171:rotateheadrandom=20 :state=171:fpgcrawtextsize=24,fpgcrawtextfont=Arial,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15 :state=171:fpgcrawtext=Likewise to your sir be careful Maybe we'll see each other again and have some drinks :state=171,etimergreater=1000,plrusingaction=1:state=165 :state=171,etimergreater=10000:state=165 :state=165:etimerstart,plrdisable=100000,state=181 ;//PLAYER :state=181:fpgcrawtextsize=26,fpgcrawtextfont=Arial,fpgcrawtextr=000,fpgcrawtextg=000,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80 :state=181:fpgcrawtext=Ill decide if I want anthing to do with "The Castle" I might be able to escape and let the professionals handle this but we'll see :state=181,etimergreater=1000,plrusingaction=1:state=175 :state=181,etimergreater=10000:state=175 :state=175:etimerstart,plrdisable=100000,state=191 ;//NPC :state=191:rotateheadrandom=20 :state=191:fpgcrawtextsize=24,fpgcrawtextfont=Arial,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15 :state=191:fpgcrawtext=Alright you take care of yourself :state=191,etimergreater=1000,plrusingaction=1:state=185 :state=191,etimergreater=10000:state=185 :state=185:etimerstart,plrdisable=100000,state=201 ;//PLAYER :state=201:fpgcrawtextsize=26,fpgcrawtextfont=Arial,fpgcrawtextr=000,fpgcrawtextg=000,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=80 :state=201:fpgcrawtext=I WANT NOTHING TO DO THIS THIS PLACE IM GETTING OUT ASAP IF YOU WANT TO GO BE MY GUEST BUT IM GONE! :state=201,etimergreater=1000,plrusingaction=1:state=195 :state=201,etimergreater=10000:state=195 :state=195:etimerstart,plrdisable=100000,state=211 ;//NPC :state=211:rotateheadrandom=20 :state=211:fpgcrawtextsize=24,fpgcrawtextfont=Arial,fpgcrawtextr=051,fpgcrawtextg=204,fpgcrawtextb=255,fpgcrawtextx=50,fpgcrawtexty=15 :state=211:fpgcrawtext=You might regret that later but its up to you Good Luck :state=211,etimergreater=1000,plrusingaction=1:state=205 :state=211,etimergreater=10000:state=205 :state=205:etimerstart,plrdisable=100000,state=221 ;//NPC WALKING WAYPOINTS AND VANISHING - You need to set up 4 waypoints for the script to work :state=221,shotdamage=1:state=290 :state=221:waypointstart,animate=92,state=215 :state=231,shotdamage=1:state=290 :state=231,waypointstate=3:waypointnext,animate=92,state=225 :state=241,shotdamage=1:state=290 :state=241,waypointstate=3:waypointnext,animate=92,state=235 :state=251,shotdamage=1:state=290 :state=251,waypointstate=3:waypointnext,animate=92,state=245 :state=261,shotdamage=1:state=290 :state=261,waypointstate=5:destroy ;End of Script