LuaAPI.wiki
changeset 859 16f26a7c87d9
parent 858 2a562faa73fb
child 860 a7ddaecf54f3
equal deleted inserted replaced
858:2a562faa73fb 859:16f26a7c87d9
    12 === About this wiki page ===
    12 === About this wiki page ===
    13 This page tends to become outdated. For a list of undocumented functions, see [http://hw.ercatec.net/docs/lua_wiki_check.php].
    13 This page tends to become outdated. For a list of undocumented functions, see [http://hw.ercatec.net/docs/lua_wiki_check.php].
    14 
    14 
    15 <wiki:toc max_depth="4" />
    15 <wiki:toc max_depth="4" />
    16 
    16 
    17 == Overview ==f
    17 == Overview ==
    18 === How Hedgewars handles Lua scripts ===
    18 === How Hedgewars handles Lua scripts ===
    19 As of Version 0.9.20, Hedgewars supports Lua scripts for two similar tasks: Define tutorial missions, campaign missions or provide special map behaviour for precreated maps. It is also used for multiplayer scripts to create new game styles.
    19 As of Version 0.9.20, Hedgewars supports Lua scripts for two similar tasks: Define tutorial missions, campaign missions or provide special map behaviour for precreated maps. It is also used for multiplayer scripts to create new game styles.
    20 
    20 
    21 === Tutorial missions ===
    21 === Tutorial missions ===
    22 Tutorial missions are located within text files inside `share/hedgewars/Data/Missions/Training`. The game will list all files with the lua extension inside this directory in the Training selection screen. You’ll find some premade example scripts within this directory that contain several comments on the script lines and what they do.
    22 Tutorial missions are located within text files inside `share/hedgewars/Data/Missions/Training`. The game will list all files with the lua extension inside this directory in the Training selection screen. You’ll find some premade example scripts within this directory that contain several comments on the script lines and what they do.