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 / Text input

Author
Message
MaxTol
17
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Argentina
Posted: 21st Feb 2008 15:04
Hi! do you know if there is anyway to trigger a textbox in wich you can type a word and after check (the spelling for example) in some kind of database?
Thanks to all you FPSC "guru"!!
TechNo VaLLey
17
Years of Service
User Offline
Joined: 14th Dec 2006
Location: Egypt
Posted: 21st Feb 2008 15:57 Edited at: 21st Feb 2008 15:58
You may try the cheat code script as a test .. may be it might work

[EDIT] : Try Nickydude's (PDF) Hint book

Techno VaLLeY
MaxTol
17
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Argentina
Posted: 21st Feb 2008 17:21
Thanks TechNo VaLLey for your answer,
can you be a little more specific? Wich cheat code? where can I find that Hint Book?
Thanks!
Keo C
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location: Somewhere between here and there.
Posted: 21st Feb 2008 17:55
No, I don't think so, but what are you trying to do? I don't know why you'd want a spell checker in an FPS game.


Image made by the overworked Biggadd.
MaxTol
17
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Argentina
Posted: 21st Feb 2008 18:20
Hi Keo C, the idea is make an adventure game for kids to learn to write well, the basic idea of the game is give clues to solve the adventure if the kid give write the correct answer (Ex. "what is this?" and the kid have a 3d telephone in front of him) he will have "directions" to go on on the game or the new mission, etc...
Thanks!
Keo C
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location: Somewhere between here and there.
Posted: 21st Feb 2008 18:39 Edited at: 21st Feb 2008 18:40
I think a form of BASIC such as Visual Basic or DarkBASIC would be best for this program. They can interface with an SQL Database (I think a DLL for DBP is floating around somewhere) and probably what I would use.


Image made by the overworked Biggadd.
MaxTol
17
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Argentina
Posted: 21st Feb 2008 19:11
Keo C, do you think that I may use a form made on DarkBASIC in FPSC? maybe figurating some way to triger it from FPSC with some kind of script?
Thanks!
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 21st Feb 2008 23:55
Perhaps multiple choice would work better. Not what you wanted but more in line with FPSC capabilities.

best.

Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 22nd Feb 2008 00:31 Edited at: 22nd Feb 2008 00:34
Any text can be verified as far as spelling with scancodekeypressed=x to detect each letter and then direct them to another state.
If the right letter is pressed then it takes them to a state that checks the next correct letter.
If the wrong letter is entered, then you can go to a state to take whatever action neccessary. (display hud, make sound, etc)
You can use activated states with the scancodekeypressed=0 to determine whether they have pressed an incorrect key rather than using a long list of scancodekeypressed checking for each incorrect number. If that statement confused you, then you're not alone. (it is tricky)
A separate script would be needed for each word used, and that is the real limitation here.

As Xplosys recommended, multiple choice is a much better (easier) method for text input in FPSC.

Don't forget to visit Conjured Entertainment

MaxTol
17
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Argentina
Posted: 22nd Feb 2008 12:22
People, you are amazing! Thank you xplosys and Conjured Entertainment!!!!

Conjured Ent.: there is anyway to "see" the text while you are typing?

Xplosys: how should be the basic script code to do it in the way you are telling me? the multiple choice is a great option.

Thanks to all...
TechNo VaLLey
17
Years of Service
User Offline
Joined: 14th Dec 2006
Location: Egypt
Posted: 22nd Feb 2008 13:00
Hi MaxTol,

You can find all your need under this thread

FPSC Hints & Tips PDF Guide

Quote: "People, you are amazing! Thank you xplosys and Conjured Entertainment!!!! "


yep ! both Conjured Entertainment and xplosys are from the best scripters in this forum

Techno VaLLeY
MaxTol
17
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Argentina
Posted: 22nd Feb 2008 13:36
thank you TechNo VaLLey!! I will take a look.
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 22nd Feb 2008 14:57
@MaxTol,

Very basically, you offer the multiple choices to the player with a hud image. The player picks the corresponding answer number from the list. (hud image) The players answer is detected with the scancodekeypressed= condition as CE said. NickyDude's guide, as referenced above, should give you all the information and code you need.

Quote: "yep ! both Conjured Entertainment and xplosys are from the best scripters in this forum "


Wow! Being mentioned with CE is quite a compliment.

Best.

MaxTol
17
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Argentina
Posted: 22nd Feb 2008 15:36
Hi xplosys!
I´m reading the NickyDude's guide right now, I will make some test in the afternoon.
And yes I´m looking a lot of scripts from you and CE. Thanks both!

Login to post a reply

Server time is: 2024-11-24 06:40:34
Your offset time is: 2024-11-24 06:40:34