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

help, computer to turtle

Started by crackroach, 01 October 2012 - 11:30 PM
crackroach #1
Posted 02 October 2012 - 01:30 AM
I've been working on a project to make turtle build custom building like walls, houses and tower. Since I use the terminal (computer) interface completely (the whole 50 by 18) with a graphic to show coordinate and stuff, I'd like to know if it is possible to start the program and transfer the variables to the turtle without using rednet???? Just like if it was a peripheral of some kind.

example:
print("how many time would you like the turtle to move forward?")
inputX = read()
inputX = tonumber(inputX)

function start()
peripheral.call("left", "turn on")
end

and then the turtle would do the inputX number…

thanks in advance
ChaddJackson12 #2
Posted 02 October 2012 - 01:54 AM
Eh try not keeping those inputX variables the same, as they would change and they are both the same thing. Name one: inputX and the other: tolocationX.
crackroach #3
Posted 02 October 2012 - 02:00 AM
Eh try not keeping those inputX variables the same, as they would change and they are both the same thing. Name one: inputX and the other: tolocationX.
actualy the inputX in my program is for the length size of a tower. I was plannig to do the GPS system right after I've learn how to start the turtle. Thanks anyway, it's good to know, I'll keep it in mind. :)/>/>