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 / Whats wrong with this script (the newest gameshow sweeping TGC forums!!)

Author
Message
chorelan
13
Years of Service
User Offline
Joined: 9th Dec 2010
Location: trolling in a forum near you!
Posted: 20th Jan 2011 00:26
in all seriousness i cant figure put this script. im trying to use camera shake to shake with different amounts depending on the players health. this is what i have so far

;Artificial Intelligence Script

;Header

desc = camera shake depending on players health

;Triggers

:state=0,plrhealthless=75:state=1
:state=1,camshake=3,plrhealthless=50:state=2
:state=2,camshake=8,,plrhealthless=25:state=3
:state=3,camshake=15

;End of Script

bhawkgames.blogspot.org
raymondlee306
15
Years of Service
User Offline
Joined: 24th Oct 2009
Location: Ohio
Posted: 20th Jan 2011 02:24
I am terrible at scripting as well, but, what if the players health is 35. That meets the conditions for both state=1 and state=2. But I might be steering you the wrong way...
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 20th Jan 2011 02:55 Edited at: 20th Jan 2011 02:59
camshake is an action not a condition.

FPI EditPad has a help file that explains the structure of a command line.


Edit:

The subject title does sound like a game show name. I like a person with a sense of humour.
Bejasc3D
16
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Down Under
Posted: 20th Jan 2011 04:12
I'm no scripter, and I'm not at my FPSC computer, so I cant test this, but try this instead.

;Artificial Intelligence Script

;Header

desc = camera shake depending on players health

;Triggers

:state=0,plrhealthless=75:state=1
:state=1,plrhealthless=50:camshake=3,state=2
:state=2,plrhealthless=25:camshake=8,state=3
:state=3,plrhealthless=10:camshake=15,state=1
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 20th Jan 2011 23:24
I think that's how it shuld be done titanium

Srry about my english im from sweeden
chorelan
13
Years of Service
User Offline
Joined: 9th Dec 2010
Location: trolling in a forum near you!
Posted: 21st Jan 2011 00:22
ive tested it, its not working for watever reason

bhawkgames.blogspot.org
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 21st Jan 2011 07:25
I can see that if the script DOES work, it would make the player very sick to their stomach when they get low on health.

Remove the states completely from your script and get rid of the first line (It's not needed)


The one and only,


Only those who sow the seeds of their desires will reap their benefits later.
However, I have seeds of my own to tend to. I don't have time to be someone else's watering can.

Login to post a reply

Server time is: 2024-11-24 13:46:11
Your offset time is: 2024-11-24 13:46:11