docs(dialog): 添加梦境选项提示语使用文档

This commit is contained in:
2026-07-19 00:00:54 +08:00
parent d5c4917a8a
commit ba5a9fc2f3
+19
View File
@@ -0,0 +1,19 @@
# Yarn 梦境选项提示语
在 Dream Options 前的描述性台词上添加 `#option_prompt`
```yarn
风缓缓和了下来,带着它左右摇晃。 #option_prompt
-> 放线
-> 收线
-> 保持
```
该行不会进入普通台词的打字、推进或语音流程。它会在下一组 Dream Options 显示时直接出现在选项上方,并在此时加入对话历史。
约束:
- `#option_prompt` 只用于 Dream Options。
- 提示语应紧邻其选项组;中间可以包含 Yarn 命令,但不能包含其他普通台词。
- 如果下一组内容不是 Dream Options,缓存的提示语会被丢弃。
- 提示语仍参与 Yarn Spinner 本地化,正文取当前语言的本地化结果。