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.

FPS Creator X10 / Not letting me load custom scripts

Author
Message
Jaden45
16
Years of Service
User Offline
Joined: 6th Aug 2008
Location:
Posted: 13th Aug 2008 01:04
hmmmm.... this is frustrating me allot
whenever i try to give an entity a custom
script i never shows that its even there.
Example: I was trying to give a switch and
differant script so you had to enter a key code
but when i browse to try to find it its not there!
i made it a .fpi file and made sure everything was right.
heres the script
;Artificial Intelligence Script
; by xplosys

;INSTRUCTIONS

; In the lines state=10 through state=13
; change the scancodekeypressed=X value
; to change the access code.
;
; The code is only required to open and
; not to close. For instance, if used to
; open a door, the access code will open
; the door and the enter key will close
; it again.


;Header

desc = Switch Activate (enter pass code)

;Triggers

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\enteraccesscode.tga,hudname=useswitchprompt,hudhide=1,hudmake=display,state=10
:plrdistwithin=50:hudshow=useswitchprompt,hudfadeout=useswitchprompt

:state=10,plrdistwithin=50,scancodekeypressed=79:state=11,sound=audiobank\switches\press.wav
:state=11,plrdistwithin=50,scancodekeypressed=80:state=12,sound=audiobank\switches\press.wav
:state=12,plrdistwithin=50,scancodekeypressed=81:state=13,sound=audiobank\switches\press.wav
:state=13,plrdistwithin=50,scancodekeypressed=75:state=14,sound=audiobank\switches\press.wav

:state=14:state=1,plrsound=$0,activateifused=1,alttexture=1
:state=1,plrusingaction=0:state=2
:state=2,plrdistwithin=50,plrusingaction=1:state=3,plrsound=$1,activateifused=0,alttexture=0
:state=3,plrusingaction=0:state=10

;End of Script
any ideas why its not recognizing custom scripts?
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 13th Aug 2008 01:44
Are you sure you saved with the extension ".fpi"? and not as "xxx.txt" or "xxx.fpi.txt"?

Jaden45
16
Years of Service
User Offline
Joined: 6th Aug 2008
Location:
Posted: 13th Aug 2008 20:03
yeah its definitly an .fpi file
it just doesn't show when i go into
entitie settings and try to change the script
TGPEG
17
Years of Service
User Offline
Joined: 28th Dec 2006
Location: Bristol, United Kingdom
Posted: 14th Aug 2008 10:25 Edited at: 14th Aug 2008 10:26
Is it definitely stored in the scriptbank? And did you set it to ANSI encoding?

[center]
Jaden45
16
Years of Service
User Offline
Joined: 6th Aug 2008
Location:
Posted: 14th Aug 2008 23:16
I got it to work now ;/
I was putting the script in c:/computer/program files/the game creators/files/fpsc x10 files/scriptbank

but then i found a file in my documents and there was a script bank in there and i put the file in there an it works now!

Login to post a reply

Server time is: 2024-11-25 21:46:56
Your offset time is: 2024-11-25 21:46:56