TableTower/docs/MECHANICS.md
RobinFiredrake 1735ed09fd Card threads, Morgan's welcome, and typing/scroll/wheel papercuts
- Card threads: a port on each card's bottom edge. Plain runs after any
  result (once the result's own threads finish); Otherwise runs only when
  no thread of the result ran. Saved as card_threads (LOGIC.md 3g).
- Typing on long cards no longer rebuilds the inspector or the card per
  key (~175 ms -> ~7 ms). Timing tool: tests/perf_typing.gd.
- "+ Add result" scrolls to the new row and focuses it.
- Mouse wheel zooms; Shift+wheel pans sideways; scrolling lists keep it.
- "SPREAD" caption over the switcher; Morgan's first-run welcome.
- docs/MECHANICS.md: checklist of table mechanics for planning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 10:41:13 -06:00

7.5 KiB
Raw Blame History

Table mechanics checklist

The ways printed TTRPG and story-prompt tables get rolled, and how Table Tarot handles each. Written 2026-11-16 from general genre knowledge (no book read) and checked against LOGIC.md.

Status: ✅ built · 🟡 works with a workaround · ❌ missing · ❓ not sure, test it Books column: put an x (or a book name) when one of your books uses it. Add rows for anything not here.

1. Dice shapes

# Mechanic Example wording Status Books
1.1 One die, one row per face "Roll 1d8" ✅ ranged or weighted card
1.2 Ranges on a die "d100: 01–15 Bandits, 16–30 Wolves" ✅ ranged card
1.3 Bell curve sums "2d6: 2 Disaster … 12 Windfall" ✅
1.4 Modifier pushes past the table "1d20 + Luck; 21+ …" ✅ dice_mod, ends clamp
1.5 d66 / d666 (dice read as digits, not added) "Roll d66: 11–16 …, 21–26 …" 🟡 expression d6*10+d6 with ranges; card shows odd chances and gaps
1.6 d100 as two d10 with "00 = 100" "Roll percentile dice" ✅ 1d100
1.7 Keep highest / lowest "Roll 2d6 and keep the best", advantage ❌
1.8 Exploding dice "On a 6, roll again and add" ❌
1.9 Dice pool, count successes "Roll 5d6, each 5+ is a hit" ❌
1.10 Read each die on its own "Red die = where, white die = what" 🟡 two cards or column_rolls: each
1.11 Doubles or matches mean something "On doubles, add a twist" ❌ no way to see the separate faces
1.12 Step dice from a value "Roll your Danger die (d4–d12)" ✅ dice can be an expression
1.13 Odd / even or high / low split "Odd: male, even: female" ✅ nat % 2 in an "only if"
1.14 Fudge / Fate dice, symbol dice "4dF", "count the skulls" ❌

2. Cards and draws

# Mechanic Example wording Status Books
2.1 Draw without repeats until reshuffled "Draw from the deck" ✅ Deck mode
2.2 Playing cards: suit means one thing, rank another "Hearts = love; Ace–10 …" 🟡 two columns or two cards; not one real 52-card draw
2.3 Jokers reshuffle or trigger something "On a Joker, shuffle and add a twist" 🟡 Joker entry with an effect; no "reshuffle" action
2.4 Tarot upright / reversed "Reversed: the opposite meaning" 🟡 second column or a coin-flip thread
2.5 Draw several, then pick one "Draw 3, choose 1" ✅ "roll N different results, then pick"
2.6 Draw several and lay them out in positions "Past / Present / Future" 🟡 one card per position
2.7 Shared deck across tables "Use the same deck for both" ❓
2.8 Remove a card for the session "Once drawn, cross it out" ✅ Deck mode keeps state

3. Flow between tables

# Mechanic Example wording Status Books
3.1 A result sends you to another table "Roll on the Treasure table" ✅ thread
3.2 Walk every table in order, whatever the result "Then roll on table 2" ✅ card thread
3.3 Go there only if nothing more specific applied "Otherwise, go to step 4" ✅ card thread with Otherwise
3.4 Roll N times, N rolled "Roll 1d4 times on …" ✅ thread count as expression
3.5 Roll twice and combine "Roll twice, ignore this result" ✅ repeat on columns; thread back to card otherwise
3.6 Reroll certain results "Reroll 96–00" ✅ thread rerolls
3.7 Roll on this table with other dice "Roll 1d6+4 on the same table" ✅ thread dice
3.8 Inline sub-roll in a result "1d6 goblins and [a trinket]" ✅ {= 1d6}, [[Table]]
3.9 Table from another book / spread "See Core Rules p. 40" ✅ [[Spread::Card]]
3.10 Branch on a value "If Wealth 3+, roll on Noble" ✅ router, "only if" threads
3.11 Repeat until something happens "Keep rolling until you get a Door" ✅ loop until
3.12 Player choice instead of a roll "Choose one, or roll" ✅ choice card, Random option
3.13 Return to an earlier table "Go back to step 2" ✅ cycles allowed (action limit)

4. State and memory

# Mechanic Example wording Status Books
4.1 Save a result for later text "the NPC's name" ✅ save as, {name}
4.2 Counters that later tables read "+1 Threat; at 5, …" ✅ variables, effects
4.3 Ordered steps "Thin → Standard → Dense" ✅ scales
4.4 Collected lists "Add each find to the hoard" ✅ list cards
4.5 No repeats across a whole session "Each rumour only once" ✅ Deck mode / "No repeats" threads
4.6 Clock or progress track "Fill 1 of 6 segments" 🟡 number variable + router at full
4.7 A later result changes an earlier one "Shattered lowers the atmosphere" 🟡 no clean form (DESIGN "small ideas")
4.8 A cost to roll "Spend 1 Supply to search" ✅ card costs, Pay / Don't pay
4.9 Values that last between sessions "Chaos factor stays" ✅ board variables are kept

5. Lookup shapes

# Mechanic Example wording Status Books
5.1 Several result columns per row "Size / Gravity / Moons" ✅ columns
5.2 2D grid: row from one value, column from another "Cross-reference Odds with Chaos" ❌ needs a router per row or a card per column
5.3 Table picked by a value "Use the table for your terrain" 🟡 router to one card per terrain
5.4 Shift the result up or down rows "Move 2 rows down if at night" ✅ plain-table modifier moves rows
5.5 Words that join into one phrase "Adjective + Noun", name syllables ✅ "Read as one phrase"
5.6 Weighted rows with no dice shown "Common / Uncommon / Rare" ✅ weighted card

6. Oracles and procedures

# Mechanic Example wording Status Books
6.1 Yes / No with a likelihood "Likely: 1–13 Yes" ✅ check or router on likelihood
6.2 "Yes, and" / "No, but" grades "Exceptional yes on 1–3" ✅ ranged card
6.3 Random event on doubles or a threshold "If both dice ≤ Chaos, event" ❌ needs 1.11 (separate faces)
6.4 Map or hex walk (position moves on a grid) "Hex flower: 2d6 moves you" ❌ no grid position
6.5 Roll under a stat "Roll d20 under DEX" ✅ check le
6.6 Opposed rolls "Both roll, high wins" 🟡 two variables + router
6.7 Timed or per-period rolls "Roll each watch / each day" 🟡 loop times; no calendar
6.8 Pick a table by the time already spent "After 3 turns, use table B" ✅ variable + router

7. Text and output

# Mechanic Example wording Status Books
7.1 Result text with blanks filled in "A {colour} {beast}" ✅ [[refs]], {@x}
7.2 A summary sheet at the end Character sheet, NPC block ✅ sheet card
7.3 Grammar: a / an, plurals "a eel" → "an eel" ❌
7.4 Results with page references or notes "(see p. 112)" ✅ plain text
7.5 Pictures in results Map tile, monster portrait ❓ (board images exist; in results?)

Gaps so far (❌), roughly by how often books use them

  1. Keep highest / lowest (1.7) and doubles (1.11, 6.3).
  2. Exploding dice (1.8) and dice pools (1.9).
  3. 2D grid lookups (5.2).
  4. Real d66 notation (1.5) and playing-card / tarot decks as one draw (2.2–2.4).
  5. Map or hex walks (6.4).
  6. a / an grammar (7.3).