Content deleted Content added
The tutorial isn't short enough Tags: Mobile edit Mobile web edit |
Removed superlative things Tags: Mobile edit Mobile web edit |
||
Line 135: | Line 135: | ||
===Modem=== |
===Modem=== |
||
<!--If someone knows anything about the post and get requests stuff, PLEASE put it down below--> |
<!--If someone knows anything about the post and get requests stuff, PLEASE put it down below--> |
||
The [[Modem]] |
The [[Modem]] allows you to send messages across the entire universe! You could even create a makeshift internet of sorts with it! This being said, it seems like a scary and confusing prospect for new programmers. But the reality is, that it is very simple. There are two main things you need to know to make a messaging system or something like that. First is the SendMessage method. This is very simple. It sends a message across the universe. All you need to put in the method's parameters is the message you with to send, and the [[Modem]] ID you wish to send it on. Here is an example: |
||
<syntaxhighlight lang="lua" line="1"> |
<syntaxhighlight lang="lua" line="1"> |
||
local modem = GetPartFromPort(1, "Modem")--gets the modem object |
local modem = GetPartFromPort(1, "Modem")--gets the modem object |
||
Line 150: | Line 150: | ||
</syntaxhighlight> |
</syntaxhighlight> |
||
There you go! You have just made a simple messaging system. You can expand on this by using [[Keyboard|Keyboards]] to send messages, or use screens to make a nice looking UI. |
There you go! You have just made a simple messaging system. You can expand on this by using [[Keyboard|Keyboards]] to send messages, or use screens to make a nice looking UI. |
||
== Resources == |
== Resources == |
||