LuaGuide.wiki
changeset 900 f8887a49ad91
parent 899 011ca6031678
child 901 8e65ab2cd36d
equal deleted inserted replaced
899:011ca6031678 900:f8887a49ad91
   118 
   118 
   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 * [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
   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 * [GearTypes] contains the list of all gear types, along with an explanation of how the gears and their values work
   125    * [GearTypes] contains the list of all gear types, along with an explanation of how the gears and their values work