Skip to main content

Defense-Graded Enemy Rage & 3-Beat Counter Lab

Extracted from Zhaoshi Wulin Frenzied Beast: play a live 3-beat sparring arena proving why great designers turn enemy rage into a defensive skill grade — fixed 3-beat tempo (Pounce -> Press -> Unleash = 3 + rage), true HP-damage grading (if (hp_damage > 0) rage += 1 caps blocked ults at 5 vs 7 when pierced), and an immediate post-ultimate reset to 0/4 + self Vulnerable (+50% damage) counterattack window.

BEAT 1NOW
Rage Pounce
Atk 3 · Base +1 Rage
BEAT 2
Press & Charge
Atk 2 + Block 3 · +1 Rage
BEAT 3
Fury Unleash
Ult 3 · Reset + Vuln
Hero
PlayerHP 24/24
Cycle 1 · Turn 1
Frenzied Beast
Frenzied BeastHP 42/42
LIVE RAGE0/4
Next Ult = 3+0 = 3
Play cards below or run Guard vs Greedy auto-demo: blocking Beats 1-2 caps the ultimate at 5; taking HP hits spikes it to 7!
Frenzied Beast 3-Rule Contract X-RayDefense-Graded Rage
rule_1_tempo = beat(1) -> ult_damage = 3 + rage(0) = 3
rule_2_grade = rage += 1; if (hp_damage > 0) rage += 1
rule_3_punish= after_ult => rage = 0; beast.vulnerable = 0 (+50% dmg)
Dual-Track Proof · Same Boss, Same UltRage = Defense Grade
Track B · Guard Beats 1-2Ult = 5
Rage 2/4 · 1 HP lostPunish 12
Track A · Greedy Beats 1-2Ult = 7
Rage 4/4 · 12 HP lost12/24 HP left
Tamed(5): 0Max(7): 0Punish: 0
Roguelike Pro Kit ->
Try toggling Rule 02 OFF to feel why unconditional +2 rage/turn makes blocking feel pointless!
01

Rule 01 — Fixed 3-beat tempo (Pounce 3 -> Press 2+Block 3 -> Unleash = 3 + rage): zero opaque RNG

02

Rule 02 — True HP-damage trigger (if hp_damage > 0: rage += 1): full block/evade caps Ult at 5 vs 7 when hit

03

Rule 03 — Post-ult release window: rage resets to 0/4 and enemy self-inflicts Vulnerable +1 (+50% punish dmg)

04

Play Guard vs Greedy tracks live or toggle any rule OFF to feel why naive turn-timer rage fails

Installable Agent Skill · Free

Drop straight into Claude Code, Cursor, or Codex

Paste into your AI agent chat
Read https://gameskill.dev/labs/defense-graded-rage/skill.md and apply this skill to my game
Go Deeper · Companion GameSkill Pro Kit

Companion pack "Roguelike Combat & Boss Kit" ships runnable JS/TS + Godot 4 (.gd) + Unity (.cs) source code — unlock all 12 multi-engine Pro packs + 84 commercial WAV SFX + 8 2D VFX shaders from $8.25/mo ($99/yr, save 36%) or $12.9/mo.

Full SKILL.md Specification & Verification Checklist

Defense-Graded Enemy Rage & 3-Beat Counterattack Contract

When an enemy's big attack feels randomly weak on one run and lethal on the next, players blame RNG. When enemy rage climbs unconditionally every turn, players feel punished for playing defensively.

Turn enemy rage into a transparent defensive performance grade (as built for Frenzied Beast / 狂躁兽 in Zhaoshi Wulin / 《招式武林》) using 3 hard rules:

1. The 3 Mandatory Rules

  1. Rule 01 — Fixed 3-Beat Tempo & Deterministic Ultimate Formula:

    • Lock the enemy onto a readable 3-beat loop — never random ultimate rolls:
      • Beat 1 (蓄怒扑咬 / Rage Pounce): Attack 3, guaranteed +1 rage.
      • Beat 2 (压步蓄怒 / Press & Charge): Attack 2 + Enemy Block 3, guaranteed +1 rage.
      • Beat 3 (怒扑放泄 / Fury Unleash): Deterministic ultimate damage ult_damage = 3 + current_rage (max rage 4).
    • Only 2 beats of charge before release keeps tension snappy without dragging fights out.
  2. Rule 02 — True HP-Damage Grading (if (hp_damage > 0) rage += 1):

    • Base charge per buildup beat is +1.
    • Grant the bonus +1 rage ONLY when the attack pierces defense and deals real HP damage:
      const hpDamage = evaded ? 0 : Math.max(0, incomingAttack - playerShield);
      rage = Math.min(4, rage + 1 + (hpDamage > 0 ? 1 : 0));
      
    • Full Block / Evade (Guard Track): Beats 1–2 yield 1 + 1 = 2/4 rage → Beat 3 ultimate compressed to 3 + 2 = 5.
    • Eating HP Hits (Greedy Track): Beats 1–2 yield 2 + 2 = 4/4 rage → Beat 3 ultimate spikes to 3 + 4 = 7.
    • Good defense immediately pays out as a 2-tier ultimate reduction instead of feeling passive.
  3. Rule 03 — Post-Ultimate Reset & Self-Vulnerable Counterattack Window:

    • Immediately after Beat 3 resolves:
      • Reset rage = 0 (0/4).
      • Inflict self Vulnerable +1 (破绽 +1, +50% damage taken on the player's next turn, e.g. floor(8 * 1.5) = 12).
    • Surviving the big hit automatically hands the player an explosive punish turn, creating a tight Defend → Survive → Punish rhythm.

2. Verification Checklist

  • Enemy follows the exact 3-beat loop (Beat 1 -> Beat 2 -> Beat 3 -> Beat 1) with Beat 3 damage strictly equal to 3 + rage.
  • Blocking or evading Beat 1 & Beat 2 cleanly (hp_damage === 0) leaves rage at 2/4 and caps Beat 3 ultimate at 5.
  • Taking >= 1 HP damage on Beat 1 & Beat 2 (hp_damage > 0) triggers +2 rage per beat, reaching 4/4 and dealing 7 on Beat 3.
  • Beat 3 immediately clears rage to 0 and applies vulnerable = 1 (+50% damage taken on the player's follow-up turn).
  • Never apply bonus rage on blocked shield damage; always check post-shield true HP loss (hp_damage > 0).

More interactive labs in this track

Extracted from a real game · Zhaoshi Wulin

Every formula in these labs ships inside our upcoming Steam wuxia deckbuilder

3 martial-arts characters, 39 enemies, 70 relics, 19 kungfu finishers built in Godot with AI agents. Every time we solve a hard design or feel problem, we turn it into an interactive lab and skill here.