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 / what is wrong with my script?

Author
Message
Changes
17
Years of Service
User Offline
Joined: 7th May 2007
Location: Scotland
Posted: 16th Mar 2008 16:20 Edited at: 16th Mar 2008 16:22
What is wrong with my script i dont see anything wrong with it.



jamie
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 16th Mar 2008 16:34
Don't put spaces in...

It's ROTATETOPLR, not ROTATEPLR....

You need to put states at the end of your lines that will bring them back to state 2.....

It would help more if you told me what isn't working.....

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 16th Mar 2008 16:44
ou should go back over the conventions for fpi scripting. Which are actions and which are conditions, and where they go in the script. Remember there are always two colons on each line.

Quote: "state=1,plrcanbeseen, sound=audiobankguardgetbackhere.wav, state=2"


probably should be:state=1,plrcanbeseen: sound=audiobank\guardgetbackhere.wav,state=2

Watch for extra spaces, missing colons and actions where conditions should be.


Quote: ":state=2,plrdistfurther=50,rateoffire:rotateplr"


I don't know what rateoffife is and it's rotatetoplr

Quote: "state=2,plrdistwithin=10, plradddhealth=-50"


Again, watch for extra spaces.

Best.

Changes
17
Years of Service
User Offline
Joined: 7th May 2007
Location: Scotland
Posted: 16th Mar 2008 16:48
thanks il see if this works

jamie
Changes
17
Years of Service
User Offline
Joined: 7th May 2007
Location: Scotland
Posted: 16th Mar 2008 16:50
no the npc still remains unresponsive

jamie
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 16th Mar 2008 16:51
And the script still remains invisible.

Changes
17
Years of Service
User Offline
Joined: 7th May 2007
Location: Scotland
Posted: 16th Mar 2008 17:07
what?

jamie
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 16th Mar 2008 21:21 Edited at: 16th Mar 2008 21:23
Post the changed script. We can't see what you did. Is this the characters AIMain?

Look for PlystirE's AI Script Tutorial. He just did it a day or two ago.

Best.

Changes
17
Years of Service
User Offline
Joined: 7th May 2007
Location: Scotland
Posted: 17th Mar 2008 19:24
i dont know if this is main or whatever but here it is the changed code



jamie
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 17th Mar 2008 19:44
You didn't make any of the changes we showed you. The script will not work until you do. You need to have a basic understanding of the scripting language before you try making complex AI scripts.

There is a scripting tutorial on my site that will give you the basics of the language, what the syntax is and how the engine executes a script. After that, look at PlystirE's tutorial that I referenced above, and it will show you how to make this script.

best.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 17th Mar 2008 22:27
You have also mispelled "plraddhealth"... looks like you got 3 d's in there.

Why did you put quotes around you're scripting lines? That doesn't make any sense.

Two of your lines are missing the "action colon", a few spots have a space after a comma (shouldn't matter, but it's bad coding practice)


Keep at it. Looks like you have a lot of little mistakes, although the logic seems like it would work, make your waypoints a seperate portion of the script. If you read my tutorial, you'll notice that I make a huge emphasis on how to create an effective waypoint system. I also mention that if you want the guard to do something OTHER than follow waypoints, you'll need to STOP him from following waypoints.


Good luck!


The one and only,
~PlystirE~

Changes
17
Years of Service
User Offline
Joined: 7th May 2007
Location: Scotland
Posted: 18th Mar 2008 18:03
thanks

jamie

Login to post a reply

Server time is: 2024-11-24 06:11:25
Your offset time is: 2024-11-24 06:11:25