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 / Story zones...

Author
Message
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 24th Apr 2006 19:36
Is it possible to make them activate via pressing enter?

Keyboard not found!
Press any key to continue
brummel
18
Years of Service
User Offline
Joined: 26th Nov 2005
Location: Sweden
Posted: 24th Apr 2006 19:50
plrusingaction=1

Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 24th Apr 2006 19:51
Thanks, I'm useless at scripting

Keyboard not found!
Press any key to continue
brummel
18
Years of Service
User Offline
Joined: 26th Nov 2005
Location: Sweden
Posted: 24th Apr 2006 19:59
Well, you´ll learn sometime.

Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 24th Apr 2006 20:02
Tried it, doesn't work

Keyboard not found!
Press any key to continue
brummel
18
Years of Service
User Offline
Joined: 26th Nov 2005
Location: Sweden
Posted: 24th Apr 2006 22:47
Let me see the code you tried with.

Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 25th Apr 2006 08:44


Keyboard not found!
Press any key to continue
Jiffy
20
Years of Service
User Offline
Joined: 5th Mar 2004
Location: Hiding in the bushes in your backyard
Posted: 25th Apr 2006 09:44 Edited at: 25th Apr 2006 14:33
Even though I'm not great at coding, I see the problem here.

You can't just add a command at the end. The part where you added the "plrusingaction=1" command doesn't have a seperator, which you need (In this case it would be a comma, but that still wouldn't work--keep reading).

You also need to think about the ordering. The command "plrusingaction=1" is a condition, meaning that you need to have it at the beginning of the script--sort of saying "If the player presses the action key (Enter by default), then continue with the state (In this case, the whole script". Because of this, the script should look like this:



The comma was used before the new command because you use commas to seperate 2 conditions or 2 actions (the commands that tell the engine to do something), while a colon (":") seperates an action and a condition.

Sorry if that was hard to understand . I'm fairly new to scripting, so that script might not work, but hopefully it will. Just to clarify, the script essentially says to the engine "If the player is within the zone and presses action, then play the sound and video specified". Hope that makes it easier . I'll test it myself, but it should work, as far as I know.

EDIT: The script does work fine, but just so you know, it won't say "Press Enter To Use". I've been working on it, and the script I have at the moment still doesn't appear to show it:



Not sure what is wrong with it, but oh well. If you don't need the "Press Enter To Use", then the original script should do fine.


Evil has a new name.
Evil Star
18
Years of Service
User Offline
Joined: 24th Jan 2006
Location: England, Colchester
Posted: 25th Apr 2006 18:34
thanks jiffy, in my second post I lied, I can't script at all

Keyboard not found!
Press any key to continue
Les Horribres
18
Years of Service
User Offline
Joined: 20th Nov 2005
Location: My Name is... Merry
Posted: 26th Apr 2006 00:29
Everyone can script

:ifgame=reallycool:makegame

see?

We all have our inner noob. Join the NJL, and have more fun!
I believe society is flawed; our notions on life, on child rearing, stem too far back to be of relevance in this day and time.

Login to post a reply

Server time is: 2024-04-26 10:08:23
Your offset time is: 2024-04-26 10:08:23