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 / New with scripting. Cannot figure it out...

Author
Message
PekelaarSFX
14
Years of Service
User Offline
Joined: 11th Apr 2010
Location: Netherlands
Posted: 4th Mar 2013 17:17
Hey guys. Since I need some costum scripts for my game I dived into the tutorials and did my best to understand. I made a script that should halt the player, shake the camera while activating the Motionsickness postprocess effect..



Can someone explain what I did wrong and how to make it work?

Don't as what your country can do for you, ask what you can do for your country. - Winston Churchill
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 4th Mar 2013 18:04 Edited at: 4th Mar 2013 18:05
If you want to be good at scripting, I will give you a very important tipp:
If something is not working like you want, do this:
- go through every line of your script or find the one which is not working
-check all the conditions and actions(right spelled, do they what you think they do, and so on)
-go from state to state to look for blocking states
-If everything seems correct, start at a total empty script and try another way


With this you will find your mistakes very fast:


If not, take this. But just if you really not find your mistake and you should, if you want to be a scripter:


your scripter friend corno_1


BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 4th Mar 2013 18:16
When you use the "setposteffect=motionsickness" (or any other effect), you also have to set it back to "none". Otherwise your motion sickness will always be active. Any time you use the "setposteffect=x", always set back to "none" at the end of the script so the effect is turned off (unless you want it on throughout the game).

Here is a simple script showing what I mean:



The script is attached to a trigger zone. Player enters zone, is frozen for 3 seconds and motion sickness activates. As the timer counts, the camera shakes. At the 3.5 second mark, motion sickness is turned off and the script ends.


There's no problem that can't be solved without applying a little scripting.
PekelaarSFX
14
Years of Service
User Offline
Joined: 11th Apr 2010
Location: Netherlands
Posted: 4th Mar 2013 18:40
Thanks for the help guys! Really admire your helpfullness!

Don't as what your country can do for you, ask what you can do for your country. - Winston Churchill
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 11th Mar 2013 23:26 Edited at: 11th Mar 2013 23:30
o0ps
I overlooked Corno_01's post

Was going to point out that the first line of state=1 goes to state 3 and causes the other two lines in state=1 to be ignored.

-     -     -

Login to post a reply

Server time is: 2024-11-23 17:22:28
Your offset time is: 2024-11-23 17:22:28