Passwords?
ramtha
22 Sept 2005, 00:59Is there any possible way in QDK to have a screen pop up (or not, just to make it easier) and have the player type in a word or phrase to get to the next action? For example like a password on a computer. If so, do tell please.
I think Im Dead
22 Sept 2005, 17:26I can't guide you through it in qdk, but it would be just as simple as making a command.
First create a new command, whatever it is you want them to type before they are asked for a password.
First part of the command should message to the player, "Enter a password" or something along those lines.
The next command should be to put the next thing the player types into a variable, it could be #password# if you want or anything else.
After that you would create an if/then statement processing like "if #password# == pass123" and the then doing whatever you want the command to execute.
Next would be to create an else statement at the end of the if/then to message to the player, "Sorry that is the wrong password".
If you look through qdk when you go to create a command it should be fairly straight forward how to implement via the buttons and menus.
Hope it goes well for you.
First create a new command, whatever it is you want them to type before they are asked for a password.
First part of the command should message to the player, "Enter a password" or something along those lines.
The next command should be to put the next thing the player types into a variable, it could be #password# if you want or anything else.
After that you would create an if/then statement processing like "if #password# == pass123" and the then doing whatever you want the command to execute.
Next would be to create an else statement at the end of the if/then to message to the player, "Sorry that is the wrong password".
If you look through qdk when you go to create a command it should be fairly straight forward how to implement via the buttons and menus.
Hope it goes well for you.
ramtha
22 Sept 2005, 23:17The only thing i'm confused about is how to get to the making a variable, or since i did find it in the QDk menu, how am i supposed to get it to work. Unless I was supposed to make a string variable, instead of a normal one. But like I said i'm not too sure about it.
Well lets see, this is what i did, I made a computer, and have a use computer command, then i took the command and have a printed message "enter password"
After that I made a variable, but it said I canged the contents of the Variable. i'm sort of lost there. So yeah.. hee hee
Well lets see, this is what i did, I made a computer, and have a use computer command, then i took the command and have a printed message "enter password"
After that I made a variable, but it said I canged the contents of the Variable. i'm sort of lost there. So yeah.. hee hee
ramtha
24 Sept 2005, 22:43Yatta! Thank you Thank you! It makes much more sense now! ^_^
ramtha
24 Sept 2005, 23:09Ok, I do have one more question, maybe two but they could be interlinked. In the Third picture, it shows only one command, so i was wondering if i needed to place that command somewhere else (other than the use computer command) and i'm also wondering if this might have something to do with the printed command not showing up when i play the game............sorry for asking so many questions, but the help is very much appreciated.
ramtha
24 Sept 2005, 23:13Ok, I do have one more question, maybe two but they could be interlinked. In the Third picture, it shows only one command, so i was wondering if i needed to place that command somewhere else (other than the use computer command) and i'm also wondering if this might have something to do with the printed command not showing up when i play the game............sorry for asking so many questions, but the help is very much appreciated.
Arbutus
11 Nov 2005, 06:11Found the problem - In the 2nd picture #password# should not have the #'s. Quest automatically puts the #'s into the game code, thus identifying the variable as a string. Remove the #'s and you will be set!
ramtha
11 Nov 2005, 17:03YATTA.... I MEAN YAY.... whoo, dance. thank you very very mooch