LuaGuide.wiki
changeset 1415 36f16bdf8440
parent 1414 a76bfb278ad9
child 1416 ea8b1317e8f3
equal deleted inserted replaced
1414:a76bfb278ad9 1415:36f16bdf8440
    24 
    24 
    25 == The basic structure ==
    25 == The basic structure ==
    26 
    26 
    27 Dependent on what type of script you want to write the requirements are a bit different, but before we go into that we must first create the `.lua` file. The location of the file depends on the script type.
    27 Dependent on what type of script you want to write the requirements are a bit different, but before we go into that we must first create the `.lua` file. The location of the file depends on the script type.
    28 
    28 
    29  * If you want to make a mission for multi player (also called a “mission map”) you create a map and create a new file `map.lua` in the map's folder.
    29  * If you want to make a mission for singleplayer then you create a new `.lua` in one of three directories, depending on the type:
    30  * If you want to make a mission then you create a new `.lua` in one of three directories, depending on the type:
       
    31      * Training: `Data/Missions/Training`
    30      * Training: `Data/Missions/Training`
    32      * Challenge: `Data/Missions/Challenge`
    31      * Challenge: `Data/Missions/Challenge`
    33      * Scenario: `Data/Missions/Scenario`
    32      * Scenario: `Data/Missions/Scenario`
       
    33  * If you want to make a mission for multi player (also called a “mission map”) you create a map and create a new file `map.lua` in the map's folder.
    34  * If you want to make a custom game style, create a new `.lua` file in `Data/Scripts/Multiplayer`.
    34  * If you want to make a custom game style, create a new `.lua` file in `Data/Scripts/Multiplayer`.
    35  * Campaign missions go into `Data/Missions/Campaign/<CAMPAIGN NAME>`.
    35  * Campaign missions go into `Data/Missions/Campaign/<CAMPAIGN NAME>`.
    36 
    36 
    37 To get started, a `.lua` file should generally be structured like this:
    37 To get started, a `.lua` file should generally be structured like this:
    38 {{{
    38 {{{