Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds data-driven Godot 4 character abilities with cost, cooldown, casting, stat modifiers, gameplay tags, and HUD binding.
55% 91%+36 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 12 of 22 without it.
3 of 3 safety checks passed
Not used yet
Reference for skills/ability-system/SKILL.md — the stat-modifier pipeline: StatModifier Resource, StatSet with computed final values, stacking vs. refresh by source, and the stat_changed signal.
← Back to SKILL.md
A stat-modifier pipeline separates base stats (designer-controlled constants) from runtime modifiers (applied and removed by abilities, buffs, and equipment). StatModifier is a lightweight Resource that describes one change. StatSet is a Resource that owns base values and the active modifier list, and computes the final value on demand.
StatModifier carries four fields:
| Field | Type | Purpose |
|---|---|---|
stat_name | String | Identifies the stat to modify (e.g. "speed", "max_health") |
operation | Operation enum | How to combine with existing value: ADD, MULTIPLY, OVERRIDE |
value | float | The operand for the operation |
source | StringName | Opaque key identifying the owner (ability name, buff ID, etc.). Same source = refresh, different sources = stack. |
# stat_modifier.gd
class_name StatModifier
extends Resource
enum Operation {
ADD, # final += value
MULTIPLY, # final *= (1.0 + value) — e.g. value = 0.2 means +20%
OVERRIDE, # replaces all other results; highest value wins (last-added wins on ties)
}
@export var stat_name: String = ""
@export var operation: Operation = Operation.ADD
Next to this one in the catalogue, plus more from the same author.