function newLine() local _,cY = m.getCursorPos() m.setCursorPos(1,cY + 1) end function currentP() m.write("Current: " .. math.random(85,98) .. "%") sleep(1) m.clearLine() m.setCursorPos(1,4) end function dayP() m.write("Day Avg: " .. math.random(94,99) .. "%") sleep(1) m.clearLine() m.setCursorPos(1,5) end m = peripheral.wrap("top") m.clear() m.setCursorPos(1,1) m.setTextScale(0.5) m.write("Efficiency Of") newLine() m.write("Factory") newLine() newLine() while true do currentP() dayP() end
If you need more explanation, please feel free to ask. Thankyou!
Edited by Bomb Bloke, 10 April 2017 - 12:41 AM.