Content deleted Content added
m I messed up!!! I meant to revert only one change Tag: Undo |
m Bunch of minor edits. |
||
Line 1: | Line 1: | ||
[[File:ComputerDiagram.png|alt=|thumb|300x300px|Diagram for how to construct a basic computer including a MicroController.]]Waste of Space features a programming language named '''Pilot.lua'''. Pilot.lua lets players manipulate the states of objects in-game. As Pilot.lua is a superset of [https://luau-lang.org/ Luau] – Roblox' superset of [https://en.wikipedia.org/wiki/Lua_(programming_language) Lua] 5.1 ''–'' learning Luau (or at least Lua 5.1) first would be |
[[File:ComputerDiagram.png|alt=|thumb|300x300px|Diagram for how to construct a basic computer including a MicroController.]]Waste of Space features a programming language named '''Pilot.lua'''. Pilot.lua lets players manipulate the states of objects in-game. As Pilot.lua is a superset of [https://luau-lang.org/ Luau] – Roblox' superset of [https://en.wikipedia.org/wiki/Lua_(programming_language) Lua] 5.1 ''–'' learning Luau (or at least Lua 5.1) first would be beneficial. |
||
⚫ | |||
Documentation for all the parts can be found here [https://github.com/iimurpyh/pilot-lua/wiki]. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | *[[Screen]] - Displays user interface objects on its surface (such as TextLabel, |
||
⚫ | |||
⚫ | |||
⚫ | *[[Screen]] - Displays user interface objects on its surface using Gui elements (such as TextLabel, Button, ..). It is one of the most common ways to provide the user with feedback as it is able to display it in a clear, visual way. It can be to a certain extent supplemented with the much easier to program [[Sign|signs]]. |
||
*[[Disk]] - Stores values in a [https://create.roblox.com/docs/education/coding-5/intro-to-dictionaries dictionary] format. Can store large amounts of data like code and [[Model Builder|model codes]]. Data stored on a disk is permanent, as opposed to variables on a microcontroller (which are lost when the microcontroller is powered off, or the server is restarted). |
*[[Disk]] - Stores values in a [https://create.roblox.com/docs/education/coding-5/intro-to-dictionaries dictionary] format. Can store large amounts of data like code and [[Model Builder|model codes]]. Data stored on a disk is permanent, as opposed to variables on a microcontroller (which are lost when the microcontroller is powered off, or the server is restarted). |
||
*[[EthernetCable]] (optional) - |
*[[EthernetCable]] (optional) - Allows Ports to reach further when placed touching the hole of the port, similar to how a wire allows power to reach further. |
||
*(UNSTABLE) [[Router]] (optional) - The router is the [[Antenna]] of [[EthernetCable|ethernet cables]]. It does the same thing as [[EthernetCable|ethernet cables]], only wireless. This is incredibly useful, as it allows for wireless connections, and allows for parts to be connected from across the region. Note that this is ONLY in [https://www.roblox.com/games/4569607361/Waste-Of-Space-UNSTABLE unstable]. |
*(UNSTABLE) [[Router]] (optional) - The router is the [[Antenna]] of [[EthernetCable|ethernet cables]]. It does the same thing as [[EthernetCable|ethernet cables]], only wireless. This is incredibly useful, as it allows for wireless connections, and allows for parts to be connected from across the region. Note that this is ONLY in [https://www.roblox.com/games/4569607361/Waste-Of-Space-UNSTABLE unstable]. |
||
Line 16: | Line 18: | ||
*[[Microphone]] - Retrieves chat messages. Can be used for chat logs or chat commands. |
*[[Microphone]] - Retrieves chat messages. Can be used for chat logs or chat commands. |
||
*[[Instrument]] - Measures physical properties such as temperature or velocity. |
*[[Instrument]] - Measures physical properties such as temperature or velocity. |
||
*[[TouchScreen]] - A improved version of the [[Screen]], as it allows you to get the X and Y (in offset) of the cursor on the screen. |
*[[TouchScreen]] - A improved version of the [[Screen]], as it allows you to get the X and Y (in offset) of the cursor on the screen. Note that you can use buttons on Screens for User input. |
||
As an example, the code below is code for a smart turret that takes chat commands and targets players accordingly, with the command <code>target playername</code>:<syntaxhighlight lang="lua" line="1"> |
As an example, the code below is code for a smart turret that takes chat commands and targets players accordingly, with the command <code>target playername</code>:<syntaxhighlight lang="lua" line="1"> |