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 / I failed on the default script :-(

Author
Message
Guardian99
15
Years of Service
User Offline
Joined: 21st Jul 2009
Location:
Posted: 22nd Jul 2009 01:33
I followed the directions in the fps creator manual to do a basic script and it didn\'t work haha. What\'s my error?

-create text document, check

In the document...

desc=Loop Sound When FPI Used
:state=0,state=1, loopsound=audio\\atmos\\alarm.wav

-save, check

-open fps creator, open a dynamic object, check

-replace \"main\" default script with \"my\" script, check

-run game, SCRIPT FAIL

:-(
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 22nd Jul 2009 01:57
Each line of script must have 2 colons in order to function.

I suggest checking out the tutorials found int he official community guide.


The one and only,


Crusader2
16
Years of Service
User Offline
Joined: 8th Aug 2008
Location: Somewhere...
Posted: 23rd Jul 2009 00:31
You can check out my tutorial.

Some people say that I'm crazy... And I agree.
USE PLY'S MOD!
Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 23rd Jul 2009 18:03
change this line:



to this:



A few tips on scripting:

1. All lines of script (except the desc= and commented lines) need to have two colons ( in them. The first colon tells FPSC to check that the conditions specified are true. The second colon tells FPSC what actions to take when the specified conditions are true. In your line above, the portion
means that FPSC needs to check if the current state for this script is 0. If it is, it then moves on to the next
and then performs these actions.

2. You'll notice that in your first script there were a couple of places where you had \\ in the wav path. You don't need two of them, only one. Like this: audio\atmos\alarm.wav.

Keep at it - you'll get better!

Priest of the Church of Joe Wood

In memory of Nanee. 9/1/1993 - 5/16/2009. Rest in Peace, little girl.

Login to post a reply

Server time is: 2024-11-25 03:46:14
Your offset time is: 2024-11-25 03:46:14