Computercraft welcome monitors

Daniel Haugseth

New Member
Jul 29, 2019
23
0
0
Just made my own server for friends and family and i want a computercraft monitor displaying rules and different info i need people to know. But im really bad at programming. Does anyone know of any shortcuts i could take ?
 

Anemoi

New Member
Jul 29, 2019
35
0
0
On the computer touching the monitor do the following.
1. edit startup
2.print("text here")
3. repeat 2 for each line you want.
4. save program
5. monitor sidemonitorson startup

Example program:
print("Hello welcome to the server.")

Example running it with the monitor on top of the computer:
monitor top startup
 

VikeStep

New Member
Jul 29, 2019
1,117
0
0
also if you want multiple lines of text on the monitor you can do the following:
Code:
print[[Hello, This is on line 1
This is on line 2
This is on line 3
 
This is on line 5]]
 
this method above is much more efficient than other methods
 

VikeStep

New Member
Jul 29, 2019
1,117
0
0
print and local have to be lowercase
if you are using that method you have to use monitor.write() instead of print()
 

VikeStep

New Member
Jul 29, 2019
1,117
0
0
Any difference if its advanced monitors instead of regular monitors?

nope, only difference is advanced monitors can do colour
try doing monitor.setCursorPos(1,2) before writing the second line, this will start printing the words on the second line
the numbers in that function are the x and y coords on the monitor
 

Jared39

New Member
Jul 29, 2019
125
0
0
What I do is:

mon=peripheral.wrap("[position]")
mon.clear()
mon.setTextScale([1-5])
mon.setCursorPos(1,1)
mon.write("Random message")

To make multiple lines just repeat:
mon.setCursorPos(1,2)
mon.write("Random message 2")
 

Henry Link

Popular Member
Dec 23, 2012
2,601
553
128
USA - East Coast
The only thing the really changes it the line for the peripheral.wrap. Instead of wrapping the side you wrap the text it gave you when you connected the wired modem and turned it on. The text should pop in the chat. If you didn't see it just go back to the modem and toggle on/off and it should pop the text in to chat.