equal
deleted
inserted
replaced
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 |
22 |
23 ``` |
23 <code> |
24 Mandatory fields: |
24 Mandatory fields: |
25 - teams: Table of teams. There must be 1-8 teams. |
25 - teams: Table of teams. There must be 1-8 teams. |
26 |
26 |
27 Optional fields |
27 Optional fields |
28 - ammoConfig Table containing basic ammo values (default: infinite skip only) |
28 - ammoConfig Table containing basic ammo values (default: infinite skip only) |
175 - id Gear to check |
175 - id Gear to check |
176 - type="waterSkip" Gear must have skipped over water |
176 - type="waterSkip" Gear must have skipped over water |
177 FAIL CONDITION: Gear destroyed before it reached the required number of skips |
177 FAIL CONDITION: Gear destroyed before it reached the required number of skips |
178 - id |
178 - id |
179 - skips Total number of water skips required at least (default: 1) |
179 - skips Total number of water skips required at least (default: 1) |
180 ``` |
180 </code> |
181 |
181 |
182 === Examples === |
182 === 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. |
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. |