godot-rpg-stats
БесплатноЗапускает вложенные скриптыНе проверенExpert blueprint for RPG stat systems (attributes, leveling, modifiers, damage formulas) using Resource-based stats, stackable modifiers, and derived stat…
от thedivergentai★ 1 019 звёзд на GitHubОб этом скилле
Available Scripts
MANDATORY by scenario — read before implementing:
- Templates / base attributes → base_stats_resource.gd
- Runtime stack + reactive recalc → stats_component_reactive.gd + stat_modifier_stacking.gd
- Buff/debuff data → status_effect_data.gd (
Type.ADDITIVE/MULTIPLICATIVE/OVERRIDE)- Combat math → damage_formula_handler.gd
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.Typeand 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
Установить godot-rpg-stats в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic