Cotton code
184 lines · 3.6 KB · JSONRaw
{  "format_version": 1,  "id": "story_character",  "name": "Character",  "plural": "Characters",  "builtin": false,  "visibility": "owner",  "engine": null,  "columns": [    {      "key": "story",      "name": "Story",      "type": "link",      "link_to": "story_story",      "required": true    },    {      "key": "name",      "name": "Name",      "type": "text",      "required": true,      "placeholder": "Their name, as it appears in the script"    },    {      "key": "role",      "name": "Who they are",      "type": "text",      "placeholder": "One line: who they are"    },    {      "key": "about",      "name": "About",      "type": "longtext"    },    {      "key": "want",      "name": "What they want",      "type": "text"    },    {      "key": "picture",      "name": "Picture",      "type": "photo"    },    {      "key": "scenes",      "name": "Scenes",      "type": "number",      "readonly": true,      "units": {        "one": "in 1 scene",        "other": "in {n} scenes"      }    },    {      "key": "lines",      "name": "Lines",      "type": "number",      "readonly": true,      "units": {        "one": "1 line",        "other": "{n} lines"      }    },    {      "key": "tint",      "name": "Tint",      "type": "text"    }  ],  "seal": {    "clear": [      "story",      "picture",      "scenes",      "lines",      "tint"    ],    "blind": [      "name",      "role",      "about",      "want"    ]  },  "title": "name",  "date": null,  "project": null,  "order": null,  "slip": {    "title": "name",    "subtitle": "role",    "trailing": "lines",    "photo": "picture",    "toggle": null  },  "tile": {    "face": "slip-list"  },  "card": {    "face": "character.card",    "fields": [      {        "slot": "title",        "column": "name"      },      {        "slot": "subtitle",        "column": "role"      },      {        "slot": "quote",        "column": "want"      },      {        "slot": "photo",        "column": "picture"      },      {        "slot": "note",        "column": "lines"      }    ]  },  "page": [    {      "heading": null,      "columns": [        "picture",        "name",        "role",        "want"      ]    },    {      "heading": "About",      "columns": [        "about"      ]    }  ],  "sort": {    "column": "lines",    "descending": true  },  "create": {    "label": "New character"  },  "empty": {    "title": "No characters yet",    "message": "Characters gather here by themselves as they speak in your scenes."  },  "deletion": {    "bin": true  },  "links": [    {      "label": "Deleted",      "table": "bin",      "where": {        "table": "story_character"      }    }  ],  "commands": [    {      "id": "delete",      "label": "Remove",      "kind": "delete",      "verb": "delete_record",      "data": {        "table": "story_character"      },      "confirm": "It can come back from Deleted, and Undo brings it back now. What they say in your scenes stays.",      "bindings": {        "id": "$id"      },      "receipt": "Removed",      "does": "destroys",      "object": "bin"    }  ],  "instructions": "A character is someone in a story: their name as it appears in the script, who they are in one line, what they want, a longer about and an optional picture. The core makes a character on its own when a scene gives a name speech and the story has no character by that name. Renaming a character renames them through the story's scenes. scenes and lines (how many scenes they speak in and how many speeches they have) are worked out, never written."}