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

Program waiting for reply

Started by lare290, 12 December 2014 - 08:28 PM
lare290 #1
Posted 12 December 2014 - 09:28 PM
I'm trying to make my program ask question and then it waits for my reply. How to make it do that?
I'm stupid.
Geforce Fan #2
Posted 12 December 2014 - 09:40 PM
Are you talking about text input?
then do
whateverVarYouWant = read()
if it's a password, you can make it so it appears as and character you want, for example * by:
whateverVarYouWant = read("*")
Hope this helps.
lare290 #3
Posted 12 December 2014 - 09:41 PM
thanks
Edited on 12 December 2014 - 08:49 PM