Files
ttrpg-tools/src/doc-entries/journal-spark.md
T
hypercross 40b6fbe157 feat(ui): replace unicode icons with solid-icons
Swap emoji and unicode glyphs for Tabler components so icons inherit
currentColor and font-size and render consistently across platforms.

- add src/components/doc-icons.ts to resolve doc-entry frontmatter icon
  keys to components; frontmatter now stores semantic keys
- replace the align-*.png assets with TbOutlineAlign* icons
- render RevealManager action SVGs as components instead of injected
  innerHTML strings
- carry completion icons via an optional CompletionItem.icon field
2026-09-13 14:01:03 +08:00

880 B

tag, icon, title
tag icon title
journal-spark spark 火花表

在 Journal 中通过 /roll 命令随机抽取火花表内容,用于生成随机遭遇、NPC、物品等。

语法: /roll 火花表键名

概述

火花表通过 /roll 命令触发:当参数匹配已定义的火花表 slug 时,自动抽取并发布结果,而非作为骰子表达式处理。

示例

/roll npc
/roll encounter
/roll loot

火花表定义

火花表在 markdown 文档中通过 :spark[CSV路径] 标记声明,CSV 文件的第一列表头为骰子公式(如 d6、d20),后续列为数据列。系统扫描文档时自动发现这些标记。

:spark[npc]
:spark[encounter]
:spark[loot]

抽取时根据骰子公式投掷,查找对应行并发布结果。

权限

  • GM:可使用
  • 玩家:不可使用
  • 观察者:不可使用