Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

godot-rpg-stats

БесплатноЗапускает вложенные скриптыНе проверен

Expert blueprint for RPG stat systems (attributes, leveling, modifiers, damage formulas) using Resource-based stats, stackable modifiers, and derived stat…

thedivergentaiот thedivergentai★ 1 019 звёзд на GitHub

Об этом скилле

Available Scripts

MANDATORY by scenario — read before implementing:

base_stats_resource.gd

Core data container for base attributes (Str, Dex, Int) and derived scaling rules.

status_effect_data.gd

Serialized buff/debuff definition using StatusEffectData.Type { ADDITIVE, MULTIPLICATIVE, OVERRIDE }.

stats_component_reactive.gd

Orchestrator for JIT (Just-In-Time) stat calculation with active modifier stacking.

exp_progression_resource.gd

Data-driven level-up curve definition using growth factors and base XP.

dynamic_stat_label_sync.gd

Reactive UI hook for syncing Labels to stat changes without polling.

damage_formula_handler.gd

Centralized RefCounted utility for complex combat math and damage calculations.

stat_modifier_stacking.gd

Logic for handling unique vs. stackable buffs and refreshing durations.

resource_stat_inheritance.gd

Pattern for extending base stats with specialized attributes (Elemental Resists).

persistent_character_stats.gd

Managing the serialization of character progression to .tres files.

level_up_system.gd

Logic for awarding experience and triggering level-up benefits.

rpg_stat_resource.gd

Capped base stat Resource with setter clamps + stat_changed signal.

derived_stat_resource.gd

Derived stat that recalculates when base stat dependencies change.

equipment_tooltip_helper.gd

BBCode equipment comparison tooltips (_make_custom_tooltip).

NEVER Do in RPG Stats

  • NEVER use integers for percentages — Always use float (0.0–1.0 or 0.0–100.0) to avoid truncation.
  • NEVER modify current_health without emitting signals — UI desyncs without broadcasts.
  • NEVER rely solely on additive modifiers — Use multiplicative or hybrid scaling for long progressions.
  • NEVER add modifiers without a unique ID or Key — Required to remove specific effects.
  • NEVER use exponential XP formulas without a growth cap — Uncapped pow() overflows or soft-locks levels.
  • NEVER forget to clamp derived values — Negative vitality must not yield negative max HP (maxi(val, 1)).
  • NEVER perform heavy stat recalculations in _process() — Recalc only on modifier/base change (reactive).
  • NEVER hardcode stat names in logic — Use StringNames or enums.
  • NEVER store temporary runtime buffs in a permanent Save Resource — Strip short-duration modifiers before serialize.
  • NEVER calculate damage directly in the Character script — Centralize in damage_formula_handler.gd.
  • NEVER invent Dictionary-only modifier APIs in examples — Align with StatusEffectData.Type and the stacking scripts.

Decision Tree

Layer Responsibility Script
Resource template Designer-authored base attributes, curves, inheritance base_stats_resource.gd, exp_progression_resource.gd, resource_stat_inheritance.gd
Runtime StatsComponent Duplicate/instance template, apply/remove modifiers, emit signals, JIT derived stats MANDATORY stats_component_reactive.gd + stat_modifier_stacking.gd
StatusEffectData Typed buff rows (ADDITIVE / MULTIPLICATIVE / OVERRIDE) status_effect_data.gd
DamageFormula (RefCounted) Pure combat math shared by Player/NPC MANDATORY damage_formula_handler.gd
Persistence Save progression; strip runtime buffs first persistent_character_stats.gd
UI sync Labels listen to signals — no polling dynamic_stat_label_sync.gd

Do not paste beginner class_name Stats / Dictionary equipment tutorials — route to the scripts above.


API alignment (StatusEffectData)

# Author buffs
Полный SKILL.md на GitHub

Установить godot-rpg-stats в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/elite-stat-patterns.mdreferences/migration-notes.mdscripts/base_stats_resource.gdscripts/damage_formula_handler.gdscripts/derived_stat_resource.gdscripts/dynamic_stat_label_sync.gdscripts/equipment_tooltip_helper.gdscripts/exp_progression_resource.gdscripts/level_up_system.gdscripts/modifier_stack_stats.gdscripts/persistent_character_stats.gdscripts/resource_stat_inheritance.gdscripts/rpg_stat_resource.gdscripts/stat_modifier_stacking.gdscripts/stat_resource.gdscripts/stats_component_reactive.gdscripts/status_effect_data.gd

FAQ

Что делает скилл godot-rpg-stats?

Expert blueprint for RPG stat systems (attributes, leveling, modifiers, damage formulas) using Resource-based stats, stackable modifiers, and derived stat calculations. Use when implementing character progression OR equipment/buff systems. Keywords stats, attributes, leveling, modifiers, CharacterStats, derived stats, damage calculation, XP.

Как установить скилл godot-rpg-stats?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл godot-rpg-stats запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить godot-rpg-stats с