equal
deleted
inserted
replaced
434 TargetPracticeMission(params)</code> |
434 TargetPracticeMission(params)</code> |
435 |
435 |
436 = !SpeedShoppa = |
436 = !SpeedShoppa = |
437 Starting with 0.9.22, this library provides a function to create a simple shoppa-style mission. |
437 Starting with 0.9.22, this library provides a function to create a simple shoppa-style mission. |
438 |
438 |
439 In SpeedShoppa missions, the player starts with infinite ropes and has to collect all crates as fast as possible and compete for the fastest time. |
439 In !SpeedShoppa missions, the player starts with infinite ropes and has to collect all crates as fast as possible and compete for the fastest time. |
440 |
440 |
441 This library also loads the Locale library for its own purposes. If you use !SpeedShoppa, you do not have to explicitly load Locale anymore. |
441 This library also loads the Locale library for its own purposes. If you use !SpeedShoppa, you do not have to explicitly load Locale anymore. |
442 |
442 |
443 === `SpeedShoppaMission(params)` === |
443 === `SpeedShoppaMission(params)` === |
444 This function sets up the *entire* mission and needs one argument: `params`. |
444 This function sets up the *entire* mission and needs one argument: `params`. |
448 |
448 |
449 || *Field name* || *Description* || |
449 || *Field name* || *Description* || |
450 || `map` || The name of the map to be used || |
450 || `map` || The name of the map to be used || |
451 || `theme` || The name of the theme (does not need to be a standalone theme) || |
451 || `theme` || The name of the theme (does not need to be a standalone theme) || |
452 || `time` || The time limit in milliseconds || |
452 || `time` || The time limit in milliseconds || |
453 || `crates` || The coordinates of where the crates will be spawned. It is a table containing tables containing coordinates of format `{ x=value, y=value }`. Example: `crates = { { x = 324, y = 43 }, { x = 123, y = 56 }, { x = 6, y = 0 }, }`. There must be at least 1 crate. || |
453 || `crates` || The coordinates of where the crates will be spawned. It is a table containing tables containing coordinates of format `{ x=value, y=value }`. There must be at least 1 crate. || |
454 |
454 |
455 Optional fields: |
455 Optional fields: |
456 |
456 |
457 || *Field name* || *Description* || |
457 || *Field name* || *Description* || |
458 || `missionTitle` || The name of the mission (optional but highly recommended) (default: `"Speed Shoppa"`) || |
458 || `missionTitle` || The name of the mission (optional but highly recommended) (default: `"Speed Shoppa"`) || |