Skip to content

Instantly share code, notes, and snippets.

@stories-with-dice
Created January 31, 2024 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stories-with-dice/f2d382b4bb40bb6a27880d6d73406033 to your computer and use it in GitHub Desktop.
Save stories-with-dice/f2d382b4bb40bb6a27880d6d73406033 to your computer and use it in GitHub Desktop.
OSR layout for Fantasy Statblocks
{
"blocks": [
{
"type": "heading",
"id": "a87bba9b99db",
"properties": [
"name"
],
"size": 1,
"fallback": "-"
},
{
"type": "image",
"id": "fb98d80a39ba",
"properties": [
"image"
],
"fallback": "-",
"conditioned": true
},
{
"type": "property",
"id": "196a2aea4aab",
"properties": [
"desc"
],
"fallback": "-",
"display": "Description",
"conditioned": true,
"dice": false
},
{
"type": "property",
"id": "8b296b685b28",
"properties": [
"hp"
],
"display": "Hit Points",
"dice": true,
"diceProperty": "hit_dice",
"diceCallback": "return [{ text: monster[\"hit_dice\"] }]",
"callback": "let str = [monster.hp];\nif (monster.hit_dice?.length) {\n str.push(`(${monster.hit_dice})`);\n}\nreturn str.join(\" \");",
"conditioned": true
},
{
"type": "property",
"id": "5898f89bc988",
"display": "Speed",
"properties": [
"speed"
],
"conditioned": true
},
{
"type": "property",
"id": "0b1adbd86bfb",
"properties": [
"ac"
],
"display": "Armor Class",
"conditioned": true
},
{
"type": "property",
"id": "5b8a3b395a48",
"properties": [
"attack"
],
"fallback": "-",
"display": "Attack",
"dice": true,
"diceProperty": "attack_dice"
},
{
"type": "property",
"id": "8ae82b180aaa",
"properties": [
"saves"
],
"fallback": "-",
"display": "Saves",
"conditioned": true,
"dice": true
},
{
"type": "text",
"id": "b8fa7a98faa9",
"properties": [
"text"
],
"text": null,
"fallback": "-",
"dice": true,
"hasRule": false,
"markdown": true
},
{
"type": "traits",
"id": "d9d9b9e86828",
"properties": [
"traits"
],
"fallback": "-",
"conditioned": true,
"dice": true
},
{
"type": "property",
"id": "5ae8da7939d9",
"properties": [
"move"
],
"fallback": "-",
"display": "Move",
"conditioned": true
},
{
"type": "property",
"id": "f88acb6b9aa8",
"properties": [
"morale"
],
"fallback": "-",
"display": "Morale",
"conditioned": true
},
{
"type": "property",
"id": "88b8cbab2b78",
"properties": [
"xp"
],
"fallback": "-",
"display": "XP",
"conditioned": true
}
],
"name": "OSR Layout",
"id": "6a18686bc959"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment