m
Bunch of minor edits.
m (I messed up!!! I meant to revert only one change) Tag: Undo |
m (Bunch of minor edits.) |
||
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
Important parts for programing:▼
Documentation for all the parts can be found here [https://github.com/iimurpyh/pilot-lua/wiki].
*[[Microcontroller]] - Runs code when triggered by polysilicon if it is powered. This is an essential part, as it is the only way to run code unprivileged. <!-- "..as it is the only way to run code unprivileged" as administrators can use the terminal. -->▼
*[[Port]] - Allows the microcontroller to interact with other objects, configure them, and send triggers. While not strictly essential, it is still a core part of programming as it is the only way for a microcontroller to interact with its surroundings.▼
*[[Screen]] - Displays user interface objects on its surface (such as TextLabel, ImageLabel, ..). 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]].▼
▲*[[Microcontroller]] - Runs code when triggered by
▲*[[Port]] - Allows the
▲*[[Screen]] - Displays user interface objects on its surface using Gui elements (such as TextLabel,
*[[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) -
*(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 ⟶ 18:
*[[Microphone]] - Retrieves chat messages. Can be used for chat logs or chat commands.
*[[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. 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">
|