Total Miner Lua Tutorials
Here you will find in-depth tutorials for Lua Scripting in Total Miner.
These tutorials will cover:
- Total Miner’s scripting interface / editor.
- The basic interactions of Total Miner and Lua scripting.
- Common functions (commands), and their usage.
What is Lua Scripting?
If you are familiar with the existing TM scripts then the answer is easy for you. Lua scripts are basically the same as TM scripts, except they use the Lua programming language, rather than the TM script syntax. The lua programming language allows much greater flexibility in writing scripts, better variables, better control flow, eg. while loops, for loops, and proper functions.
For those new to scripting and haven’t yet used TM scripts, we advice you start with Lua scripts and not bother with TM scripts. Lua scripting is easier to learn, more flexible and will be better supported into the future.
TL;DR** In short, you write scripts to dynamically control Total Miner worlds, to control the entities in those worlds, and to interact with players.
Tutorials
- Getting Started - Your first script -
Hello World
- Starting Simple - A beginner tutorial. Writing a simple script.
- The Script Editor - Learn the main features of the script editor.
For further learning of the Lua programming language and its syntax, see here.