This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Nakopa's profile picture

Simple Message Notifier and Display

Started by Nakopa, 12 December 2015 - 11:05 AM
Nakopa #1
Posted 12 December 2015 - 12:05 PM
The following:
Team vs Team
My team wants to communicate over computers (since chat over dimensions is disabled)
I tried my best to get a simple notifier working, but I don't get the idea on how to make a proper auto updating one.
My idea is a program, that automaticly refreshes the message screen as soon as the event (message recieved) appears. Also, being able to reply to the same channel with the next input in "" would be handsome.
Here is my progress: http://pastebin.com/2tLPYEVs
KingofGamesYami #2
Posted 12 December 2015 - 01:53 PM
First thing I noticed is mon.print - monitors don't have a print function. To get the behavior of print, you'd want to redirect to the monitor, then use print as normal. Ex:


local mon = peripheral.wrap( "right" )
term.redirect( mon )
print( "Hello" )
print( "Hi!" )
Nakopa #3
Posted 12 December 2015 - 02:29 PM
Okay, that worked out so far.