SHOW:
|
|
- or go back to the newest paste.
| 1 | mon = peripheral.wrap("bottom")
| |
| 2 | mon.clear() | |
| 3 | mon.setTextScale(2) | |
| 4 | rednet.open("left")
| |
| 5 | while true do | |
| 6 | id, message = rednet.receive() | |
| 7 | - | if id == 827 then |
| 7 | + | if id == 834 then |
| 8 | words = {}
| |
| 9 | for word in message:gmatch("%w+") do table.insert(words, word) end
| |
| 10 | for i=2, #words+1, 2 do | |
| 11 | mon.clear() | |
| 12 | mon.setCursorPos(1, 1) | |
| 13 | if words[i] == nil then | |
| 14 | mon.write(words[i-1]) | |
| 15 | else | |
| 16 | mon.write(words[i-1].." "..words[i]) | |
| 17 | end | |
| 18 | - | os.sleep(0.25) |
| 18 | + | os.sleep(1) |
| 19 | end | |
| 20 | end | |
| 21 | end |