Posted 21 October 2012 - 12:47 AM
Ok so I have an IC2 Nuclear Reactor running and if you know this, you need a redstone signal for it too run. I have a green RP2 lamp and a red one, red has a not Gate connected so when its running, the red light turns on. I have the wire thats connected to the red lamp in a yellow cable, and I have a white cable thats connected to the green lamp. I connected the 2 with bundled cable and put it into the back of my computer. I also have a monitor set up next to it. What i want, is for the monitor to say "Reactor is ON and dangerous, Caution is advised!!" When the yellow wire is on, and when the white wire is on to say "Reactor is OFF and Safe, Approach at your own risk". I do have some code right now, but it wont print on the monitor or in the computer(when i dont do "monitor left <name>" it should print in the computer, i think)
Code:
Code:
while true do
local event = os.pullEvent("redstone")
local White=rs.testBundledInput("back", colors.white)
local Yellow=rs.testBundledInput("back", colors.yellow)
if White then
print " Reactor is OFF and Safe, Approach at your own risk"
elseif Yellow then
print "Reactor is ON and dangerous, Caution is advised!!"
shell.run"clear"
end
end
The shell.run"clear" I dont know what it means but i saw it somewhere and thought it was used for this(im probably wrong) And the computer gives no error, it just wont print. Sorry for all the writing, i was trying to accuratey describe it.