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 / Lower water level by a switch, and more questions!

Author
Message
Yogi
15
Years of Service
User Offline
Joined: 26th Dec 2009
Location: Roaming....
Posted: 27th Dec 2009 08:27
Hello everyone! I'm new to FPS Creator

I still cant script well even read those tutorial

I want to create these effects in my game:

1.Lower water level by a switch:

I can make it by a trigger zone with lowerwaterlevel.fpi,

but when I add it to switch3.fpi in line 13(I use switch3 entity)

looks like this

It doesn't work and the msg "Press enter to use" won't show up ! Why? Should I still need a trigger zone?

2. I use the script to show a text when I near sth in Hints 'n'

tips guide by Nickydude, and i use a tga image to test it, but

it doesn't work. I save my image in C:\Program

Files\TGC\FPSX10\Files\gamecore\huds is this the right path?

the image is in attachment

3. I use the script "Suicide" to make a bomber from the 60+ script

pack, and use characters from sc-fi. But they wont chase me,

just stuck or shack weirdly. How to solve it ?

Thanks for your reading, and sorry for my bad english

Attachments

Login to view attachments
Yogi
15
Years of Service
User Offline
Joined: 26th Dec 2009
Location: Roaming....
Posted: 28th Dec 2009 08:17
The script for my 2 question is just same as in those guides

I put image in C:\Program Files\TGC\FPSX10\Files\languagebank\english\gamecore\text

It doesn't work! Anyone plz tell me
Marc Steene
FPSC Master
19
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 28th Dec 2009 16:18
;Artificial Intelligence Script

;Header

desc = Use Switch (animated lever)

;Triggers

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

:state=10,plrdistwithin=100,plrusingaction=1:state=1,setframe=0,plrsound=$0,activateifused=1
:state=1:incframe=0
:state=1,frameatend=0:state=2
:state=2,plrusingaction=0:state=3
:state=3,plrdistwithin=100,plrusingaction=1:state=4,effectdecwaterlevel=1,plrsound=$1,activateifused=0
:state=4:decframe=0
:state=4,frameatstart=0:state=5,setframe=0
:state=5,plrusingaction=0:state=10

;End of Script

Try that for your second problem. I've never scripted in X10 so I have no idea whether it will work or not.


THE ONLY WAY TO STAY OUT OF IGNORANCE IS TO KEEP ASKING
Yogi
15
Years of Service
User Offline
Joined: 26th Dec 2009
Location: Roaming....
Posted: 3rd Jan 2010 06:39
Thanks Marc Steene, it works! It solves my first problem

For my second problem displaying texts, I found and alternate way from

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

I modified it to display 22 texts,labeled them from talk0 to talk21

But it only shows talk1 to talk5, it skips talk0 and ignores texts

after talk 5, WHY? I just copied & pasted the same scripts.

Anyone got clues?
Yogi
15
Years of Service
User Offline
Joined: 26th Dec 2009
Location: Roaming....
Posted: 3rd Jan 2010 07:43 Edited at: 5th Jan 2010 06:09
Alright, it now works. I still dunno why it won't work in past days

Another question, how to slower damage rate under water? (like 1 damage/ 3 seconds)

which .fpi handled it ?

Login to post a reply

Server time is: 2025-05-26 01:07:29
Your offset time is: 2025-05-26 01:07:29