This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Donaldbean's profile picture

Password Protect

Started by Donaldbean, 29 September 2012 - 12:31 AM
Donaldbean #1
Posted 29 September 2012 - 02:31 AM
I know this question has probably been asked before, but nothing i type into the search gives me the right answer. I was wondering how to make my letters on a password lock into ******* instead of actual letters. Thanks.
Anonomit #2
Posted 29 September 2012 - 03:06 AM

read("*")
ChaddJackson12 #3
Posted 29 September 2012 - 05:16 AM
To make an input be read as a * in place of the character you need to put this: input = read("*") instead of: input = read()

You can do this with any character, as far as I am aware of… Probably even multiple characters.
Doyle3694 #4
Posted 29 September 2012 - 12:36 PM
read("Haha You just got Trolled")
Anonomit #5
Posted 29 September 2012 - 03:48 PM
read("Haha You just got Trolled")

Doesn't work :)/>/>
I've tried. It'll just use the first letter, unfortunately.