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 / reset / restore lives at start of new/next level

Author
Message
xymore
13
Years of Service
User Offline
Joined: 9th Jun 2011
Location: East coast, USA
Posted: 7th Jul 2011 07:52
hello

im using version 1.18 ...

was wondering if thier is a reset lives script

want to reward player with new life upon start of next level

i use "resetplrweapons" to start next level with no weapons

was wondering if something like that could be done to add lives ???
King Cobra
13
Years of Service
User Offline
Joined: 4th Apr 2011
Location: California
Posted: 7th Jul 2011 08:02
Look at this link...

http://forum.thegamecreators.com/?m=forum_view&t=186554&b=23

I asked the same question a few days ago but my question was in reference to health points, not lives.

The script provided there may help you.

GAME ON!!!!

--King Cobra

xymore
13
Years of Service
User Offline
Joined: 9th Jun 2011
Location: East coast, USA
Posted: 7th Jul 2011 08:07 Edited at: 7th Jul 2011 08:16
thanks for the reply King Cobra



is thier a "plrset" or "plradd" lives command ???

EDIT
is there a list of new v1.18 script commands anywhere ???
King Cobra
13
Years of Service
User Offline
Joined: 4th Apr 2011
Location: California
Posted: 7th Jul 2011 08:18
I'm not good at scripting, because I had to ask someone else to help me as well.

But...

I think you should change the

plrsethealth=500

to

plrsetlives=3

or whatever you want the player to start off with (in lives).

Maybe someone else should be able to provide more insight into your question since I am barely learning how to script myself.

But hey, play with the script. It may work. Let me know if it does.

GAME ON!!!

--King Cobra

maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 7th Jul 2011 12:43
setlive +1/-1:

http://forum.thegamecreators.com/?m=forum_view&t=186557&b=23
xymore
13
Years of Service
User Offline
Joined: 9th Jun 2011
Location: East coast, USA
Posted: 7th Jul 2011 22:08
@King Cobra
thanks for all the help


@ maho76
yes, thats exactly what i was needing
thank you so much for the link
works ... tested in game




Script posted by: Tax 78

Insert trigger in main areas

plrdistwithin = x-----> Change the value "100" depending on where you want to add the life level, 100 = segment

ADDVAR = $ PL 1------->"1" change depending on the screw to be added. If you want to remove a life insert -1

Script was originally posted by: Tax 78

Login to post a reply

Server time is: 2024-11-24 06:44:06
Your offset time is: 2024-11-24 06:44:06