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

[help][rednet]How would i do this?[rednet][help]

Started by chriskopp7, 13 December 2012 - 02:42 AM
chriskopp7 #1
Posted 13 December 2012 - 03:42 AM
Ok let say this is my code on how to send the number to the turtle

rednet.open("back")
write('How far forward:")
a = read()
rednet.send( 8, a)

and here is my code on the turtle

rednet.open("right")
rednet.receive()
3 = x
2 = m

How would i assign 8 or what other number comes up as a verbal?
Bubba #2
Posted 13 December 2012 - 03:44 AM
Ok let say this is my code on how to send the number to the turtle

rednet.open("back")
write('How far forward:")
a = read()
rednet.send( 8, a)

and here is my code on the turtle

rednet.open("right")
rednet.receive()
3 = x
2 = m

How would i assign 8 or what other number comes up as a verbal?

Hmm. I just looked in the tutorial section and what did I see? A tutorial for sending variables over rednet. Not only was it on the first page, but it was also the first entry under the pinned topics on the page. My suggestion would be to head over there and check it out.
chriskopp7 #3
Posted 13 December 2012 - 03:45 AM
Ok let say this is my code on how to send the number to the turtle

rednet.open("back")
write('How far forward:")
a = read()
rednet.send( 8, a)

and here is my code on the turtle

rednet.open("right")
rednet.receive()
3 = x
2 = m

How would i assign 8 or what other number comes up as a verbal?

Hmm. I just looked in the tutorial section and what did I see? A tutorial for sending variables over rednet. Not only was it on the first page, but it was also the first entry in the page. My suggestion would be to head over there and check it out.

I ment something else sorry i forgot to change the title becous at first it was something elese that i fix :(/> but when i had made this i looked over there and did not see it
Bubba #4
Posted 13 December 2012 - 03:47 AM
Ok let say this is my code on how to send the number to the turtle

rednet.open("back")
write('How far forward:")
a = read()
rednet.send( 8, a)

and here is my code on the turtle

rednet.open("right")
rednet.receive()
3 = x
2 = m

How would i assign 8 or what other number comes up as a verbal?

Hmm. I just looked in the tutorial section and what did I see? A tutorial for sending variables over rednet. Not only was it on the first page, but it was also the first entry in the page. My suggestion would be to head over there and check it out.

I ment something else sorry i forgot to change the title becous at first it was something elese that i fix :(/>/>/> but when i had made this i looked over there and did not see it

Okay. So what exactly is your question then? What do you mean by trying to assign a number as a "verbal". Do you mean how do you make the turtle execute the command sent over rednet? If so then all you have to do is get the number variable from rednet and then use a for loop to execute the command that you want that number of times. Use tonumber(n) to convert your variable from a string to a number.
chriskopp7 #5
Posted 13 December 2012 - 03:52 AM
Ok let say this is my code on how to send the number to the turtle

rednet.open("back")
write('How far forward:")
a = read()
rednet.send( 8, a)

and here is my code on the turtle

rednet.open("right")
rednet.receive()
3 = x
2 = m

How would i assign 8 or what other number comes up as a verbal?

Hmm. I just looked in the tutorial section and what did I see? A tutorial for sending variables over rednet. Not only was it on the first page, but it was also the first entry in the page. My suggestion would be to head over there and check it out.

I ment something else sorry i forgot to change the title becous at first it was something elese that i fix :(/>/>/> but when i had made this i looked over there and did not see it

Okay. So what exactly is your question then? What do you mean by trying to assign a number as a "verbal". Do you mean how do you make the turtle execute the command sent over rednet? If so then all you have to do is get the number variable from rednet and then use a for loop to execute the command that you want that number of times. Use tonumber(n) to convert your variable from a string to a number.

Ohh that make since *facepalm* i just need to go to bed…….