ai-behavior-trees-util…
Build a production behavior-tree runtime (Blackboard, action/condition leaves, sequence/selector/parallel composites, decorators) and a Utility AI system…
Build an RPG: stats and leveling, inventory and equipment, quests, branching dialogue, save/load, and combat. Use for an RPG/JRPG, or designing stat, inventory, quest, or combat systems.
$ npx -y skills add gamedev-skills/awesome-gamedev-agent-skills --skill rpg --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/rpgContext preview
The summary Claude sees to decide when to auto-load this skill.
Build an RPG: stats and leveling, inventory and equipment, quests, branching dialogue, save/load, and combat. Use for an RPG/JRPG, or designing stat, inventory, quest, or combat systems.
name: rpg description: > Build an RPG: stats and leveling, inventory and equipment, quests, branching dialogue, save/load, and combat. Use for an RPG/JRPG, or designing stat, inventory, quest, or combat systems.
A playbook for role-playing games — stats and progression, inventory/equipment, quests, dialogue, and combat. This is a **compositional** skill: it ties data-driven content, dialogue, and saving together. It does not re-teach those primitives; it defines the systems that make growth and choice feel meaningful, and points to the skills that implement each.
**inventory**, **quests**, **dialogue**, and persistent progress.
quest state machine.
**When *not* to use:** permadeath dungeon runs with no persistent character → `roguelike`. Pure conversation/branching story → `visual-novel`. Open-world needs/crafting/base-building → `survival-crafting`. For the dialogue engine itself, use `dialogue-systems`.
**Explore → encounter (fight / talk / solve) → earn rewards (XP, loot, story) → grow (level up, gear up, unlock) → take on harder content.** The fantasy is *getting stronger and shaping who your character is*; every system should feed that growth-and-choice loop.
1. **Stats + leveling** — base attributes, derived combat stats, XP curve, level-up gains. 2. **Inventory + equipment** — data-defined items, stacking, slots, stat modifiers. 3. **Combat** — turn-based or action; damage formula, status effects, win/loss. 4. **Quests** — objectives, state machine (available→active→complete→turned-in), rewards. 5. **Dialogue** — branching lines, conditions on game state, choices that matter. 6. **Save/load** — persist character, inventory, quest progress, world flags, with versioning. 7. **Economy + progression gating** — gold/shops; gate power behind level/quest/region. 8. **UI** — HUD, inventory, quest log, dialogue box, character sheet.
| Knob | Effect | Notes | |------|--------|-------| | XP curve shape | pacing of power | Fast early, slow late (see refs). | | Stat→derived scaling | build diversity | One attribute shouldn't dominate. | | Damage formula | tactical feel | Subtractive vs. ratio mitigation (refs). | | Random variance / crit | swinginess | ±10% and ~1.5× crit are safe defaults. | | Drop rates / economy | reward cadence | Avoid trivializing shops with loot. | | Power gating | difficulty gating | Level/region/quest locks. | | Reversible modifiers | buff/gear correctness | Layer mods; never edit base stats. | | Choice consequence | role-play weight | Quest/dialogue flags should branch outcomes. |
# Pseudocode. Base attributes are the only "truth"; combat stats are derived each time.
def derive(base, mods):
s = apply_modifiers(base, mods) # base + flat adds + percent, then clamp
return {
"max_hp": 20 + s["VIT"] * 8,
"attack": s["STR"] * 2,
"defense": s["VIT"] + s["AGI"] * 0.5,
}
# Equipping pushes a modifier; unequipping pops it. HP/attack recompute automatically.# Pseudocode. Quadratic curve: fast early levels, long late ones.
def xp_to_next(level, base=100): return base * level * level
def gain_xp(actor, amount):
actor.xp += amount
while actor.xp >= xp_to_next(actor.level):
actor.xp -= xp_to_next(actor.level)
actor.level += 1
actor.base["STR"] += 2; actor.base["VIT"] += 2 # grant gains / skill points
on_level_up(actor) # heal, unlock, notify# Pseudocode. Game events advance matching objectives; completion grants rewards.
def on_event(kind, data):
for q in active_quests:
for obj in q.objectives:
if obj.event == kind and matches(obj, data) and not obj.done:
obj.count += 1
if obj.count >= obj.needed: obj.done = True
if all(o.done for o in q.objectives):
q.state = "complete" # turn-in grants xp/gold/itemsmodifier layer; push/pop it (Pattern 1).
formula at huge values. Pick a curve and a formula family deliberately (refs).
**data** (`godot-resources` / `unity-scriptableobjects`).
migration path from day one (see `save-systems`).
Set flags that actually change later quests/world state.
just completion.
<img src="docs/assets/banner.png" width="820" alt="awesome-gamedev-agent-skills — game-dev skills for AI coding agents.
Repo: gamedev-skills/awesome-gamedev-agent-skills
Build a production behavior-tree runtime (Blackboard, action/condition leaves, sequence/selector/parallel composites, decorators) and a Utility AI system…
Implement game audio practice — bus/mixer architecture and gain in decibels, ducking (sidechain), adaptive/dynamic music via layering and re-sequencing, SFX…
Build game cameras that feel good — 2D follow with a deadzone, look-ahead, smoothing, and level-bounds clamping; 3D third-person orbit with collision and…
Plan, generate, source, normalize, and validate cohesive visual game assets. Use for art direction, style bibles, sprites, tilesets, backgrounds, UI art,…
Build branching dialogue and narrative — a node/choice graph with conditions, variables, and localization hooks — and choose between authoring tools Ink and…
Design NPC and enemy decision-making with finite state machines, behavior trees, steering behaviors, and A* pathfinding — engine-neutral algorithms that pair…