Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Police script

Author
Message
Dream
16
Years of Service
User Offline
Joined: 25th Jan 2008
Location: Doncaster
Posted: 8th Mar 2008 16:24
Hey this is the first script i have attempted to do and i wondered what you think of it so far
although i havnt tested it so far as i dont know how to convert .text file too fpi maybe simple copying and pasting it in a orginal



It is meant too be a script for a police man and that only once you have shot him he starts too shoot you back also he chases you until you lose him then he sets back too his patrol
if anyone could develop this so multiple enemeys start searching for you thatd be great and if i have got a few things wqrong in the script please can some one correct them

thanks
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 8th Mar 2008 16:54
Quote: ";Artificial Intelligence script desc= Police script by james ;state=1,PLRINGUNSIGHT:state=1,WAYPOINT START ;state=1,shotdamage,:state1,SPAWNON,ROTATEPLR,SHOOTPLR ;state=1,IFPLAYERTRAIL=1,:state=1,FOLOWPLR ;state=1,PLRDISTANCE=10:state=1,RUNFPI=Police.fpi ;End of script "


Quote: "if i have got a few things wqrong in the script please can some one correct them "


Well, this is gonna take a while to type out...

A: Do not mix caps and lower case, it confuses FPSC...

B: Some commands, like WAYPOINTSTART, have been cut up, so they won't work....

C: Police.fpi, is that the name of this script or another, as if it is this script, you will just loop it...

D: Your states are all one, try making the part where he is searching state=1, then is shot, so goes into state=2,etc,etc....

E: You're only just actually spawning him in line 2, after he's supposed to have searched the player out....

F: You've left commas after some conditions, which don't have conditions after them.....

G: You've put semi-colons at the start of the lines instead of colons....

H: You've put rotateplr, which should be rotatetoplr, also, you missed out an l in followplr, and plrdistance should be plrdistwithin, also, you might want to set that plrdistwithin to about 300...

I: About saving it as an fpi, see the video in the download...

It's great that you're trying to learn, I recommend you have a good read up on Plystire's tutorials in Nickydude's guide....

Here's a more refined version of your script:


Attachments

Login to view attachments
Dream
16
Years of Service
User Offline
Joined: 25th Jan 2008
Location: Doncaster
Posted: 8th Mar 2008 17:01
Thanks coffee grunt i will definatly take in your advice

thanks again for sorting out that script
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 8th Mar 2008 17:11
Kk, no problem....

Str8upG
16
Years of Service
User Offline
Joined: 10th Mar 2008
Location:
Posted: 13th Mar 2008 02:29
is the script done?
Seth Black
FPSC Reloaded TGC Backer
19
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 14th Mar 2008 05:00 Edited at: 14th Mar 2008 05:01
Quote: "is the script done? "


...like, "...did you guys put it all together for me, done?"

This ain't a soup kitchen.

The script is complete, and it works very well, indeed.
It's up to you to do a little work, and learn how to put the pieces together for yourself...

ARE YOU A LONE WOLF? CLICK BELOW TO JOIN THE PACK.

Super Gamer Jack
16
Years of Service
User Offline
Joined: 6th Mar 2008
Location:
Posted: 20th Mar 2008 23:14
how do you change the scripts in notebook to FPI.
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 20th Mar 2008 23:53
Quote: "...like, "...did you guys put it all together for me, done?"

This ain't a soup kitchen. "


And we don't wear aprons while we serve you whatever script you want.
Script requests (due to the increase of them and the decrese of effort to do things themselves) are not allowed.

RIP Floating Skull unknown-2007 we will miss you in FPSC x10
Dream
16
Years of Service
User Offline
Joined: 25th Jan 2008
Location: Doncaster
Posted: 21st Mar 2008 10:38
No i wasnt requesting for a police script this is first one i tryed too do and wanted too know peoples opinions...

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 21st Mar 2008 11:22
@Dream:

I think he was talking to the other guy.


The one and only,
~PlystirE~

FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 21st Mar 2008 13:42
Str8upG was who I was talking to.At least you are trying to make an effort.That will get you farther than anything else.

RIP Floating Skull unknown-2007 we will miss you in FPSC x10
Dream
16
Years of Service
User Offline
Joined: 25th Jan 2008
Location: Doncaster
Posted: 21st Mar 2008 18:01
okay no problem
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 21st Mar 2008 20:45
To save in Notepad as an FPI, follow the extremely simple video tutorial I've uploaded just now.....

Attachments

Login to view attachments
Dream
16
Years of Service
User Offline
Joined: 25th Jan 2008
Location: Doncaster
Posted: 21st Mar 2008 20:59
cool thank you once again coffee grunt
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 21st Mar 2008 21:05
No problem.......

Gandalf the New
17
Years of Service
User Offline
Joined: 4th Sep 2007
Location:
Posted: 24th Mar 2008 21:22
hey, I just tested this, and when I shoot the guy, he does nothing, just stands there. Help?

and lulz
RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 26th Mar 2008 01:39
Quote: "hey, I just tested this, and when I shoot the guy, he does nothing, just stands there. Help?"

I haven't actually tested this out but I'm sure you have a simple problem. If you put this in the AiMain did you give him a shoot script or the other way around?

Zeppelin 37BDF
18
Years of Service
User Offline
Joined: 11th Jan 2006
Location:
Posted: 26th Mar 2008 02:30
Thanks for the script, but Dream, you seriously should delete your signature; and fast. There are young children on this forum and you never know if they might see it.

Gandalf the New
17
Years of Service
User Offline
Joined: 4th Sep 2007
Location:
Posted: 26th Mar 2008 20:22
@ Jenkins, I had it in the main, and I think I gave him a shoot script.

and lulz
RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 2nd Apr 2008 02:28
Quote: "and I think I gave him a shoot script."

You think lol? Well if you aren't positive try again and make sure you do. If you are still having the same problem I'll test it out and see how it works for me.

Login to post a reply

Server time is: 2024-11-24 05:53:05
Your offset time is: 2024-11-24 05:53:05