LuaGuide.wiki
changeset 1745 6391c69a5d0a
parent 1727 6d99747d81e3
child 1747 8269ec3e5bfc
equal deleted inserted replaced
1744:039b534ff9d6 1745:6391c69a5d0a
     8 
     8 
     9 A Lua script is used to make the game behave different by giving the Hedgewars engine different commands. The script gets called by the engine on different events and the script tells the engine what to do.
     9 A Lua script is used to make the game behave different by giving the Hedgewars engine different commands. The script gets called by the engine on different events and the script tells the engine what to do.
    10 Lua is a programming language, and you must first learn some basics about the Lua programming language to get started. See [http://www.lua.org/] to learn more.
    10 Lua is a programming language, and you must first learn some basics about the Lua programming language to get started. See [http://www.lua.org/] to learn more.
    11 
    11 
    12 == Lua in Hedgewars ==
    12 == Lua in Hedgewars ==
    13 Version 0.9.13 of Hedgewars introduced the ability to use Lua scripts to modify Hedgewars behaviour for different maps. The use of Lua scripts has been extended since then.
    13 Version 0.9.13 of Hedgewars introduced the ability to use Lua scripts to modify Hedgewars behaviour for different maps. The till then used triggers (only appeared in training maps) were removed.
       
    14 
       
    15 The use of Lua scripts has been extended since then.
    14 
    16 
    15 Now, Lua scripts are used for:
    17 Now, Lua scripts are used for:
    16 
    18 
    17  * [Missions], one of three types:
    19  * [Missions], one of three types:
    18   * Training: Easy missions which explain the game, like a tutorial
    20   * Training: Easy missions which explain the game, like a tutorial