Learning Scribunto

We are introducing Scribunto to the Squad wiki. This will be a learning process. On this page we collect all our learning material and learning steps.

The first real use of Scribunto on the Squad Wiki is happening with the map pages - see WP - Introduce Cargo to Maps for more details.

This page is used to experiment with Scribunto/Lua code examples for the purpose of learning; they are not related to Squad.

Edit this page to see the Lua function calls. The functions' source codes can be found in Module:Learning.

All pages under Category:Learning Scribunto are only used for learning Cargo; they are not related to Squad.

What is Scribunto
In short: Scribunto is a wiki extension that allows scripting languages to be used inside the wiki. In case of Scribunto, the programming language is Lua.

If you want to learn more about Scribunto, check out the following resources:
 * https://help.gamepedia.com/Extension:Scribunto

Grabbing Map by biome
Middle Eastern: