Best Build 21 Screenshot

Log in to vote!

Latest Posts

Changes in LuaScripting

Editor Comment

Updated install instructions location.

Revision Differences of Revision 5

Scripting Widelands using Lua ¶
============================= ¶

[Lua](http://www.lua.org/) is used for scripting in various parts of Widelands: ¶

* Scenarios: all scenario-specific events and messages to the player are controlled by Lua scripts ¶
* Starting conditions: set up of a player's initial building and wares at the start of a regular game ¶
* Win conditions: the rules that decide when a game is won ¶
* Some people even test the abilities to cheat via lua in single player mode (take a look [here](http://blog.yjl.im/2011/02/cheating-on-widelands.html) ) ¶

Documentation of these aspects is available [outside the Wiki](https://wl.widelands.org/docs/wl/lua_index/). This documentation is automatically generated from the source code. See
Abouthe diSourecteCory `doc` in the sDocurcme disntribuation for details on how to modify and generate it yourself. ¶