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" - I have resolved! (with bugs-help)

Author
Message
MaxTol
17
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Argentina
Posted: 27th Feb 2008 00:27 Edited at: 27th Feb 2008 14:07
Hello everyone, first thanks to all that help me on this issue specialy "Conjured Entertainment" and "xplosys" from who I use the base script "pin number".
The good new is that I resolved how to type a word while you see it on screen and if is correct you can open a door, etc.
I attach the script and the image I used for the word the password is "help".
The bad new is that have some "bugs" I can´t resolve:
1- I can´t type the same letter twice in the word (IE: "TREE")
2- I can´t make desapear the text when you move back

Thank you for your help and I hope what I made is usefull for you.

Attachments

Login to view attachments
MaxTol
17
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Argentina
Posted: 27th Feb 2008 14:03 Edited at: 27th Feb 2008 14:09
Solved the 1st problem!
in this case the password is "CASA"

Still I can´t make despear the text when you move out the "plrdistwithin" value.

Here is the new script:

Attachments

Login to view attachments
MaxTol
17
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Argentina
Posted: 27th Feb 2008 19:57
Solved 2nd problem !!
the password is "help"
the final script si this:


and you must add a "trigger zone" a little far from the door with the folow code to remove the letters:



but I have a problem yet, if you move out and return to the door, the sign "enter code" and the letters don´t appear anymore.
Do you know how to resole this? THANKS!
MaxTol
17
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Argentina
Posted: 27th Feb 2008 20:19
hi poeple, about 40 persons were in this post, no one have comments or sugestions?
I will really apreciate, I need some help plz, anything can help.
Thanks!
Cyborg ART
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 27th Feb 2008 20:34
Great!
I think there is a fadeout command somewere. Maybe a playerdistance lower than 50 = show hud, Playerdistance greater than 50 = hudfadeout.
I dont know anything about scripting so that is the best I can help with.

0 Geoff 0
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location:
Posted: 27th Feb 2008 20:53
I think you need to put this line into your code. What it will do is reset the script so that it starts from the start again after you walk away from the door.
MaxTol
17
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Argentina
Posted: 27th Feb 2008 21:20
BVG, I´m already using the hudfadeout command on the script on the trigger zones, thank you anyway!
0 Geoff 0, that code is used in the main door script, thanks!!
Cyborg ART
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden - Sthlm
Posted: 27th Feb 2008 21:37
Quote: "BVG, I´m already using the hudfadeout command on the script on the trigger zones, thank you anyway!
"


But I think you could have it in the mainscript so you wont need an extra triggerzone.

0 Geoff 0
17
Years of Service
User Offline
Joined: 3rd Aug 2007
Location:
Posted: 27th Feb 2008 21:40
So what exactly is the current problem is it still that when the player walks away and then back it dose not work.
MaxTol
17
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Argentina
Posted: 27th Feb 2008 21:47
BVK, yes I tried to ad that code in the main script in several ways, but seems that only works the one on the first hud that show the sign "enter code" do you know where I should ad the hudefadeout command to work fine in the main script?

0 Geoff 0, yes the problem is that you said, when the player came back to the door, the letters don´t appear anymore if you type the password, anyway the script still work because if you type the correct password the door opens but you can´t se what you type

thank you guys, I really apreciate your help...
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 28th Feb 2008 07:41 Edited at: 28th Feb 2008 07:50
First of all, I would stay away from the following letters of the alphabet as they have meaning within FPSC:

wasdcqeux

You can change the setup page so as not to use any of these letters. Just a little more work.

Using CASA as the letters to be printed I set the following script to use the password "kill." On the screen will appear C A S A if you use the images supplied my MaxTol. If you test it as I have, then you will find that the huds will disappear further than 70 units and will appear within 70 units. If you leave the 70 unit area then you will need to start all over again. All huds will appear in the correct order. If you get the correct password the letters will appear and after pressing the "ENTER" key the door will open. Once you go through the door and move away 70 units then the script will no longer run.

If you don't mind my help, this is how I would script it:



Of course, you can modify this to cause a switch to activate which will then activate the door. I simply used a sign made it dynamic and immobile and put the parameter of "remote door" in the "ifused" variable. The door name is "remote door" and the fpi is for said door.
MaxTol
17
Years of Service
User Offline
Joined: 22nd Aug 2007
Location: Argentina
Posted: 28th Feb 2008 14:26
Hi!
Flatlander, I can tell you I have a new "best friend" hahaha, you are amazing man you solve the entire problem in the same script, really THANKS! I´m in debt with you.
This will be used in a educational game for kids to learn to spell right, as soon as I have the demo version I will post it. Thanks to everybody was involved.

Here there is the script modified to open the door as soon you type the last correct letter:

Login to post a reply

Server time is: 2024-11-24 06:59:54
Your offset time is: 2024-11-24 06:59:54