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 went wrong?!

Author
Message
RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 1st Nov 2006 06:30 Edited at: 9th Dec 2006 01:53
As we all know the AI in FPSC are dumn. so i tried rigging one of the default .FPI's that was already in the scriptbank. The enemy starts out like a good AI but once he is shot he will reload his gun forever (he just keeps reloading). If someone fixes this up and makes it better everyone can use it (its basically just a default script anyways.)

I'm still really new to FPS but I'm tryin










Tiggle bitties you say? What is that?

I don't know.
Silent Thunder
18
Years of Service
User Offline
Joined: 6th Feb 2006
Location: The Ship
Posted: 2nd Nov 2006 00:23
i recommend putting that stuff into a code box, like this one:



I'm no expert at scripting, but can you have two equal states?
ex. state 3 and state 3, 5 and 5, 8 and 8, three 4's???

I didn't think that you could but like I said, I'm also a noob at scripting stuff.

RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 2nd Nov 2006 01:31
I don't know how to put it in a snippet. I tried rearranging the states to make no sets but it still didn't work. I will learn this scripting ONE DAY!
Silent Thunder
18
Years of Service
User Offline
Joined: 6th Feb 2006
Location: The Ship
Posted: 2nd Nov 2006 03:09 Edited at: 2nd Nov 2006 03:10
it's great that you are learning scripting bythe way

to make a code box, simply paste the code into your message, highlight it, then press the "code" button.

RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 2nd Nov 2006 07:22
Yeah i'm tryin but it's not the easiest thing!

phil17
18
Years of Service
User Offline
Joined: 1st Apr 2006
Location:
Posted: 4th Dec 2006 01:44 Edited at: 4th Dec 2006 01:45
This is a great tool for learning to script.
http://forum.thegamecreators.com/?m=forum_view&t=62056&b=23

When I step into this library, I cannot understand why I ever step out of it.
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 4th Dec 2006 01:50 Edited at: 4th Dec 2006 01:53
UH, your script doesn't have a state 2.


the above line (when the reload anim starts) only goes to state=2, but you don't have a state=2 in your script, so the anim will never finish.

Also in this line



you tell the character to follow the player (so he'll move), but then you don't call the running animation. change it to


And Silent thunder, of course you can have 2 states with the same number, think about it:



that works and both those states start with the same number.

***EDIT***
Quote: "As we all know the AI in FPSC are dumn"

or dumb.

And it's not all bad, they give you the basis. You can inprove the chase, cover and snipe scripts simply by adding 2 lines of code.

Or you could check out Sensei, or Airslide's AI both give you much more flexible AI options.

Les Horribres
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 5th Dec 2006 08:20 Edited at: 9th Dec 2006 01:54
Ignore the CodeSnipit noobies... they are all scared of code, so they hide it in little 'code boxes'.

Tear and Shread version of what you have. I removed the redundant setFrame and just animated it instead. Strange that you animate reloading all over, removed that too. Removed use of 'freeze' redundant command, don't use it. removed many 'pre' commands, including ":ifweapon=1:state=1" as that overrides the rest of the commands and/or are redundant. Fixed state paths. Removed the =random number as those conditions don't need variables. Relocated ShotDammage since it does not need a state. Added in a single line to make it work. Added in "state=3" as an action to state=1, resetting the loop. Removed shotdammage as a stateless condition may cause errors, reinstated as a state=3 with alternate action.

Wisemen are hard to find, they are tarnished by sayings and quotes that are not of their true nature.
RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 9th Dec 2006 01:03 Edited at: 9th Dec 2006 01:05
Quote: "or dumb."

Woops, lol. Accidently hit "N" instead of "B"

Thanks guys, I'll try out that script Les Horribres.

A little off topic, where did you start when you started learning scripting? question to all 3 of you. I'm trying to learn but I don't get any better. I went through Bullshocks turtorial, but it didn't help too much, it was good but not totally awesome. Any tips?

Phil 17- I have fpi maker, but it doesn't work on my computer. It doesn't open, ever. It did the first few days, but it won't anymore.

Tiggle bitties you say? What is that?

I don't know.

Login to post a reply

Server time is: 2024-11-23 05:02:43
Your offset time is: 2024-11-23 05:02:43