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?
The AGS help file has this answered somewhat, open it up and search for password...
Ok, that helped a little, but how do I get it to work when you press enter?
Are you using the InputBox function or your own custom GUI?
My own custom GUI
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.
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.
Can you post the line of code here?
Well, I could have earlier, but I just deleted the whole script since it irritated me so much. Sorry! :(