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

help

Started by candycool1234, 16 October 2012 - 08:46 PM
candycool1234 #1
Posted 16 October 2012 - 10:46 PM
Hey it wont let me post so yea I am editing my old post I have a program I need to work yet I cant figure out how you can do a write("") then read() and then and it uses what I write for how many times I want it to loop here's what I got.

print("Hello")
write("how far?:")
far = read()
local far = x
for x do
    turtle.digDown()
    turtle.placeDown()
    turtle.dig()
    turtle.digUp()
    turtle.digLeft()
    turtle.digRight()
    turtle.placeLeft()
    turtle.placeRight()
    turtle.forward()
    end
end
turtle.forward()
Doyle3694 #2
Posted 16 October 2012 - 11:19 PM
This is the wrong topix, should be "Ask a Pro"

Can you make a new thread there, so it's in the correct place, and then in that thread maybe specify abit more what you want to do? :D/>/>
ChunLing #3
Posted 17 October 2012 - 01:00 AM
I posted a program that does this (and other stuff) in User Friendly Program combining several useful functions. It actually lets you do most anything a turtle can do. Certainly it gives complete access to all turtle API functions (including passing arguments and receiving results). I'm pretty sure you could find it by searching for "wireless turtle remote control".