Custom Table Schema
This page describes Mythic GME 1.7.0 and later.
Overview
This reference documents the Unified Table v3 JSON format used by Meaning Tables and Event Focus tables on import and export. If you want step-by-step instructions for creating or importing tables inside the app, see Getting Started with Custom Tables and Importing & Exporting Custom Tables.
Meaning Table (v3)
Required keys are id, categoryId, displayName, and entries. These keys have no defaults. If you omit optional header keys, schemaVersion defaults to 3, tableType defaults to "meaning-table", rangeStart defaults to 1, and rangeEnd defaults to 100.
Core fields
id(string, required). Built-in tables use snake_case, though the app does not enforce a naming style.categoryId(string, required). Built-in categories use kebab-case. On import, an unrecognized category ID falls back to"custom".displayName(string, required). Table title shown in the app.entries(array, required). List of table entry objects.schemaVersion(int, default3). Format version.tableType(string, default"meaning-table"). Table kind.rangeStart(int, default1) andrangeEnd(int, default100). Inclusive roll bounds.
Optional table fields
description(string),descriptionTranslations(object), anddisplayNameTranslations(object).defaultLanguage(string, for example"en").isBuiltInandisUserCreated(booleans). On import, the app forcesisBuiltIntofalseandisUserCreatedtotrueregardless of the file's values.source(string) andtags(array of strings).tableRollOn(array of Meaning Table IDs). Any non-Meaning-Table ID or Adventure List name is skipped.data(object). Container for extension metadata.baseDice(string, for example"1d10"). Dice expression rolled on this table. When omitted, the app rolls a single die sized to the range.defaultDoubleRoll(boolean, defaulttrue). Set tofalseto roll the table once by default. A table whosetagsinclude"crafter"also rolls once. The1x/2xselector on the table's row overrides both.isPremium(boolean). Ignored on import. The app decides which tables require the Expanded Features unlock.replacementanddisplayRoll(booleans). Preserved from Foundry VTT imports and written back on export without changing roll behavior.dice(legacy). Ignored in Mythic GME 1.7.0 and later. UsebaseDiceinstead.
Entry fields
range(array of two ints[start, end], required). Inclusive roll range for the entry.result(string, required). Text returned when the entry is rolled.- Optional fields include
description, translations,tags,entryRollOn,disabled, anddata. weight(int, optional). If any entry in a Meaning Table has aweightabove1, the app picks results by weight instead of by range and skips the table'stableRollOnlinks. Leaveweightout or set it to1on every entry to roll by range. Event Focus tables ignoreweight.
Validation rules
- Active entries must cover
rangeStartthroughrangeEndexactly once with no gaps or overlaps. - Entries with
disabledset totrueorrangeset to[0, 0]are ignored during coverage checks.
Minimal Meaning Table JSON
Use a categoryId that exists in your app, such as "custom".
{
"id": "action_basics",
"schemaVersion": 3,
"tableType": "meaning-table",
"rangeStart": 1,
"rangeEnd": 10,
"categoryId": "custom",
"displayName": "Action Basics",
"entries": [
{ "range": [1, 5], "result": "Common" },
{ "range": [6, 10], "result": "Uncommon" }
]
}
Event Focus Table (v3)
Required keys
id,categoryId, anddisplayName(non-empty strings). On import, the app setscategoryIdto"event-focus".entries(array). Each entry requiresrangeandresult.
Optional keys and defaults
schemaVersion(int, default3),rangeStart(int, default1), andrangeEnd(int, default100).tableType(string). A single-file import uses the Event Focus Tables card you selected and setstableTypeafterward. Inside atableswrapper file, settableTypeto"event-focus"so the table identifies itself. If omitted, the selected card decides. An unknowntableTypevalue fails import.
Optional table fields
displayNameTranslations,description,descriptionTranslations,defaultLanguage,isBuiltIn,isUserCreated,source,tags,tableRollOn,data, andbaseDice.data.iconKey(string). Sets the icon on the table's card, for example"bullseye". An unrecognized key displays a question mark.
Entry fields
range([start, end], required) andresult(string, required).- Optional fields include
description, translations,tags,entryRollOn,disabled,data, andweight(ignored on Event Focus tables). actionandadditionalRolls. Stored and re-exported without affecting rolls.
Minimal Event Focus JSON
This is a shortened example, not the built-in Event Focus table.
{
"id": "event_focus_core",
"schemaVersion": 3,
"tableType": "event-focus",
"rangeStart": 1,
"rangeEnd": 20,
"categoryId": "event-focus",
"displayName": "Event Focus",
"entries": [
{ "range": [1, 10], "result": "Remote Event" },
{ "range": [11, 20], "result": "NPC Action" }
]
}
Downloads
The Downloads section at the bottom of this page contains meaning_table.schema.json and event_focus_table.schema.json. Starter templates and samples live on Getting Started with Custom Tables.
Related
- Getting Started with Custom Tables and Organizing Custom Tables for creating and grouping tables.
- Linking & Nesting Tables for
entryRollOnandtableRollOnbehavior. - Importing & Exporting Custom Tables for CSV, TXT, PSV, JSON, and Foundry VTT import rules.