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 / Can anyone help me on my script? (Thanks)

Author
Message
spex_guy
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: coming to a forum near you!!!
Posted: 2nd Jan 2007 15:34
I have a script that when you go into a zone, it displays a sound and a .tga image I made in Photoshop CS2.

I know there is plenty out there...but I wanted to try and make my own. (Even though I knew i would end up with dismal failure)

I'm referencing to Benjamin A's talking scripts.



Thanks for helping.

Regards,
spex

Man, I wish I knew what "spex" meant.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 2nd Jan 2007 15:46
State never equals 10. Add ",state=10" to the end of the state=0 line.

Best.

I'm sorry, my answers are limited. You must ask the right question.

spex_guy
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: coming to a forum near you!!!
Posted: 2nd Jan 2007 15:56
Ahh, thanks.

The rest is correct?

Man, I wish I knew what "spex" meant.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 2nd Jan 2007 16:54
:state=20,plrwithinzone=1:timergreater=14539,hudshow=image,hudfadeout=image

While I'm not exactly sure what you're doing, this could be a problem.

I think timergreater=14539 sould be a condition, not an action. (before the second comma)

Best.

I'm sorry, my answers are limited. You must ask the right question.

spex_guy
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: coming to a forum near you!!!
Posted: 2nd Jan 2007 20:22 Edited at: 2nd Jan 2007 20:25
Thanks again.

All I'm trying to do is make it so when the plr steps into the zone, It'll play that image and sound. Just like it would with a character.
(I found the nearly exact amount of milliseconds it needs!)

So I should change this line:
:state=20,plrwithinzone=1:timergreater=14539,hudshow=image,hudfadeout=image

To this?:
:state=20,plrwithinzone=1,timergreater=14539,hudshow=image,hudfadeout=image

Regards,
spex

Man, I wish I knew what "spex" meant.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 2nd Jan 2007 20:26 Edited at: 2nd Jan 2007 20:31
When I said "second comma", I really meant "second colon". Sorry.

Quote: "To this?:
:state=20,plrwithinzone=1,timergreater=14539,hudshow=image,hudfadeout=image"


Almost. Try this:
:state=20,plrwithinzone=1,timergreater=14539:hudshow=image,hudfadeout=image

timergreater=14539 is a condition (if timergreater=14539) so it goes before the actions (then hudshow=image,hudfadeout=image). The two (if and then) are seperated by the second colon.

I'm sorry, my answers are limited. You must ask the right question.

spex_guy
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: coming to a forum near you!!!
Posted: 2nd Jan 2007 20:56 Edited at: 2nd Jan 2007 22:25
All right. Somehow I think your out of my scripting league.

So. Here is the finished code with your edits.



And just so I know, the command timergreater, is a condition. And conditions are stated with a colon and actions are stated with a comma. The syntax if/then must always be true and never messed with. So, basically... what I'm saying is:

if the time is greater than 14539, then the hud will show "image". Right? I just want to know because I really need to get this.

Regards(for about the twentieth time),
spex

*edit*
I just noticed... I actually said state-10, sorry

Man, I wish I knew what "spex" meant.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 2nd Jan 2007 21:28
Quote: "if the time is greater than 14539, then the hud will show "image". Right?"


Correct, but it seems you are still a little confused on the commas and colons. See my tut on scripting on fpsFREE.com. Folow the scripts link under FREE FPSC CONTENT on the site. Link is below.

Best.

I'm sorry, my answers are limited. You must ask the right question.

spex_guy
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: coming to a forum near you!!!
Posted: 2nd Jan 2007 22:05 Edited at: 2nd Jan 2007 22:27
So... I'm still wrong?

Thanks for the link. I'll refer to this again. Will post when I get it!

Regards,
spex

Man, I wish I knew what "spex" meant.
spex_guy
17
Years of Service
User Offline
Joined: 9th Dec 2006
Location: coming to a forum near you!!!
Posted: 3rd Jan 2007 14:40 Edited at: 21st Jan 2007 18:24
O.k., I've spent about an hour off and on trying to get this I think I have it. Now... I have another script for you. This one will display 3 messages and sounds. Please tell me if I'm wrong about this one. Again, I did this on my own. (I know this looks like a pastie... but trust me, I made this one!)



Regards,
spex

Never mind... it works. Thanks for the help.

Go here!
http://forum.thegamecreators.com/?m=forum_view&t=94201&b=19
Makes the sense of my location!

Login to post a reply

Server time is: 2024-11-23 09:09:51
Your offset time is: 2024-11-23 09:09:51