Skip to content

Contracts

Every weapon is in every run from the start, so nothing is bought between runs. Cars, parts, maps and paints are unlocked by contracts, and each run ends with a score (cash grabbed times the difficulty's and modifiers' payout, plus the escape bonus). Mods can add contracts and the counters they read.

A contract is a reward row (car, part, map unlock or paint) with a counter and a target. Count one of the game's counters, or add one in counters.json and feed it from code:

[
  {
    "id": "warlord.warlords_wrecked",
    "label": "WARLORDS WRECKED"
  }
]
death = function(s, e) game.count(s, 'warlord.warlords_wrecked') end,
  • scope: total adds up across runs, run must be reached in one run.
  • Progress reads as label, numbers and unit: WARLORDS WRECKED 1/3.
  • If a mod is removed or fails to load, the save keeps its counters and unlocks. They return with the mod.

Example: warlord.