TyranoBuilder Visual Novel Studio

TyranoBuilder Visual Novel Studio

Kindvirus Mar 24, 2016 @ 9:00pm
Typing in words to advance to a label?
Is it possible to have the player type in a password to access a label/scene?
< >
Showing 1-12 of 12 comments
Vedren Mar 24, 2016 @ 9:27pm 
You mean like hacking an electronic door lock in one scene and then if successful jumping to a scene behind the previously locked door?

If so you'd just need to use a user input box and then set what was typed in as a variable and then use an "if" statement to check and see if the input was what you wanted. Put the code for the jump (so it executes if the proper input is entered) above the else and the code for what happens if its incorrect below the else.
Last edited by Vedren; Mar 24, 2016 @ 9:39pm
jay_rab Mar 24, 2016 @ 9:36pm 
This is pretty easily done and here is why: In case you dont know there is a "input box" component, you use this for allowing players to fill in anything from their name to in your case a password. the input box really is just a variable were your relying on the player for the value so that brings us to the next part, checking the variable.

Once you have the input from the player all thats left is to check it, the tutorial on our website goes in to detail about how to get it to check if the player has put anything in the box and you would use the same system to check if the value is true or false, you can check that out here: http://tyranobuilder.com/add-a-text-input-box-new/

Basically you have your value from the input box and you will use a jump to check if that value is equal to what you set the password to be, if its not equal it wont use that jump, you will then set another jump that jumps then back to the label of them failing the password when the value does not match the password.
8oni Mar 24, 2016 @ 9:39pm 
Yes. Just use Input box to get password from user and then compare it. If it's the same then jump, if not then show something or not do anything at all
Edit : Oh Jay already explain it, I didn't see his comments when I type mine
Last edited by 8oni; Mar 24, 2016 @ 9:40pm
Kindvirus Mar 24, 2016 @ 10:35pm 
Thanks for the help! ^^
Kindvirus Mar 24, 2016 @ 10:55pm 
Got it working just fine!
esthertang.2010 Feb 26, 2018 @ 5:10am 
How do you check if the value is the same with the password?
e.g. if i set the input variable as passcode and my passcode should be virus
I've tried jumping to the target location if the condition is TRUE,
A: wordsearch
B: value - virus
Condition: A = B
But it doesnt seem working....
Last edited by esthertang.2010; Feb 26, 2018 @ 5:11am
Kindvirus Feb 26, 2018 @ 6:14am 
Why is A = wordsearch instead of = passcode?
esthertang.2010 Feb 26, 2018 @ 8:32pm 
ARHHHHH ♥♥♥♥ its a typo sorry
So if it's
A: password
B: value - virus
Condition: A = B
is this correct?
jay_rab Feb 26, 2018 @ 9:43pm 
Originally posted by esthertang.2010:
ARHHHHH ♥♥♥♥ its a typo sorry
So if it's
A: password
B: value - virus
Condition: A = B
is this correct?
should be, please note that in order for input variable to store what the player entered they have to go to the label and for commit input component or [commit] part to come before you make the check to see if the value is correct or not.. otherwise the variable will still be blank.
esthertang.2010 Feb 26, 2018 @ 10:38pm 
So I want to have an image displayed if the player has entered the correct password.

And my whole thing is

Label - get_password
Input Box - assign variable: password
Image Button - target: submit_password
Stop
Label - submit_password
Commit input
Page break
Jump - target: password_ok; jump if A: password; B: value - virus; condition: A=B
Text - Please try again.
Jump - target: get_password
Label - password_ok
Show image
Stop

Is there anything wrong? When I preview it, after I enter the text into the input box, the input box would appear again and would not advance. ><
Last edited by esthertang.2010; Feb 26, 2018 @ 10:41pm
Kindvirus Feb 27, 2018 @ 1:55am 
It looks fine to me.
jay_rab Feb 28, 2018 @ 9:50pm 
Originally posted by esthertang.2010:
So I want to have an image displayed if the player has entered the correct password.

And my whole thing is

Label - get_password
Input Box - assign variable: password
Image Button - target: submit_password
Stop
Label - submit_password
Commit input
Page break
Jump - target: password_ok; jump if A: password; B: value - virus; condition: A=B
Text - Please try again.
Jump - target: get_password
Label - password_ok
Show image
Stop

Is there anything wrong? When I preview it, after I enter the text into the input box, the input box would appear again and would not advance. ><
I know these things can get frustrating at times when they look correct but are not working so I went ahead and recreated the scene as you have layed it out in this post and it is working completely normal for me,

after being successful I added in a show text component just so that the text displays but other then that what you shared is correct, the only thing that could be stopping it from being correct is if:
-Spelling of variable is incorrect in one of components (this could be the conditional jump or the input box
-password was mistyped, Virus is not the same a virus, so if you made the jump value Virus it wouldnt match.
-Jumps created before labels, this can sometimes cause some trouble, try readding the label and then the jumps

I have made my project public for download so you can compare to see if anything is wrong: https://www.dropbox.com/s/xmt90phxkukz7w2/Password.zip?dl=0
Last edited by jay_rab; Feb 28, 2018 @ 9:53pm
< >
Showing 1-12 of 12 comments
Per page: 1530 50

Date Posted: Mar 24, 2016 @ 9:00pm
Posts: 12