equal
deleted
inserted
replaced
119 A good way to learn Lua scripting in Hedgewars is to read existing scripts. We recommend to take a look into `Data/Missions/Training/Basic_Training_-_Sniper_Rifle.lua` which is the Lua script for the Sniper Rifle target practice training mission. It should give you a rough “feeling” of how a script is supposed to look and is heavily commented. |
119 A good way to learn Lua scripting in Hedgewars is to read existing scripts. We recommend to take a look into `Data/Missions/Training/Basic_Training_-_Sniper_Rifle.lua` which is the Lua script for the Sniper Rifle target practice training mission. It should give you a rough “feeling” of how a script is supposed to look and is heavily commented. |
120 |
120 |
121 Continue with the following pages to learn more: |
121 Continue with the following pages to learn more: |
122 |
122 |
123 * [LuaAPI] contains a reference of most available functions and global variables |
123 * [LuaAPI] contains a reference of most available functions and global variables |
|
124 * [Missions] for a more in-depth guide on how to create missions |
124 * [LuaLibraries] contains information about “libraries”, that is, extra scripts you can include for even more functions. One common library is `Locale` for making a mission translatable |
125 * [LuaLibraries] contains information about “libraries”, that is, extra scripts you can include for even more functions. One common library is `Locale` for making a mission translatable |
125 * [GearTypes] contains the list of all gear types, along with an explanation of how the gears and their values work |
126 * [GearTypes] contains the list of all gear types, along with an explanation of how the gears and their values work |