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 / How can this Be Achieved?

Author
Message
Punk13
17
Years of Service
User Offline
Joined: 7th Oct 2007
Location: In EpikLand!
Posted: 15th Jul 2008 21:42
Hey, i wad wondering, can Conditional Branch's be achieved with fpsc if so how. For those of you how dont get what im saying it like this


Iteams:
Key
Door

Branch

Door w/ key____
If you have the key itll open

door w/o key______It wont open


Another


If You want the player to choose something that will change the games direction


Something like this

Message: Do you want to go right or left

Choice 1____Go right
Choice 2_____Go left


Stuff like that can it be accomplished?

Little Bill
16
Years of Service
User Offline
Joined: 18th Jun 2008
Location: UK
Posted: 15th Jul 2008 21:56
The second is very possible with Plys mod.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 15th Jul 2008 23:03
Ummmm, all of that IS what the FPI language was created for.

FPI is, by pure definition, a "conditional" language.

When you say "Branch", I say "State".


Look:



There, you have two branches. If the player came to the door with a key, it opens and goes to state 2, if the player came to door and DIDN'T have a key, the player won't get through and it goes to state 1.


No mod needed. What you seek is, in essence, exactly what you have.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Punk13
17
Years of Service
User Offline
Joined: 7th Oct 2007
Location: In EpikLand!
Posted: 16th Jul 2008 05:05
cool thanks, this might be stupid but what is the best program/article to learn fpi off of?

xyzz1233
17
Years of Service
User Offline
Joined: 18th Nov 2007
Location:
Posted: 16th Jul 2008 06:05
Actually, I am kind of missing an "else condition," but that would only make some things slightly easier.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th Jul 2008 00:56
@Punk13:

The Official Community Guide has lots of FPI tutorials in it. Worth checking out.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 23rd Jul 2008 20:36
Quote: ":state=0,plrhaskey=1:<Open Door>,state=2
:state=0,plrhaskey=0:<Tell Plr to **** Off>,state=1"


LOL lovin that ply

Login to post a reply

Server time is: 2024-11-24 11:43:24
Your offset time is: 2024-11-24 11:43:24