Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("left")
- mon.clear()
- mon.setCursorPos(1,1)
- function read()
- local f = fs.open("stats", "r")
- local HV
- if f then
- HV = f.readLine()
- f.close()
- if HV ~= nil then
- return HV
- else
- HV = 0
- return HV
- end
- else
- HV = 0
- return HV
- end
- end
- local hv = read()
- mon.setCursorPos(1,1)
- mon.write("Aktuelle HV's")
- mon.setCursorPos(17,1)
- mon.write(tostring(hv))
- mon.setCursorPos(1,2)
- mon.write("HV's bis 2 AE's")
- mon.setCursorPos(17,2)
- mon.write(tostring(256-hv))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement