rbx-combat-status
Skill0 starsChanged 3 months agoMITView on GitHub
One server-authoritative StatusService that owns every stun, DoT, buff, and debuff — declared stacking rules, timestamp expiry, cleanse categories, and clients that only ever render. Use when the user says "status effects", "add poison/burn/bleed", "stun system", "buffs and debuffs", "cleanse/dispel", or when effects are broken: buffs never wear off, stats drift permanently after a debuff, stuns stack into infinite lockdown, or exploiters cleanse themselves. Do not use for the abilities that apply effects — load rbx-combat-abilities — or for validating the hits that trigger them — load rbx-combat-hitreg instead.
In this repository253 other files it gives its agents.
- rbx-abtestSkill
- rbx-accessibilitySkill
- rbx-analytics-eventsSkill
- rbx-analytics-funnelsSkill
- rbx-analytics-readingSkill
- rbx-animationSkill
- rbx-anim-cutscenesSkill
- rbx-anim-npcSkill
- rbx-anim-proceduralSkill
- rbx-anim-rigsSkill
- rbx-anim-tweenSkill
- rbx-architectureSkill
- rbx-assets-audioSkill
- rbx-assets-id-policySkill
- rbx-assets-sanitizeSkill
- rbx-assetsSkill
- rbx-assets-toolboxSkill
- rbx-assets-webSkill
- rbx-audio-feedback-mapSkill
- rbx-audio-mixingSkill
- rbx-audio-musicSkill
- rbx-audio-sfxSkill
- rbx-audioSkill
- rbx-audio-spatialSkill
- rbx-badges-groupsSkill
- rbx-build-compositionSkill
- rbx-build-detailingSkill
- rbx-build-greyboxSkill
- rbx-buildingSkill
- rbx-build-interiorsSkill
- rbx-build-kitbashSkill
- rbx-build-landscapeSkill
- rbx-build-propsSkill
- rbx-build-scaleSkill
- rbx-build-structuresSkill
- rbx-camera-controllersSkill
- rbx-camera-cutsceneSkill
- rbx-camera-shakeSkill
- rbx-chat-moderationSkill
- rbx-ciSkill
- rbx-combat-abilitiesSkill
- rbx-combat-hitregSkill
- rbx-combat-meleeSkill
- rbx-combat-rangedSkill
- rbx-combatSkill
- rbx-complianceSkill
- rbx-comprehendSkill
- rbx-controlsSkill
- rbx-data-crossserverSkill
- rbx-data-profilestoreSkill
- rbx-data-recoverySkill
- rbx-data-schemaSkill
- rbx-data-sessionlockSkill
- rbx-dataSkill
- rbx-design-difficultySkill
- rbx-design-loopSkill
- rbx-design-sheetSkill
- rbx-design-socialSkill
- rbx-economy-currenciesSkill
- rbx-economy-gachaSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Stacking is declared, not emergent: Every effect config states its rule: refresh (reapply resets duration, common for stuns), stack with …
- Distinctive: line 47
Default 1.0s; parry-stun 1.2s.
- Very specific: line 98
Read: module-library.md (StatusService and the DR tracker redeploy across games unchanged), the game's projects.md block (effect roster, …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
rbx-combat-status
Laws
- One service owns every effect. Apply, tick, stack, cleanse, expire — all through a
single server
StatusServicemodule. Per-effect scripts (a PoisonScript cloned into each victim) drift, leak, and cannot answer "what is on this player right now", which every other combat system needs to ask. - Expiry is a timestamp, never a waiting thread.
expiresAt = os.clock() + duration, checked by one sweep loop.task.delay(duration, remove)per application is the classic bug farm: refreshes race their own stale timers and remove the renewed effect early. - Stats are recomputed, never mutated. Effects contribute modifiers; final WalkSpeed /
damage multipliers are rebuilt from base + the live aggregate on every change. Writing
WalkSpeed -= 8on apply and+= 8on remove desyncs the moment two effects overlap or one expires during death — the "permanently slow player" bug. - Stacking is declared, not emergent. Every effect config states its rule:
refresh(reapply resets duration, common for stuns),stackwithmaxStacks(DoTs), orindependent(separate instances from separate sources). Aggregate buff output clamps — total damage bonus caps at +100% (math.clamp(total, 0, 1)) or stacking goes infinite. - The client renders, the server rules. Clients receive
StatusApplied/StatusRemovedand draw icons, tints, and VFX. No remote exists that lets a client add, remove, or cleanse an effect on anyone, including itself.
Recipes
Effect record — { id, source: Player?, appliedAt, expiresAt, stacks, meta } in
active[character][effectId]; the config table declares
{ category, stackRule, maxStacks, tickRate, dispellable } per id. Adding effect #12 is a
config entry plus (at most) an apply/tick/remove hook — never a new remote or script.
Stun — sets the state-machine flag rbx-combat-abilities' gate reads, plus
WalkSpeed = 0 and JumpHeight = 0 via Law-3 recompute (never PlatformStand — it flings).
Default 1.0s; parry-stun 1.2s. Diminishing returns per target: same CC category within 15s
lands at 100% → 50% → 25% → immune, window resets 15s after the last application. Without
DR, two stun kits alternate a player into a cutscene.
DoT — burn 5/tick at 1 Hz for 4s; poison 2/tick at 1 Hz for 8s, stacks to 5. One sweep applies all DoT damage on its 10 Hz pass by accumulating per-effect tick debt — no per-DoT loops. Damage routes through the same damage pipeline as weapons (source attribution makes kill credit and combat-tagging work).
Buffs/debuffs — additive percentages within a stat, aggregated then clamped: damage +25% (8s), defense −30% (5s), speed +15% (6s). Multiplicative-across-stats, additive-within-stat keeps the math auditable at 3am.
Cleanse — removes by category filter (Magic, Physical, Bleed), only effects with
dispellable = true; boss mechanics set dispellable = false explicitly. Cleanse is
itself an ability — it enters through rbx-combat-abilities' cast gate, never a bare remote.
Replication — exactly two server→client remotes: StatusApplied(target, id, duration,
stacks) and StatusRemoved(target, id). HUD icons with radial timers come from
rbx-ui-hud; sustained aura visuals from rbx-vfx-auras-portals; DoT damage numbers from
rbx-juice-numbers.
Performance budget
One Heartbeat-driven sweep at 10 Hz walks all active effects: expiry checks, DoT ticks, DR
window cleanup. Effects are plain tables — no Instances, no Attributes as the source of
truth (Attributes may mirror for replication convenience, never rule). Clear a character's
whole record on Died and the player's on PlayerRemoving, or a 40-player brawler leaks
every fight. The sweep allocates nothing steady-state.
Load with
rbx-combat-abilities (applies effects, and its cast gate reads the stun flag — the two
ship together, don't ask), rbx-vfx-auras-portals + rbx-juice-numbers + rbx-audio-sfx
(every effect is visible and audible or players call the game broken), rbx-ui-hud
(status icon row), rbx-combat-hitreg when application rides on hits.
AI-tells
- ☐
task.delayper application instead of timestamp sweep — refresh removes the new stack - ☐ Stats mutated in place (
WalkSpeed -= x) instead of recomputed from base - ☐ Uncapped buff stacking — totals exceed +100% and scale to infinity
- ☐ Stun with no diminishing returns — CC chains are unescapable
- ☐ A client-invokable remote that applies or cleanses effects
- ☐ Per-effect cloned scripts inside victim characters
- ☐ Effect state never cleared on Died/PlayerRemoving
- ☐ Stun as PlatformStand or Anchored (flings, or breaks knockback physics)
- ☐ Invisible effects — no icon, no tint, no sound on apply
Memory
Read: module-library.md (StatusService and the DR tracker redeploy across games
unchanged), the game's projects.md block (effect roster, existing damage pipeline, TTK
context). Write: the shipped effect config table (ids, durations, tick values, stack caps,
DR window) into the game's projects.md block; the service module into
module-library.md; stated rulings ("no hard CC", "DoTs can't kill, leave at 1 HP") into
preferences.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

