I'm new to computercraft and i have no idea how to make it work.
I can use 1 computer to give signals to bundled cables.
1)Is there a way to make all computers be the same?
As in on floor 1 i write something and all other computers do the same?
2)How can i make computer 2 receive and wait for input same time?
("enter floor number: " and wait for other computer signal same time)
Is there any other way to make this work?
Thanks.
Been trying different things and cant get it to work.
Whats is wrong with this one?
file-"Startup"
test = "false"
while test=="false" do
shell.run("lift")
end
file-"lift"
rednet.close("left")
rednet.open("left")
write"Enter Floor Number: "
input = read()
if input=="2" then
rs.setBundledOutput("back", 2)
rednet.broadcast("off")
test = "true"
else
rs.setBundledOutput("back", 0)
rednet.broadcast("off")
end
file "off":
rednet.open("left")
msg = os.pullEvent()
if msg == "off" then
rs.setBundledOutput("back", 0)
rednet.close("left")
end
os.reboot(1)