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 / Item-based alternate ending?

Author
Message
Gemstone Games
18
Years of Service
User Offline
Joined: 5th Jul 2006
Location:
Posted: 3rd Oct 2007 22:28
Okay, I know there's a way to collect items for points, but here's something I thought of in development of my new game idea.

What if, at a certain point in the game, a certain number of items have to be collected in order to obtain one ending, and if you don't have all of those items, you end up getting another ending? The end level's going to be the same regardless, but I kinda want to develop the level around these items, like, if you get one version of the ending, you start off with full health, but you have less powerups. However, if you get the other ending, you don't start off with as much health, but there's a significant amount of ammo around to at least give you a chance.

Any ideas how to do this, if it's able to be done?
game lover
17
Years of Service
User Offline
Joined: 27th Apr 2007
Location:
Posted: 3rd Oct 2007 22:39
Well I thought about this before as well, and how this could be done, well I'm not sure. I'll report back if I find something.

We all want to be awesome, but does awesome want to be us?
Gemstone Games
18
Years of Service
User Offline
Joined: 5th Jul 2006
Location:
Posted: 4th Oct 2007 01:08
I made sure to at least search the forum before posting and couldn't find anything on the topic. If there isn't a way to, I can still do the game, but it'd be nice to be able to add to the story using that kind of system. At least it's nice to know that I'm not the only one thinking along these lines.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 4th Oct 2007 01:17
It's going to be tough without any kind of inventory system, but this may give you some ideas.

Best.

I'm sorry, my answers are limited. You must ask the right question.

Gemstone Games
18
Years of Service
User Offline
Joined: 5th Jul 2006
Location:
Posted: 4th Oct 2007 20:03
While that may not solve my immediate problem (the items in question would be through the whole game, not just one level), that script set has given me an idea for the game's overall design, in particular a maze-type level I was considering. Thank you, Xplosys.
force master
17
Years of Service
User Offline
Joined: 21st Sep 2007
Location:
Posted: 5th Oct 2007 23:33
I have thought about this.

You would need a script that would write to a text file what inventory you have. After the game over script ran, it would check the inventory and deliver an ending that would display only if you have a certain inventory.

btw this is pseudo code.

if inventory_sub (wrench, hat, baseballcard) { then display "x.avi" } else if inventory_sub (wrench, hat, knife) { then display "y.avi" }elseif {display "z.avi" } ENDIF

There is no way to do this with fpsc with the current source, your going to need extra variables and a script built in for keeping track of this. Plus on top of this you are going to need to assign another variable to each item that will be part of the set so that you can even do this.
Gemstone Games
18
Years of Service
User Offline
Joined: 5th Jul 2006
Location:
Posted: 6th Oct 2007 08:14
@ Force Master:

Okay, I get what you're saying, and yes, I was afraid FPSC wouldn't be able to handle it. BUT, what about DarkBASIC Pro? Would there be a way to use the DBP language to do this in a different type of game? Because if I can't do this on FPSC, I'd at least like to be able to try it on a different game idea in the future.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 6th Oct 2007 08:16
DBP can, yes. Because it (unlike FPSC) is a programming language and not a level editor that attaches pre-made code or scripts onto everything to make it work.


The one and only,
~PlystirE~

In Soviet Russia, road forks you!

Mom: I may not be the alpha and omega, but I can sure as hell be yours!
Gemstone Games
18
Years of Service
User Offline
Joined: 5th Jul 2006
Location:
Posted: 6th Oct 2007 08:32
@ Plystire:

Nice! Now I have even more reason to get DBP later. All TGC needs to make now is a full-functional RPG maker and all my developing needs would be met by one company.

So long story short, I'd be able to create a somewhat-complex game with FPSC, but for the kind of things that I'm wanting to do, it's going to be worth investing in DBP eventually, if nothing else to see what kind of improvements (other than Empty's mod) can be done to FPSC. Correct?
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 6th Oct 2007 09:29
Well, if you know how to program, then yes, I'd say it'd be a very wise investment over FPSC or any kind of editor game maker, for that matter.

But then again I'm a veteran DBP programmer and here I am playing around with FPSC, lol.


The one and only,
~PlystirE~

In Soviet Russia, road forks you!

Mom: I may not be the alpha and omega, but I can sure as hell be yours!

Login to post a reply

Server time is: 2024-11-23 22:42:14
Your offset time is: 2024-11-23 22:42:14