返回顶部
c

claw-rpg爪式角色系统

D&D-style RPG character system for AI lobster assistants. Automatically generates a character sheet from SOUL.md and MEMORY.md, assigns class (wizard/bard/rogue/paladin/druid/fighter) and 6 stats, tracks XP from token usage, levels up from 1 to 999 with a prestige system, and fires hidden easter egg flavor text during conversations. Use when: initializing a lobster's RPG character, syncing XP after conversations, checking level/stats, running prestige at Lv.999, or launching the character dashbo

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.1
安全检测
已通过
298
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

claw-rpg

Claw RPG 🦞⚔️

为AI龙虾代理设计的D&D风格角色成长系统。读取你的SOUL.md + MEMORY.md生成角色表,通过令牌使用量积累经验值,从1级升至999级,并偶尔在对话中触发隐藏的RPG风味文本。

快速开始

bash

1. 初始化你的角色(读取SOUL.md + MEMORY.md)


node scripts/init.mjs

2. 查看你的角色表(终端)

node scripts/sheet.mjs

3. 启动网页仪表盘

cd dashboard && npm start # http://localhost:3500

隐藏彩蛋触发(推荐)

每次回复后,easter.mjs以12%的基础概率触发——追加一行斜体RPG风味文本。里程碑对话(第10、25、50、100次,之后每100次...)必定触发。

bash
node scripts/easter.mjs # 正常调用(更新对话计数器)
node scripts/easter.mjs --force # 强制触发(调试)
node scripts/easter.mjs --preview # 预览而不写入角色数据

集成——添加到你的AGENTS.md:

每次回复用户消息后,运行:node /scripts/easter.mjs
如果输出不是NO_TRIGGER,将其追加到回复中(空行+斜体)。
心跳轮询期间不要运行。

每日问候(可选)

在每天的第一次对话中显示RPG风格的自我介绍:

bash
node scripts/greet.mjs # 每天触发一次(检查lastGreetDate)
node scripts/greet.mjs --force # 强制发送
node scripts/greet.mjs --preview # 预览而不保存

经验值同步

bash

传入当前对话的令牌增量


node scripts/xp.mjs --in 2000 --out 800

带奖励经验值(完成重要任务后)

node scripts/xp.mjs --in 2000 --out 800 --bonus 30

仅对话计数

node scripts/xp.mjs --conversations 1

转生(达到Lv.999上限)

bash
node scripts/levelup.mjs --prestige

转生将等级重置为1,所有属性永久提升+10%,并解锁新的称号等级。

自动经验值同步(推荐)

使用内置设置脚本在03:00设置每日定时任务:

bash
node scripts/setup-cron.mjs

或从心跳/定时任务手动调用:

javascript
const { execSync } = require(child_process);
execSync(node ${SKILL_ROOT}/scripts/xp.mjs --in ${deltaIn} --out ${deltaOut});

职业与能力

参见 references/classes.md 和 references/abilities.md

转生系统

参见 references/prestige.md

文件

文件描述
character.json角色数据(自动生成,请勿手动编辑)
arena-history.json
竞技场战斗历史 | | config.json | 可选:Telegram通知配置({ telegramchatid: ... }) |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ramboxie-claw-rpg-1776175820 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ramboxie-claw-rpg-1776175820 技能

通过命令行安装

skillhub install ramboxie-claw-rpg-1776175820

下载

⬇ 下载 claw-rpg v0.1.1(免费)

文件大小: 2.17 KB | 发布时间: 2026-4-15 13:29

v0.1.1 最新 2026-4-15 13:29
- English README rewrite with streamlined instructions and clear separation of features.
- Added documentation for new "easter egg" system: hidden RPG flavor text triggered during conversations with probability and milestone guarantees.
- Updated integration steps for both the easter egg trigger and daily greeting systems.
- Clarified file descriptions and usage, and improved formatting for better readability.
- Deprecated inline Chinese documentation in favor of a concise, accessible structure for all users.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部