docs: add new journal command documentation

Replace the attribute system documentation with new documentation for
the variable system, roll command, link command, and spark command.
This commit is contained in:
2026-07-12 19:09:02 +08:00
parent 894f1735e5
commit dbe2f9d9d8
6 changed files with 328 additions and 319 deletions
+47
View File
@@ -0,0 +1,47 @@
---
tag: journal-roll
icon: 🎲
title: 掷骰命令
description: 在 Journal 中发送掷骰结果,支持标准骰子表达式。
syntax: '/roll 骰子表达式'
props:
- name: 骰子表达式
type: string
desc: 标准骰子表达式,如 3d6、2d8kh1、d20+5
---
## 概述
`/roll` 命令用于在 Journal 流中掷骰并发布结果。结果会同步到所有连接的客户端。
## 语法
```
/roll 骰子表达式
```
## 示例
```
/roll d20
/roll 3d6
/roll 2d8kh1
/roll 1d20+5
/roll 4d6k3
```
## 支持的骰子表达式
| 表达式 | 说明 |
|---|---|
| `d20` | 单个 20 面骰 |
| `3d6` | 3 个 6 面骰求和 |
| `2d8kh1` | 2 个 8 面骰保留最高 1 个 |
| `1d20+5` | 1 个 20 面骰加 5 |
| `4d6k3` | 4 个 6 面骰保留最高 3 个 |
## 权限
- **GM**:可使用
- **玩家**:不可使用
- **观察者**:不可使用