Posted 03 April 2015 - 04:58 PM
I am a little new to computercraft so I am still learning some things about lua. Right now I am in the process of making a program where a user can enter enter a command which will then be sent to one of those new command block computers, which will execute the command as if it is in a command block (this is just for fun, I realize how inefficient it is). Everything was working fine until I added the waitForReply() function. Now when I try to execute the program I get the response "multiple points". What does that even mean?
Here is the program: http://pastebin.com/RRhvb6PV
I would like the waitForReply() function to wait 5 times until either the command block computer replies to it the distance away the two computers are, or until 20 seconds have passed. The reason I will have the command block computer send the distance as confirmation is so that if two computers in my world are running the same program and have the command block computer run a command, they will be able to tell if it was their command that it ran.
Here is the program: http://pastebin.com/RRhvb6PV
I would like the waitForReply() function to wait 5 times until either the command block computer replies to it the distance away the two computers are, or until 20 seconds have passed. The reason I will have the command block computer send the distance as confirmation is so that if two computers in my world are running the same program and have the command block computer run a command, they will be able to tell if it was their command that it ran.
Edited on 03 April 2015 - 03:01 PM