Reference

Cards

A card design: when it mints and how it looks. Text placeholders: {event} {year} {opponent} {score} {round} {average} {checkout} {n180} {rank} (yours) {oppRank} {wins} {titles} {item} {award} {detail}. See Cards.

Content type
cards
Files
data/cards.json, data/cards/
Shape
A list of records, each with its own id
Patch target
card:<id>, for example card:core.card.dual-grudge
In the base game
33 records
Guide
Cards

Fields#

Indented fields belong to the field above them. [] marks the items of a list. A field that is not required may be left out; the default is used.

FieldTypeRequiredDefaultNotes
ididYesNamespaced id, e.g. "core.player.rory-calder"
settext"milestones"Checklist set: core has "titles", "milestones" and "duals"; a mod can start its own. Pattern: ^[a-z][a-z0-9-]*$
nametext, up to 40 charactersYesThe name on the checklist (no placeholders).
titletext, up to 60 charactersThe title printed on the card (placeholders allowed). Default: the name.
subtitletext, up to 160 charactersA flavour line for the card back (placeholders allowed).
triggerone of the optionsYesWhen a card can mint: - titleWin: you win an event (qualifiers and league nights aside) - match: after each of your matches - eventEnd: your event is over, whatever the result - tourCard: you win a Tour Card - ranking: each week, from your Order of Merit rank - award: you win a season award at the awards night ({award} is its name) Options: titleWin, match, eventEnd, tourCard, ranking, signature, award, script.
conditionsobject{}Every condition is optional; all the ones given must hold.
conditions.wontrue or falseYou won the match (match trigger).
conditions.tvtrue or false
conditions.majortrue or false
conditions.tierobjectThe event's tour tier.
conditions.tier.minnumber
conditions.tier.maxnumber
conditions.tagslist, at least 1 itemThe event has one of these tags.
conditions.eventslist, at least 1 itemThe event is one of these (event template ids).
conditions.tourslist, at least 1 itemThe event is on one of these tours (tour ids).
conditions.stagelist, at least 1 itemThe round: early, late (quarters and semis) or the final.
conditions.marginlist, at least 1 itemwhitewash (loser scored nothing), decider (won by one), close (by two), comfortable.
conditions.averageobjectYour three-dart average in the match.
conditions.average.minnumber
conditions.average.maxnumber
conditions.n180objectYour 180s in the match.
conditions.n180.minnumber
conditions.n180.maxnumber
conditions.checkoutobjectYour highest checkout in the match.
conditions.checkout.minnumber
conditions.checkout.maxnumber
conditions.nineDartertrue or falseYou hit a nine-darter in the match.
conditions.oppRankobjectYour opponent's Order of Merit rank (unranked never matches).
conditions.oppRank.minnumber
conditions.oppRank.maxnumber
conditions.rivalryobjectHow fierce your rivalry with the opponent is, 0–1 (0.75 = bitter).
conditions.rivalry.minnumber
conditions.rivalry.maxnumber
conditions.rankobjectYour Order of Merit rank (unranked never matches).
conditions.rank.minnumber
conditions.rank.maxnumber
conditions.winsobjectYour career match wins, this one included.
conditions.wins.minnumber
conditions.wins.maxnumber
conditions.titlesobjectYour career titles, this one included.
conditions.titles.minnumber
conditions.titles.maxnumber
conditions.tvTitlesobjectYour televised titles, this one included.
conditions.tvTitles.minnumber
conditions.tvTitles.maxnumber
conditions.positionobjecteventEnd: where you finished (0 = won it, 1 = runner-up, 2 = semi-finals…).
conditions.position.minnumber
conditions.position.maxnumber
conditions.awardlist, at least 1 itemaward: which season awards (any of them), by key ("playerOfYear") or id (awards content).
oncetrue or falsetrueMint once a career (true), or every time it happens (false).
parallelone of several shapes"refractor"Base parallel key, or "prestige" for the event's prestige rules.
Shape 1: text
Shape 2: exactly "prestige"
upgradesobjectUpgrade chances for this card instead of the settings' (the fields given replace them).
upgrades.superfractornumber, 0 to 1
upgrades.stepslist, up to 10 items
upgrades.steps[].stepswhole number, 1 to 10Yes
upgrades.steps[].chancenumber, 0 to 1Yes
upgrades.bigEventBoostnumber, 0 to 10
statone of the optionsThe stat shown big on the front. Options: average, checkout, n180, score, rank, wins, titles, prize, award.
iconone of the optionsBuilt-in badge icons (or give badge, an image in your mod). Options: trophy, maximum, nine, checkout, star, ranking, card, crown, target, flame, handshake, bolt.
badgefile pathYour own badge image instead of an icon (asset path, relative to the mod).
layoutone of the options"single"single: you; dual: you and your opponent, two autographs (match trigger). Options: single, dual.
grouptext, up to 40 charactersAt most one card per group mints from one moment (the first by order).
orderwhole number0Checklist order within the set.

Example#

A record from the base game’s data/cards/duals.json.

{
  "id": "core.card.dual-grudge",
  "set": "duals",
  "name": "Grudge Match",
  "subtitle": "Beat your fiercest rival, {opponent}, {score} in the {round}. Neither of you smiled for this one.",
  "trigger": "match",
  "conditions": {
    "won": true,
    "rivalry": {
      "min": 0.75
    },
    "stage": [
      "late",
      "final"
    ]
  },
  "once": false,
  "parallel": "red",
  "stat": "score",
  "layout": "dual",
  "group": "dual",
  "order": 60
}

In your pack the record’s id starts with your pack’s id instead of core, unless you mean to replace this one.

Written for Darts Player Simulator 0.50.32. Built from the game's own schemas and its base pack.