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 / Win by death

Author
Message
glyvin101
21
Years of Service
User Offline
Joined: 27th Jan 2005
Location:
Posted: 15th Dec 2005 00:35
Hello, I could really use a script were when you die the level ends and is completed sucessfully. I have searched the forums for die and death with no luck. Any help is greatly appreciated.

Glyvin101
bond1
20
Years of Service
User Offline
Joined: 27th Oct 2005
Location:
Posted: 15th Dec 2005 05:58 Edited at: 15th Dec 2005 11:08
I got you covered: Place this fpi in your scriptbank folder and name it "plrinzonedie.fpi"


Create a "Win Zone" and stretch it across your entire level. Right click on it to access its properties. Then change the Main AI script to the one I provided. When you die the level will end.

EDIT: THIS SCRIPT DOESN'T WORK CORRECTLY, SEE MY POST BELOW FOR THE FIXED VERSION
glyvin101
21
Years of Service
User Offline
Joined: 27th Jan 2005
Location:
Posted: 15th Dec 2005 06:08
thank you very much sir you have been very helpful to me though your models and now this. I will try it tommrow thx
bond1
20
Years of Service
User Offline
Joined: 27th Oct 2005
Location:
Posted: 15th Dec 2005 09:43 Edited at: 15th Dec 2005 11:18
I found a few problems with the first script, and fixed them. I had to add a few extra states to account for the fact that you can still receive damage after triggering the win-zone. Use this new script as I instructed above. It works perfectly now...die and win the level.



Sooo...I'm interested in why you would want to win by dying?
glyvin101
21
Years of Service
User Offline
Joined: 27th Jan 2005
Location:
Posted: 15th Dec 2005 22:07
Its kinda like a nightmare you die and then wake up and the real game begins
bond1
20
Years of Service
User Offline
Joined: 27th Oct 2005
Location:
Posted: 15th Dec 2005 22:13
Aha...sweet...
glyvin101
21
Years of Service
User Offline
Joined: 27th Jan 2005
Location:
Posted: 16th Dec 2005 00:14
yeah its for a biology project extra credit making a game were the world getts infected by rabies
Gamz
20
Years of Service
User Offline
Joined: 28th Nov 2005
Location: A bubble!
Posted: 16th Dec 2005 19:08
Wow...*grabs shotgun and hides in corner* Im ready!!!

Although my opinion will change, the fact that I am right will not.
himynameisali
22
Years of Service
User Offline
Joined: 9th Nov 2003
Location: England, You...Rastards!
Posted: 17th Dec 2005 22:39
Quote: "Its kinda like a nightmare you die and then wake up and the real game begins"


Just a bit like in 'The Chronicles of Riddick : EFBB' , but he wakes up and it's a dream, THEN the real thing begins, hehe .

(formally Ali M)
"The wisest mind has something yet to learn ."
glyvin101
21
Years of Service
User Offline
Joined: 27th Jan 2005
Location:
Posted: 18th Dec 2005 17:54
yes that was a awesome game
Les Horribres
20
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 20th Dec 2005 16:54 Edited at: 20th Dec 2005 17:02
attachs to a "Item"

set isObjective to 2

:plrhealthless=2:playertake

that should work, but need to test a little...

Okay, this seems funny, although I don't know why, when you take dammage it goes fore 1.

Anti-Noob Justice League, an ANJL of Mercy.
[url=ochanicon.gif]

Login to post a reply

Server time is: 2026-06-05 23:07:14
Your offset time is: 2026-06-05 23:07:14