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 / Im new at this scrpting, and what did i do wrong here...?

Author
Message
axifer designs
18
Years of Service
User Offline
Joined: 26th Sep 2006
Location:
Posted: 27th Oct 2006 00:29


The above script never worked for me. what did i do wrong? it was a script to make an enemy respond to any noise the player made what so ever. I originally tried to make a whistle option and the enemy respond to that, but no luck .

-axifer

Visit axifer.tk ! my new site!
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 27th Oct 2006 04:41
You are not using the proper format for the conditions and actions.

:CONDITION,CONDITION:ACTION,ACTION

The line starts with a colon. ( you got that right )

Lets looks at the first line....

:state=0, NOISEHEARD= , state=1

It should read...

:state=0,noiseheard=5:state=1

See how the second colon separates the conditions and actions?
Commas separate two conditions or they separate two actions.
Only the colon can separate the conditions from the actions.

What is state=1 about?

:state=1, LOOKATPLR=360, state=2

LOOKATPLR=360 ... what the heck is that?
do you mean ... ROTATETOPLR ?

If so that action could be added to state=0 and skip state=1 like so...

:state=0,noiseheard=5:rotatetoplr,state=2

NOTE that it was added to the right of the second colon because it is an action.
If it were a condition then it would be to the left of the second colon.

You need to look in the scripts that came with FPSC.
Look in the following folder for examples of basic fpi scripting...

...\FPS Creator\Files\scriptbank\people


Don't forget to visit Conjured Entertainment
filya
18
Years of Service
User Offline
Joined: 23rd Aug 2006
Location: USA
Posted: 27th Oct 2006 04:48
conjured, appreciate your patience and helping nature

-- n00b at playing games...and now at making em too :p --
axifer designs
18
Years of Service
User Offline
Joined: 26th Sep 2006
Location:
Posted: 27th Oct 2006 05:18
thx so much. how do u KNOW SO MUCH??? lol.

Visit axifer.tk ! my new site!
David
18
Years of Service
User Offline
Joined: 27th Jun 2006
Location:
Posted: 27th Oct 2006 07:55
Maybe he read the manual.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 27th Oct 2006 16:14
This may be helpful as well:

http://www.fpsfree.com/f10p22s06c/scripts/fpi_script.htm

Best.

The forum provides a means to hide our true identity. Too bad we always screw up and let it be seen.

Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 2nd Nov 2006 22:22 Edited at: 2nd Nov 2006 22:23
I love noob script questions!



Nue B. or not Nue B. That is the question.
RedneckRambo
18
Years of Service
User Offline
Joined: 19th Oct 2006
Location: Worst state in USA... California
Posted: 3rd Nov 2006 07:44
I'm terrible at scripting but i'm learning. But i was going to say "I don't think you can use spaces... I wouldn't take my advice though."

Pus In Boots
19
Years of Service
User Offline
Joined: 5th Nov 2005
Location: S.M.I.L.E. industries
Posted: 8th Nov 2006 17:02
Im almost positive there's no NOISEHEARD function in the FPI's.

You don't have to be insane to answer my questions, but it helps

visit www.gameshell.tk
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 8th Nov 2006 17:31
Quote: "NOISEHEARD=X is true when the entity hears a broadcast noise from scene
"


Good thing you're just "almost" positive. lol

Best[

The forum provides a means to hide our true identity. Too bad we always screw up and let it be seen.

Login to post a reply

Server time is: 2024-11-23 04:09:16
Your offset time is: 2024-11-23 04:09:16