Posted 11 January 2013 - 10:41 AM
I am trying to make a tree felling turtle but I want a user defined area for example,
I start my turtle up and he asks me something like, "how many trees are in a row?" It will use that input to run said section of code X amount of times to chop the/go to the next tree.
Finally, it will ask "how many rows are in this tree farm?" Based on the input i need it to do a formula to figure out how many spots it needs to move to go the first tree of the second row ect and then back home after it is done.
I have a limited understanding of lua so the plainer put the easier for me lol.
Edit: I think i just thought of a work around to avoid this but it would be good to know in case it fails or for future reference.
Edit to clarify: So, simply put. It has to use both numbers. (how many trees? how many rows?) then it has to be able to go to the first tree of the next row and then back to its starting position based on that input after its finished the last defined row.
I start my turtle up and he asks me something like, "how many trees are in a row?" It will use that input to run said section of code X amount of times to chop the/go to the next tree.
Finally, it will ask "how many rows are in this tree farm?" Based on the input i need it to do a formula to figure out how many spots it needs to move to go the first tree of the second row ect and then back home after it is done.
I have a limited understanding of lua so the plainer put the easier for me lol.
Edit: I think i just thought of a work around to avoid this but it would be good to know in case it fails or for future reference.
Edit to clarify: So, simply put. It has to use both numbers. (how many trees? how many rows?) then it has to be able to go to the first tree of the next row and then back to its starting position based on that input after its finished the last defined row.