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 / Is it possible to script a 'Bonus/Extra' life Pickup without using a Mod?

Author
Message
Ross tra damus
3D Media Maker
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Looking to Escape London
Posted: 11th Feb 2012 17:28
Hello All

I've been looking into this (and searched) and have not seen any possible way to do this without using a Mod.
Has anyone found a scripting solution to this method?

All advise is welcomed.

Cheers
Ross
Cross Hair Games
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Canada Eh\'
Posted: 12th Feb 2012 06:24 Edited at: 12th Feb 2012 06:27
I'll look into this more

---------------EDIT--------------
sorry, dont think it is

Ross tra damus
3D Media Maker
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Looking to Escape London
Posted: 12th Feb 2012 10:41
Thanks for the reply and your time Cross Hair Games.

Sad but True that this feature cannot be accomplished easier with a script, its a feature I think that should be a 'Must have' for FPSC.

It looks like I'll have to go down the 'Add Health' route instead.

Cheers and all the best of luck.

Ross
JRH
18
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Stirling, UK
Posted: 12th Feb 2012 12:57
I've added this command to the FPSC source code many times. Its really simple to implement, and I'm surprised it isn't in the stock engine by now.

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 12th Feb 2012 19:19
Quote: "I've been looking into this (and searched) and have not seen any possible way to do this without using a Mod.
Has anyone found a scripting solution to this method?"


As mentioned by Cross Hair Games, it is only possible if the source is modded. We added a simple action command to allow us to give a specified number of bonus lives via script. Until something like that is added to the source, there is nothing available except for those of us that mod and add our own commands.

I did take my snippet of code and forwarded it to Scene Commander and told him if he wished to, he could add it in the source. It is a good idea to have it, as we use it in "fantasy" and "puzzle" style games.


Twitter: @NFoxMedia
Ross tra damus
3D Media Maker
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Looking to Escape London
Posted: 12th Feb 2012 21:32
Blackfox

Thanks for the Info.
Its a shame because I was going to get a few '1UP'S' together for the 'new' DungeonBuilder Pack but now have to settle for health UP'S instead.

All the best of luck
Cheers
Ross
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 12th Feb 2012 21:41
Quote: "Its a shame because I was going to get a few '1UP'S' together for the 'new' DungeonBuilder Pack but now have to settle for health UP'S instead."


Well don't lose hope yet. I did direct Scene Commander to this thread and gave him my code. I can understand your need for them- we use this quite often in our development genres where the command would be of great value. It does not really suit the modern warfare or SciFi games, but a fantasy/egyptian style with dungeons and puzzle rooms. Makes you want to find the item or solve the level just to get the bonus life. Opens up some doors for developments.


Twitter: @NFoxMedia
Cross Hair Games
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Canada Eh\'
Posted: 12th Feb 2012 21:44
It doesn't add more to options, why do people play games like Skyrim and others after they've beat the main story, because there's always more to get, having this life up would do the same thing. The level would still be do able without it, but finding to would help and benifet the player

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 12th Feb 2012 21:51 Edited at: 12th Feb 2012 21:53
Quote: "It doesn't add more to options, why do people play games like Skyrim and others after they've beat the main story, because there's always more to get"


I do not play Skyrim so I can't respond to your first comment. My post was mainly directed to our development work where the bonus life does not fit the developments we have in the modern warfare or SciFi. Now in my wife's development (Egyptian/Fantasy/Puzzle), the bonus life would be handy and that is why we put it in our source.

The other side here is it allows the modelers like Ross, my wife, and all the others that make media packs for the community to develop packs that use features such as this.


Twitter: @NFoxMedia
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 13th Feb 2012 18:00
Technically this should be possible without a mod, but you will need v119, it may work in v118, but I less certain about that.
You should be able to do it by using the variable commands together with the internal variable $PL. So:
Setvar=$PL 5 would set the players lives to 5
Addvar=$PL 1 should add 1 to the player's lives.
Not tried this myself, but it should do the job.

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 13th Feb 2012 19:17 Edited at: 13th Feb 2012 19:18
Good catch, Ched80. I forgot about the $PL variable.

I have this script which gives the player one additional life when they are in the trigger zone:



So it does work in v1.18 and v1.19 since the variable exists in those engines. Anyone running v1.17 and lower will not be able to utilize this idea, unless they are running a modded version with the variable system in it.

There you go Ross. An easy solution for you now.


Twitter: @NFoxMedia
Cross Hair Games
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Canada Eh\'
Posted: 13th Feb 2012 19:19
how did I over look that

BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 13th Feb 2012 20:18
Quote: "how did I over look that"


Probably the same as we did. We never used it yet. But at least now we know it is there and can be done. I guess Scene Commander will have a chuckle now after getting my email and code.


Twitter: @NFoxMedia
Ross tra damus
3D Media Maker
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Looking to Escape London
Posted: 13th Feb 2012 21:28
Ched80
Thank you 'very' much for Info, I'm using FPSC v-1.17 at the moment and I will install v-1.19 'soon' and see what I can come up with (no rush at the moment though).

BlackFox
Thanks again for your Input regarding this subject and for the script info which should help me 'Lots' when I get V-1.19 installed and take a look at it.

Cross Hair Games
Cheers again.

I will post any scripts here if and when they are working.
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 13th Feb 2012 21:40
No problem. I sent you an email in case you had missed this. At least you know it can be done.

We still run v1.17 as well, but we have the variable system ported into our source so we can use this feature. But those that are on the vanilla v1.17 will not be able to see the life change via script.

If you have any issues and need a hand, feel free to email myself or Cathy. We're more than willing to help you out if you get stuck.


Twitter: @NFoxMedia

Login to post a reply

Server time is: 2024-11-24 01:23:14
Your offset time is: 2024-11-24 01:23:14