Posted 30 September 2016 - 03:00 PM
Hi, i have a slight problem with changing the text color for what is printed or is going to be printed to the monitor. I can't seem to get the text after "Active: " to change color depending on if the
Here is my code
So if the
If i missed anything please let me know
I'm using the mod Big Reactors
Thanks!
reactor1.GetActive()
is true or falseHere is my code
while true do
local reactor1 = peripheral.wrap("BigReactors-Reactor_0")
local mon = peripheral.wrap("monitor_0")
mon.clear()
mon.setCursorPos(1,1)
mon.setTextColor(colors.white)
mon.write("Active: ")
if reactor1.getActive==true then
mon.setTextColor(colors.lime)
mon.write(reactor1.getActive())
else
mon.setTextColor(colors.red)
mon.write(reactor1.getActive())
end
sleep(1)
end
So if the
reactor1.GetActive()
function is true the text is going to be lime green and if false its going to be redIf i missed anything please let me know
I'm using the mod Big Reactors
Thanks!