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 / Xplosys's Code Switch Question

Author
Message
Guitarist
15
Years of Service
User Offline
Joined: 26th Oct 2009
Location:
Posted: 2nd Aug 2010 21:11
I downloaded the script from fpsfree and I modded it. The code I want to use uses letters instead of numbers. The word has two of the same letters in a row. Ingame when I tested my mod I only had to hit the letter once and it counted for both times. How can I make it so the player has to hit the letter twice?
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 2nd Aug 2010 21:40
I have a similar script and use double numbers. Try this and see if it works for you:



I added the timerstart and then at the beginning of each state added the timergreater=500. This gives a small pause allowing you to have double letters or numbers when entering a code. You can't input the code at a rapid pace, but it will help when using double number/letters in a row.

You can adjust the timergreater=500 to a smaller number if you like. I tested this using the word FOOD and it worked fine for me.

- BlackFox

Guitarist
15
Years of Service
User Offline
Joined: 26th Oct 2009
Location:
Posted: 2nd Aug 2010 21:44 Edited at: 2nd Aug 2010 21:52
Thank you. I knew it was going to be something simple. Testing it now.
EDIT
Thanks it worked!
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 3rd Aug 2010 17:48
You are most welcome

- BlackFox

Login to post a reply

Server time is: 2024-11-24 21:43:36
Your offset time is: 2024-11-24 21:43:36