19 posts
Posted 24 June 2012 - 11:16 AM
i Need someone to write me a lua script that is able to write multi-line messages on a monitor with a variable font size.
I have tried but it has not worked on multiplayer so a multiplayer tested one would be great.
Thanks
JaydenLoon3y :P/>/>
PS a quick reply is needed please
193 posts
Posted 24 June 2012 - 01:51 PM
You can't have characters in a monitor all different sizes.
The whole screen has only one font size that effects all.
Try this
function monitor(side)
if peripheral.isPresent(side) then
term.redirect(peripheral.wrap(side))
end
end
function size(side, number)
if peripheral.isPresent(side) then
peripheral.wrap(side).setTextScale(number)
end
end
This is clearly not a program
But use this with a print("bla") and thats the closest you are going to get without making it look pretty.
Just whip it into a program :P/>/>
12 posts
Posted 26 July 2012 - 05:56 PM
i use this to print the time on a monitor
while true do
local time = os.time()
time = textutils.formatTime(time, false)
mon = peripheral.wrap("top", true)
mon.setTextScale(5)
mon.setCursorPos(1,1)
mon.write(time)
sleep(0,1)
mon.clear()
end