Wiki/Guides/Lua

{{Wiki_Page | content=

{{Wiki_Page/subpages|Learning Lua as a beginner|Learning Lua as a programer|Exploring the Stormworks Lua API|Special advise and little known facts|||||||||||}}

Lua is used in script components. It can read and write composite data, so it can do the same stuff other logic components can do, but in a programatic way.

It can also draw stuff on a monitor or over a camera feed.

If you need more assistance or have more questions, you can always join the Official Stormworks Discord and ask your questions in the #lua channel.

Please choose which kind of user you are


 * You have no experience in programing?  go to  Learning Lua as a beginner
 * You have experience in another language?  go to  Learning Lua as a programer
 * You have experience in Lua?  go to  Exploring the Stormworks Lua API
 * You have experience in Lua in Stormworks?  go to  Special advise and little known facts

Tools to program Lua scripts
In case you already know a little bit, or watched one of those tutorials, you can use this website to program scripts. https://lua.flaffipony.rocks Advantages compared to the original editor in game
 * undo/redo function
 * autocompletion
 * debug scripts with print
 * zooming
 * simulate inputs and properties
 * minifier
 * UI Builder
 * share scripts with other people

Lua Video Tutorial
}}