Posted 21 July 2015 - 06:58 AM
So I'm working on these store signs that should surround the building, (8 monitors, 1Wx3L in size) to be connected to one computer. I am HORRIBLE with LUA and with all the crap that happens around me when I'm trying to learn anything (cat bugging me, fiancee bugging me, phone ringing) I can't keep my concentration enough to figure out how to make this work. Code follows,
Store Sign Engaged
startup:7: Expected string
I know this is probably trival as all hell but it's 1AM and I can't think straight at the moment.
print('Store Sign Engaged')
text = "Welcome to Renegade Inc"
monitorWrap = {
"monitor_6", "monitor_7", "monitor_8", "monitor_9", "monitor_10", "monitor_11", "monitor_12", "monitor_13"
}
monitor = peripheral.wrap(monitorWrap)
monitor.setTextScale(2)
while true do
monitor.setCursorPos(1,1)
monitor.write(text)
monitor.setCursorPos(1,2)
monitor.write(textutils.formateTime(os.time(),false)
sleep(1)
monitor.clear()
term.setCursorPos(1,1)
end
executing this code ends with,Store Sign Engaged
startup:7: Expected string
I know this is probably trival as all hell but it's 1AM and I can't think straight at the moment.