Skip to content

Any game system ​

D&D 5e and Pathfinder 2e characters work out of the box. For any other system, you show the Card Engine where things live on that system's character sheet: a list of character fields (gold, hit points, luck…) and a list of character checks (the rolls players make). It takes a few minutes, once per world, and only the GM does it.

Once that's done, games can:

  • start a player's values from their character's sheet, and write changes back: lose 5 gold in a game and the sheet loses 5 gold;
  • ask a player for a check that rolls your system's formula with their character's numbers;
  • heal and hurt characters, and give them conditions.

Initiative cards work in every system already, with nothing to set up.

1. Pick the adapter ​

Open Game Settings → Configure Settings → Blob's Card Engine and find Character system.

  • Automatic uses D&D 5e or Pathfinder 2e in those worlds, and Any system everywhere else. Most worlds can leave it on Automatic.
  • Any system (attribute paths) uses your own lists even in a D&D 5e or Pathfinder world. It replaces the built-in adapter completely, built-in fields and checks included.

Below it are two boxes, Character fields (any system) and Character checks (any system). Each takes a list written in JSON, explained in steps 3 and 4. The boxes are small, so write the list in a text editor, paste it in and press Save Changes.

Blob's Card Engine settings: Character system set to Any system (attribute paths), with the Character fields and Character checks boxes filled in below

2. Find where each value lives ​

Every value on a character is stored at a path: names joined by dots, starting with system.. Hit points might be at system.health.value and gold at system.wealth.gold. Every system names its own, so you need to find yours. There are two ways.

Search for a number you can see on the sheet. Say a character has 40 gold. Press F12 to open the developer tools and go to the Console tab. Then type this, with your character's name and the number:

js
Object.entries(foundry.utils.flattenObject(game.actors.getName("Brannoc").system))
  .filter(([path, value]) => value === 40)
  .map(([path]) => "system." + path)

It lists every path that holds 40. If it lists several, change the number on the sheet and search again. Text works too: value === "Elf".

Inspect the box on the sheet. With the developer tools open, click the element picker (the arrow at the top left of the tools), then click the box on the sheet. A box you can type in usually names its path, as name="system.…".

A path must lead to a single number, text or yes/no. A path that holds several values doesn't work: system.health holds both value and max, so use system.health.value. Your system's documentation or wiki may list its paths as well.

3. List the character fields ​

Character fields lists the values games can link to. Each entry has:

keyThe name games use for it. The built-in games look for the keys in the table below.
labelWhat you see in the Game Builder.
pathWhere it lives on the sheet. You can leave off system. at the front.
readonlyOptional. true means games read it but never change the sheet.

Here's an example. Your paths will be different:

json
[
  { "key": "gold", "label": "Gold", "path": "system.wealth.gold" },
  { "key": "hp", "label": "Hit points", "path": "system.health.value" },
  { "key": "hpMax", "label": "Hit point maximum", "path": "system.health.max", "readonly": true },
  { "key": "luck", "label": "Luck", "path": "system.luck" }
]

These keys mean something to the built-in games and effects:

KeyWhat uses it
goldTavern Gambit's stakes, and the Fate Deck's gold
inspirationThe Fate Deck's inspired. Point it at a yes/no value.
hpHeal or hurt a character changes this
hpMaxHealing stops here. Without it, healing has no cap.

Any other key is yours to use in your own games.

4. List the character checks ​

Character checks lists the rolls a game can ask for. Each entry has:

idThe name a game asks for.
labelWhat players see on the roll button.
formulaA Foundry roll formula. @ reads a number from the character: in most systems, @luck is the value at system.luck.
json
[
  { "id": "luck", "label": "Luck", "formula": "1d20 + @luck" },
  { "id": "skill:dec", "label": "Deception", "formula": "2d6 + @skills.deceive" }
]

Test a formula in chat first. Select the character's token and type /r 1d20 + @luck. If the total adds the number you expect, the formula will work in a game.

The second entry is for Tavern Gambit. Its bluff asks for a skill:dec check (Deception, in D&D's terms). Give that id your system's formula and the bluff rolls it. Without one, players roll a plain d20.

Open the game in the Game Builder and go to the Variables tab. Each player value has a link row (the chain icon). Pick a character field there, then how the value is linked:

  • kept in sync: the value starts from the sheet. Changes in the game are written to the sheet, and edits made on the sheet during the match reach the game.
  • read at the start: the value starts from the sheet, and the game never changes the sheet. Fields marked readonly are always linked this way.

Two player values in the Game Builder: Gold linked to Character's Gold, kept in sync, and Luck linked to Character's Luck, read at the start

The list also shows the fields of His Majesty the Worm and Perfect Draw! characters. Those are the module's own character types, and they work in every system. If your own fields are missing, close the builder and open it again. It reads the settings when it opens.

6. Ask for a check ​

In an action or a rule, add Ask for a character check (in the Dice & characters group). Type your check's id in Check. Then add a Number to beat and a name under Name it, and the next steps can tell whether the roll worked. If the name is push, push.success is true when the roll equals the number or goes over it, and push.total is the roll.

An action's steps: a check of luck against 12, named push, then "If push.success" adds 5 gold, otherwise the character loses 2 hit points

At the table, the player gets a button that rolls the check as their character, and the roll goes to chat. A player with real dice can type the total instead. Players without a character roll a plain d20.

The table: Brannoc and Sly each show the gold and luck from their sheets, and Brannoc is asked to roll Luck, beat 12

What works and what doesn't ​

  • Heal or hurt a character changes hp, and healing stops at hpMax. Any system has no temporary hit points, so damage comes straight off hp. As temporary hit points posts a line in chat for the GM to apply instead.
  • Give a character a condition turns on one of Foundry's status effects, the icons on a token. Type the id your system uses. To list them all, type CONFIG.statusEffects.map(e => e.id) in the console. The Fate Deck asks for D&D names (blinded, frightened, poisoned, prone), so those cards only give a condition if your system has a status with the same id.
  • Ability scores, skills, temporary hit points and loot are D&D 5e changes (the Mysterious Deck uses them). Other systems get a line in chat telling the GM what to change on the sheet.
  • Put an effect on a character works in every system, but an effect's rule changes only apply in the system it was made for.
  • Initiative cards work in every system.

If something doesn't work ​

  • The link list doesn't show your fields. The list has a mistake, and one missing comma or quote makes the Card Engine skip the whole list. Check that each entry is inside { }, entries are separated by commas, every name and text is in double quotes, and the whole list is inside [ ].
  • A value starts at its "Starts at" number instead of the sheet's. The path doesn't lead to anything on that character. Search for it again (step 2) and check the spelling: paths are case-sensitive.
  • A check rolls a plain d20. The id in the game doesn't match an id in your checks.
  • The sheet doesn't change. The field is readonly, or the link is read at the start, or the path points at a number the system works out itself (a total or a modifier) rather than one you can type in.