equal
deleted
inserted
replaced
17 To use this library, you first have to load it and to call `SimpleMission` once with the appropriate parameters. |
17 To use this library, you first have to load it and to call `SimpleMission` once with the appropriate parameters. |
18 |
18 |
19 == `SimpleMission(params)` == |
19 == `SimpleMission(params)` == |
20 |
20 |
21 This function sets up the *entire* mission and needs one argument: params. The argument `params` is a table containing fields which describe the mission. |
21 This function sets up the *entire* mission and needs one argument: params. The argument `params` is a table containing fields which describe the mission. |
|
22 |
|
23 This is the definition of the `params` field: |
22 |
24 |
23 <code> |
25 <code> |
24 Mandatory fields: |
26 Mandatory fields: |
25 - teams: Table of teams. There must be 1-8 teams. |
27 - teams: Table of teams. There must be 1-8 teams. |
26 |
28 |
177 FAIL CONDITION: Gear destroyed before it reached the required number of skips |
179 FAIL CONDITION: Gear destroyed before it reached the required number of skips |
178 - id |
180 - id |
179 - skips Total number of water skips required at least (default: 1) |
181 - skips Total number of water skips required at least (default: 1) |
180 </code> |
182 </code> |
181 |
183 |
|
184 Source: https://hg.hedgewars.org/hedgewars/raw-file/tip/share/hedgewars/Data/Scripts/SimpleMission.lua |
|
185 |
182 === Examples === |
186 === Examples === |
183 A couple of scenarios are using `SimpleMission`. Look into `Data/Missions/Scenarios` of your Hedgears installation. Check out the source code of the mission “Bazooka Battlefield” for a typical mission created with this library. |
187 A couple of scenarios are using `SimpleMission`. Look into `Data/Missions/Scenarios` of your Hedgewars installation. Check out the [https://hg.hedgewars.org/hedgewars/raw-file/tip/share/hedgewars/Data/Missions/Scenario/Bazooka_Battlefield.lua source code of the mission “Bazooka Battlefield”] for a typical mission created with this library. |