Password required to continue

Started by Yo Mama!, Sat 13/03/2004 20:03:15

Previous topic - Next topic

Yo Mama!

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?

LordHart

The AGS help file has this answered somewhat, open it up and search for password...

Yo Mama!

#2
Ok, that helped a little, but how do I get it to work when you press enter?

Pumaman

Are you using the InputBox function or your own custom GUI?

Yo Mama!


Pumaman

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.

Yo Mama!

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.

Gilbert

Can you post the line of code here?

Yo Mama!

Well, I could have earlier, but I just deleted the whole script since it irritated me so much. Sorry! :(

SMF spam blocked by CleanTalk