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 / Dossier and Script problems

Author
Message
tonycrew
14
Years of Service
User Offline
Joined: 8th Jan 2010
Location:
Posted: 15th Jan 2010 15:52
Hi all i have placed a dossier to collect in my game, but when i collect it in test mode the games exits back to the FPs editor.?

I am using a script from one of the posts on these forums.



Then in the dossiers properties "if used" textonscreen.fpi

Anyone know why it exits..?

Even if i don't set anything and use just a dossier on it's own it just exits.

Thanks for any help.
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 15th Jan 2010 17:51 Edited at: 15th Jan 2010 17:55
There's no action in that script telling the item to be picked up by the player, and also you fpi files aren't supposed to be put in an ifused parameter. The stock dossier comes with a pickup script which should work for you.

EDIT: Just re-read your post, did you mean the text should show when the dossier has been picked up? If so, name the trigger zone textshow. In the dossiers IfUsed properties, set it to textshow. Set the following script to be the dossier's main script:

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pickedupanitem.tga,hudname=itemprompt,hudhide=1,hudmake=display,state=10
:state=10,plrdistwithin=40:state=1,activateifused=1,playertake,coloff,plrsound=audiobank\misc\ping.wav,hudshow=itemprompt,hudfadeout=itemprompt
:state=1:rundecal=5

Now set the main script of the trigger zone to the one below:

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\Dossier01.jpg,hudname=yourhud,hudhide=1,hudmake=display,state=1
:state=1:activated=1,state=2
:state=2,plrwithinzone=1:hudshow=yourhud,state=3
:state=3,plrwithinzone=0:hudunshow=yourhud,state=2


FPSC MIGRATION: http://bit.ly/5I8LYO
FPSC NUCLEAR EXPLOSION: http://bit.ly/67v8GI
Bootlicker
15
Years of Service
User Offline
Joined: 29th Mar 2009
Location: Germany
Posted: 15th Jan 2010 21:52
lol, I have no idea about scripting but dont the stock dossiers come with a number in the objective field? just change that to 0....

Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 16th Jan 2010 08:22
Quote: "I have no idea about scripting but dont the stock dossiers come with a number in the objective field? just change that to 0"


Yeah, that will stop FPSC from closing. It's closing because FPSC thinks you've won the game by collecting all the objectives.


FPSC MIGRATION: http://bit.ly/5I8LYO
FPSC NUCLEAR EXPLOSION: http://bit.ly/67v8GI

Login to post a reply

Server time is: 2024-11-25 03:36:09
Your offset time is: 2024-11-25 03:36:09