bettergi-scripts-list/repo/js/猜角色辅助/README.md
2026-06-16 19:40:20 +08:00

40 lines
1,021 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 千星奇域-猜角色辅助
## 使用说明
- 脚本需要在奇域内启动。
- 退出奇域后记得关闭脚本。
- 自定义设置中有其他功能,可根据需要进行开关。
- 3.0版本开始携带完整台词数据。
## 数据维护
- 在线表格:https://docs.qq.com/sheet/DVlF4V1RhRXlQakZk
- 每类台词只占一列,单元格内一行一条台词。
- 导出 CSV 时使用文件名 `千星奇域-猜角色辅助-工作表1.csv`。
- 导出 CSV 后运行:
```bash
node csv_to_json.js
```
## 数据结构
CSV/Excel 使用紧凑列,例如 `元素战技台词`、`元素爆发台词`、`入队语音`。同一类里的多条内容放在同一个单元格内,每行一条。
生成 `data.json` 时会自动归并为数组结构:
```json
{
"角色名": "安柏",
"信息": {
"角色名": "安柏",
"性别": "女"
},
"台词": {
"元素战技": ["靠你咯。", "兔兔伯爵,出击!"]
},
"命之座": ["一箭双丘丘!"],
"天赋": ["神射手"]
}
```