Search

PythonReactSEOPDF
OpenClaw

rpg-text

文字角色扮演游戏 (Text RPG) - 基于 sbordeyne/rpg-text 项目的面向对象设计,融合原始D&D规则。AI作为DM引导回合制冒险。

beancookie0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install beancookie/rpg-text

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

Text RPG - 文字角色扮演游戏 v2.0

重构自: https://github.com/sbordeyne/rpg-text

概述

这是一个基于面向对象设计的文字RPG引擎,融合了原始D&D规则。AI作为DM(地下城主),通过自然对话引导玩家进行回合制冒险。


核心架构

数据驱动系统

所有游戏数据通过 JSON 文件定义,便于扩展:

data/
├── characters.json   # NPC数据
├── items.json        # 物品目录
├── jobs.json         # 职业定义
├── monsters.json     # 怪物图鉴
├── spells.json       # 法术列表
├── maps/             # 地图数据
├── loot_tables.json  # 战利品表
└── treasures.json    # 宝藏表
核心类结构
Entity (基类)
├── Player           # 玩家角色
├── Monster          # 怪物
└── NPC              # 非玩家角色

Game Systems:
├── CharacterSystem  # 角色系统
├── CombatSystem     # 战斗系统
├── InventorySystem  # 背包系统
├── QuestSystem       # 任务系统
├── MapSystem         # 地图系统
└── SaveLoadSystem   # 存档系统

职业系统 (Jobs)

职业 HP骰 MP骰 主属性 特点
战士 (fighter) d8 d4 STR 高血量,擅长武器
法师 (wizard) d4 d10 INT 奥术魔法
盗贼 (thief) d4 d4 DEX 潜行、偷袭
牧师 (cleric) d6 d6 WIS 神圣魔法
平民 (commoner) d4 d4 STR 基础职业
职业豁免检定 (Saving Throws)
职业 毒素 魔杖 麻痹 吐息 法术
战士 12 13 14 15 16
法师 13 14 13 16 15
盗贼 13 14 13 16 15
牧师 11 12 14 16 15
平民 15 14 16 17 16

属性系统 (Ability Scores)

六维属性:力量(STR)、敏捷(DEX)、体质(CON)、智力(INT)、感知(WIS)、魅力(CHA)

属性修正值: (属性值 - 10) // 2

属性关联
属性 影响
力量 物理伤害、携带重量
敏捷 AC、远程攻击、闪避
体质 HP最大值
智力 法术豁免、法术位
感知 治疗、法术豁免
魅力 交易、社交

怪物数据 (Monsters)

蜘蛛类

| 怪物 |等级| AC | HP | 攻击 | 伤害 | XP | |------|----|----|-...

Source information

Source
github
Repository
openclaw/skills
Path
skills/beancookie/rpg-text
Version
—
Commit
5523ceb70e3d095cf2c1a5cd25f8fc141e40a0a5
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# Text RPG - 文字角色扮演游戏 v2.0

> 重构自: https://github.com/sbordeyne/rpg-text

## 概述

这是一个基于面向对象设计的文字RPG引擎,融合了原始D&D规则。AI作为DM(地下城主),通过自然对话引导玩家进行回合制冒险。

---

## 核心架构

### 数据驱动系统

所有游戏数据通过 JSON 文件定义,便于扩展:

```
data/
├── characters.json   # NPC数据
├── items.json        # 物品目录
├── jobs.json         # 职业定义
├── monsters.json     # 怪物图鉴
├── spells.json       # 法术列表
├── maps/             # 地图数据
├── loot_tables.json  # 战利品表
└── treasures.json    # 宝藏表
```

### 核心类结构

```
Entity (基类)
├── Player           # 玩家角色
├── Monster          # 怪物
└── NPC              # 非玩家角色

Game Systems:
├── CharacterSystem  # 角色系统
├── CombatSystem     # 战斗系统
├── InventorySystem  # 背包系统
├── QuestSystem       # 任务系统
├── MapSystem         # 地图系统
└── SaveLoadSystem   # 存档系统
```

---

## 职业系统 (Jobs)

| 职业 | HP骰 | MP骰 | 主属性 | 特点 |
|------|------|------|--------|------|
| 战士 (fighter) | d8 | d4 | STR | 高血量,擅长武器 |
| 法师 (wizard) | d4 | d10 | INT | 奥术魔法 |
| 盗贼 (thief) | d4 | d4 | DEX | 潜行、偷袭 |
| 牧师 (cleric) | d6 | d6 | WIS | 神圣魔法 |
| 平民 (commoner) | d4 | d4 | STR | 基础职业 |

### 职业豁免检定 (Saving Throws)

| 职业 | 毒素 | 魔杖 | 麻痹 | 吐息 | 法术 |
|------|------|------|------|------|------|
| 战士 | 12 | 13 | 14 | 15 | 16 |
| 法师 | 13 | 14 | 13 | 16 | 15 |
| 盗贼 | 13 | 14 | 13 | 16 | 15 |
| 牧师 | 11 | 12 | 14 | 16 | 15 |
| 平民 | 15 | 14 | 16 | 17 | 16 |

---

## 属性系统 (Ability Scores)

六维属性:力量(STR)、敏捷(DEX)、体质(CON)、智力(INT)、感知(WIS)、魅力(CHA)

**属性修正值**: `(属性值 - 10) // 2`

### 属性关联

| 属性 | 影响 |
|------|------|
| 力量 | 物理伤害、携带重量 |
| 敏捷 | AC、远程攻击、闪避 |
| 体质 | HP最大值 |
| 智力 | 法术豁免、法术位 |
| 感知 | 治疗、法术豁免 |
| 魅力 | 交易、社交 |

---

## 怪物数据 (Monsters)

### 蜘蛛类

| 怪物 |等级| AC | HP | 攻击 | 伤害 | XP |
|------|----|----|-...

Related skills

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.

OpenClaw

0x0-messenger

eijiac24

Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.