Posted 01 May 2013 - 11:10 PM
TOPIC: More than 6 in/out using Rednet passing a variable?
I'm working on a path-traking program, there are 4 "paths" (N, S, E, W, as per my variables) and when the player gets to the end of the path, he is teleported back and the path is logged using a pressure-plate feeding into a PC. The idea is based on which paths he chooses, he can end up at different locations, (i.e. N,N,N,W TPs him to Loc1, while W,E,S,W TPs him to Loc2 —- it's the same idea as Zelda OOT's lost woods puzzle, out of a string of 4^4 possible combinations of exits, only 3 or so work)
But, I keep stumbling on needing 5 inputs for the system (start, N, S, E, W) and then wanting a minimum of 3 outputs (Loc1, Loc2, Loc3 - command blocks) but there are only 6 sides, so I came up with the logical idea of using the 6th side of that terminal that logs the players path for a rednet modem, and then using rednet to send a variable/command to a second PC, thus giving me a total of 10 possible input/outputs… however this is where I break down, I'm not sure how to code a method of sending anything to a second terminal (rednet has never worked properly for me…) I dont care if I have to read only a single number as a variable (i.e. "if recive = 1 / rs.setOutput("back:, true) / elseif recieve = 2 / rs.setOutput("left",true)" etc) or if I actively pass the command itself along "rs.setOutput("back",true) — though I'd need to pass 3 commands to activate the redstone, sleep, then deactivate it…
Any suggestions on how to integrate these?
I'm working on a path-traking program, there are 4 "paths" (N, S, E, W, as per my variables) and when the player gets to the end of the path, he is teleported back and the path is logged using a pressure-plate feeding into a PC. The idea is based on which paths he chooses, he can end up at different locations, (i.e. N,N,N,W TPs him to Loc1, while W,E,S,W TPs him to Loc2 —- it's the same idea as Zelda OOT's lost woods puzzle, out of a string of 4^4 possible combinations of exits, only 3 or so work)
But, I keep stumbling on needing 5 inputs for the system (start, N, S, E, W) and then wanting a minimum of 3 outputs (Loc1, Loc2, Loc3 - command blocks) but there are only 6 sides, so I came up with the logical idea of using the 6th side of that terminal that logs the players path for a rednet modem, and then using rednet to send a variable/command to a second PC, thus giving me a total of 10 possible input/outputs… however this is where I break down, I'm not sure how to code a method of sending anything to a second terminal (rednet has never worked properly for me…) I dont care if I have to read only a single number as a variable (i.e. "if recive = 1 / rs.setOutput("back:, true) / elseif recieve = 2 / rs.setOutput("left",true)" etc) or if I actively pass the command itself along "rs.setOutput("back",true) — though I'd need to pass 3 commands to activate the redstone, sleep, then deactivate it…
Any suggestions on how to integrate these?