Posted 07 March 2013 - 12:28 AM
*EDIT* I have managed to somewhat make the program do what I have asked, I made dest read the number typed, but get "test:7:attempt to compare number with string expected, got number", test being the name of the code. Any suggestions?
and of course no topic would be complete without code…
-
IGNORE THIS BOTTOM HALF!
I am trying to have my turtle dig down to 5 in an octagonal shape , but have run into a snag…
I am trying to get dest = (number typed into turtle) ex: test 3) which would complete 3 cycles , 1 cycle is 2 levels down. That is the concept but unfortunately the turtle only completes one cycle. I assume the problem is i have my dest = 1, I also assume that I need to use dest = 1, "y" but am unsure.
for sake of being a short topic/ question…
a link on pastebin of my full code: {link Removed by user}
and of course no topic would be complete without code…
-
-startup
write("Please insert number of cycles you wish to do: ")
local tArgs = ( ... )
local read = read()
local dist = read
local fuel = 1
if dist < 0 then
print("Please insert a number greater than 0")
while dist >= 1 do
for i = 1, dist do
end
end
———————————————————————————————————————————————————————IGNORE THIS BOTTOM HALF!
I am trying to get dest = (number typed into turtle) ex: test 3) which would complete 3 cycles , 1 cycle is 2 levels down. That is the concept but unfortunately the turtle only completes one cycle. I assume the problem is i have my dest = 1, I also assume that I need to use dest = 1, "y" but am unsure.
for sake of being a short topic/ question…
a link on pastebin of my full code: {link Removed by user}