Repository navigation
Map scripting
The map scripting feature of OpenRA allows you to create custom shellmaps, minigames, single player/co-op missions and more.
The Lua scripting language is used in OpenRA for scripting maps. There is no need to download Lua from the website; a custom build of Lua is included with recent versions of the game.
This guide assumes you have knowledge of creating and editing OpenRA maps (See Mapping).
Lua script code is to be contained in one or more .lua files within the map archive, next to map.yaml and map.bin. All script files for a particular map must be within the map's archive.
To actually have this Lua code executed, you must add a trait to the World actor in map.yaml like so:
World:
LuaScriptInterface:
LuaScripts: <filename>, ...
LuaScripts is alist of Lua script filenames. These script files will be loaded when the map is loaded.
Players ๐ฒ
- FAQ โ
- Installation ๐ฆ
- Hotkeys and Stances ๐ฎ
- Strategies ๐
- RaspberryPi ๐
- Changelog ๐
Modders โ๏ธ
- Audio guide ๐
- Traits ๐
- Palettes and Remaps ๐จ
- World Coordinate System ๐
- Map scripting
- Lua-API ๐
- Actor-Upgrades ๐
- Mapping ๐ง
- Modding Guide
- Pixelart ๐
Developers ๐ง
- Contributing โค๏ธ
- Compiling
- Hacking
- Coding Standard ๐
- Branches and Releases ๐
- Release Checklist โ
- Sequences
- Glossary
- Reverse engineering ๐
- License ยฉ๏ธ