Skip to content

Building your own game ​

Every built-in game was made with the builder, so open one to see how it works. To make your own: match manager → Games → New game, pick a template, and press Create and open the builder.

New game in the match manager: a name, and the templates to start from, from Blank to complete trading card games

The tabs, in the order you'll use them ​

  1. Info: The game (name, number of players, How to play, a rich text editor with headings and lists, and credits) and At the table: the rules level, undo, whether players may add cards mid-game (the GM only, tokens, or new cards too), a dealer, the play mat (the table's colour and an optional picture under the cards: fill the table, tile it or show it whole, darkened so the cards stand out; packs carry the picture with the game) and how cards move. Deck building (deck size, copy limits, banned cards, players adding cards) stays folded until a game uses it. Turning it on lets players choose decks when a match starts; to use them, set a Create cards step in Rules → Setup to From: Each player's chosen deck, into a player's zone of every player (see Trading card games). A setting with a problem is marked and says what's wrong.

    The Info tab: the game's name, players, How to play in a rich text editor, then the rules level and undo under At the table

  2. Card Designer: how cards look. Start from a layout, add elements (name, cost, art, rules text, stats) and drag them into place; a box the previewed card has no value for shows its field's name faintly. Card types can have their own looks: a Spell laid out differently from a Unit. Every card sets the shape, the font (Urbanist and IM Fell English come with the module) and the card back; Background (colour, picture, frame) belongs to the look you're designing. In Layers, the top of the list is in front. Card fields lists what every card has: removing one says first what uses it, and a list field's choices are edited one at a time, so renaming one renames it on every card that has it.

    The Card Designer: layouts and elements on the left, a big preview of the card in the middle, and its layers on the right

  3. Library: the cards themselves. Make them with New card, edit many at once in the table view, upload art, or import a CSV or JSON file: import shows what it will change first, and names columns it can't use and values that don't fit. Filter by any list field (those marked Filter on Card fields), and use Problems to find cards with a value that isn't a choice, text in a number field or an ability the game doesn't have, and No art to find empty art boxes. Players who open a game that takes their cards (Info → Deck building → Players can add cards) get Add a card (open) or Suggest a card (the GM approves it) here.

    The Library: every card in a grid, with a search box and filter chips for type, faction and speed

  4. Zones: where cards live, on a small map of the table: another player at the top, the shared board, then each player's own area. Drag a zone to move it: onto the board (or a new board row), toward the middle (a battlefield, facing opponents), near the player, or along a row. Layouts include piles, rows, fans and cascades. More options can hide a zone while it's empty or while a formula is false, change its name during play, show identical cards as one with a count, and label or shape the positions of a spread. Games that destroy cards pick where destroyed cards go, under the map.

  5. Variables: values the game tracks: life, score, chips, a pot. Player values can be linked to characters. The eye on each value sets who sees it at the table: not shown, beside each player, or (for game values) on a shared zone, small or big. It makes the readout for you. Click used in N places to see what uses a value and jump there. "No uses found" isn't a promise: formulas can build a value's name as they run ('game.foe' + n), which can't be followed, and the page says so when a game does.

    The Variables tab: game values and player values, each with where it starts, its limits and who sees it at the table

  6. Flow: how a round goes. Start from a pattern (take turns, turns with steps, deal-bet-show) and edit the phases. Each phase in the row shows who goes first, who sits out, when it ends early, where it goes next (a jump to another phase is marked) and a warning if something's wrong, and a line under the row says the round in words. Who goes first, Who sits out and Ends when are lists of the usual answers (the dealer, players with no cards in hand, only one player left…), with A formula… for anything else. Removing a phase, or starting from a pattern, says first what goes with it; actions only used in a removed phase go too. Drag steps by their handle to reorder them, or press Alt + ← / → in a step's name.

    The Flow tab: a round of two phases, Mulligan then Turn with its steps, and the chosen phase's settings below

  7. Rules: setup, the actions players take, what happens automatically (When this happens), card abilities, how the game ends, and readouts: numbers on the table, like each player's score or the pot. A big player readout sits in the corner of their area; a big shared one (a score to beat) sits on its zone, with a chip stack if it's money. Until a game has a readout, the table shows player numbers by itself; adding the first one keeps those on the table as readouts of their own. Markers are the ones players put on cards by hand (Strengthened, Resilience…: a name, an id, a colour, an icon, on/off or a count, and hover text).

    The Rules tab on Actions: each action on one line, saying what it is, who can use it and when

    • Actions are listed in the order of their buttons at the table: drag one by its handle to move it. A closed action says what it is (a button or a card play, who, when, whether it costs something). Open, it's in sections: the button (with an icon picker and In a group, which gathers actions into one menu or tabs), card play, who and when, Cost (paid first: mana, a discard; it doesn't check the player can pay, so put that in Only if), what it does, and what opens afterwards.
    • Winning: The game ends when is a list of the usual answers (someone reaches a score, someone drops to 0, a deck runs out, after a number of rounds…), with A formula… for anything else. For a score, the winner is set for you while the rule's steps are still the starting ones.
    • Formulas are one line each until you open one. Each says how often it's used; open it to jump to those rules. Renaming one follows everywhere it's used, and removing one that's used says what will stop working.
  8. Test Play: play your game in the builder, or let the computer play 100 random games to find rules that break, get stuck or never end (it takes up to half a minute, and you can stop it). A game with no winning rule, played round after round, is checked for broken rules instead.

    Test Play: start a test match, and the random games' report: no rule broke in 100 random games, how the games ended, and wins by seat

    • What's going on follows the test match: the phase and step, whose turn it is (or who still has to act), and every value. Change a value there to set up a moment, like a player on 1 Life to test the ending; it goes in the log, and Rewind undoes it.
    • The random games' report says what broke in plain words, with Show me to jump to the action or phase and the moves just before. It also says how the games ended (which Winning rule, how many rounds), wins by seat with ties counted apart, and actions random players never did, which may be impossible. The report stays when you switch tabs, and says when the rules have changed since.
  9. Publish: is it ready to share, and the ways to share it.

    The Publish tab: Ready to share, the check, the version and what changed, and the ways to share it

    • Ready to share? says whether there are errors, whether the random games passed on these exact rules, whether the version went up since you last shared it, and whether you've written what changed.
    • The check lists problems by tab, each named as a place ("Action: Cast · What it does, step 1"); click one to go there.
    • Version: when someone imports your .bcepack, their copy only updates if your version is higher than theirs, so raise it with (a fix) or (new things) before sharing an update. Raising it keeps this version's notes under Earlier versions. Both save as you type.
    • Share as a .bcepack is the way to send a game: rules, cards and pictures in one file. The .json leaves pictures as file paths. Replace from a .json says what will change first and saves a snapshot of the rules before it does. Export to a compendium replaces your earlier export instead of adding another copy.
    • Snapshots keep the rules, not the cards; the newest 20 are kept.

Rules that run before anyone has a turn

Setup, the start of each round and the first phase's When it starts run as the game begins, before any player has a turn. Rules there can't use a player's own zone (their hand), self, a choice or the card being played: there's no player yet. Put those in an action (a button players press) or a rule on A player's turn starts. The builder flags any it finds, and Test Play links you to the first one.

Undo and redo work everywhere in the builder, cards included (Ctrl / Cmd + Z, Ctrl / Cmd + Shift + Z), until you close it. A deleted card that comes back goes to the end of the library's order. Snapshots (on Publish) save a version of the rules you can go back to; they don't include the cards.

Formulas ​

Conditions and amounts are short formulas, like spreadsheet formulas: count(hand) > 0, var.self.life <= 0, card.cost <= var.self.mana. The builder suggests names as you type and underlines mistakes. See Formulas for the full list.

The rules checker ​

The Publish tab lists problems in plain words ("Nothing ever puts cards in Books") with a link to the field. Errors must be fixed before the game can be played; warnings are worth a look.

One warning is about Foundry itself: Foundry v13 can't save rules that nest more than 26 levels deep ("if" inside "for each" inside "if", about a dozen blocks inside each other). The checker says which action is too deep. Take steps out of the innermost blocks, or split the action in two. Foundry v14 has no such limit.

Next ​