Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Yo Mama! on Sat 13/03/2004 20:03:15

Title: Password required to continue
Post by: Yo Mama! on Sat 13/03/2004 20:03:15
In my game, I have a computer screen with a text box that you will need to put a password in. How can I make it so it goes to the next room ONLY if the person types in the correct password and presses enter?
Title: Re:Password required to continue
Post by: LordHart on Sat 13/03/2004 21:15:04
The AGS help file has this answered somewhat, open it up and search for password...
Title: Re:Password required to continue
Post by: Yo Mama! on Sun 14/03/2004 01:11:54
Ok, that helped a little, but how do I get it to work when you press enter?
Title: Re:Password required to continue
Post by: Pumaman on Sun 14/03/2004 14:27:05
Are you using the InputBox function or your own custom GUI?
Title: Re:Password required to continue
Post by: Yo Mama! on Sun 14/03/2004 19:50:34
My own custom GUI
Title: Re:Password required to continue
Post by: Pumaman on Mon 15/03/2004 20:14:59
interface_click is called with the object number of the textbox when the player presses return, so you can handle that to process their input and turn the GUI off.
Title: Re:Password required to continue
Post by: Yo Mama! on Mon 15/03/2004 22:33:58
So what would the whole thing look like all togeter? I tried to put it all together, but it gave error messages like "Expected (" so I fixed it, but then it said "Unexpected (", so I'm pretty much completely lost.
Title: Re:Password required to continue
Post by: Gilbert on Tue 16/03/2004 01:50:38
Can you post the line of code here?
Title: Re:Password required to continue
Post by: Yo Mama! on Tue 16/03/2004 21:20:00
Well, I could have earlier, but I just deleted the whole script since it irritated me so much. Sorry! :(