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 / Help with a script

Author
Message
EliteKill
16
Years of Service
User Offline
Joined: 4th Dec 2007
Location:
Posted: 4th Dec 2007 13:03
Hi everyone im new here. I'm having problems creating a script. I want that when the player destroys a monster (called boos1), a door (called door3) will open (and stay open if possible). I have tried modifying current scripts (like DestroyAndActivate) and creating a script frpm scratch' but neither things suceeded. if some1 can help me i would be grateful.
Captain Kirk
19
Years of Service
User Offline
Joined: 30th Aug 2005
Location: Sickbay
Posted: 5th Dec 2007 20:32 Edited at: 5th Dec 2007 20:38
Hi!

Try this:

Firt find your boss character's fpe file. For example: deafult characters are installed here: "entitybankscificharacters"

You need to edit this fpe file. insert this line:
ifused = bossdoor

to the ;ai section, but before the ;spawn section

Now you need to edit the destroy script (fadecorpse.fpi by default):
you can find destroy scripts in scriptbankdestroy folder

But the best, if you make a new one:
open notepad, and insert the attched code.



Then save as fadecorpse2.fpi into scriptbankdestroy folder

Rightclick on the boss character and replace a destroy script with this new one.

Next step is to place a remote door.
Then right click on this remote door, and rename it to bossdoor

I hope this will working

EDIT:
Here is an other solution:
http://forum.thegamecreators.com/?m=forum_view&t=109868&b=23
EliteKill
16
Years of Service
User Offline
Joined: 4th Dec 2007
Location:
Posted: 6th Dec 2007 16:42
Thank you very much!

Login to post a reply

Server time is: 2024-11-24 02:01:45
Your offset time is: 2024-11-24 02:01:45