Skip to main content

Non-Railroaded Free-Trial Tutorial Lab

Extracted from Zhaoshi Wulin tutorial.gd: play a live card sparring arena to contrast suffocating grey-screen forced clicks against a 3-layer free-trial architecture — fixed 4-card opener with real 8-card shuffling (provision(): pass), Schema 2 causal attribution (enemy_hit.blocked > other_shield catches over-shielded fake clicks), and a 1 HP sparring safety floor paired with live single-step target(t) deficit highlighting.

SPARRING FLOOR ON · MIN 1 HPTurn 1 · Deck 4/8
Enemy Intent: 12 DMG
Player HP10 / 30
Qi 2Stance 0Reg 0Bell 0
Sparring Master24 / 24
Both sides clamped >= 1 HP
target(t) => NEED_GUARD_STANCE (breath_guard)
Missing Guard Stance (0/1) -> play "Qi Guard" first (0 Qi, +1 Stance, +5 Shield)
Hand (4 cards · allowed() ALL OPEN)Discard 0
Live tutorial.gd X-RaySchema 2 · Effects > Clicks
allowed(): ALL_ACTIONS_OPEN  |  provision(): pass # real 8-card deck
bell_credit = enemy_hit.blocked (0) > other_shield (0) => FALSE
s.training_sparring = true   // min_hp = 1
target(t) => NEED_GUARD_STANCE (breath_guard)

Free-trial arena live! Try misplaying to test the 1 HP lock, or over-stack regular shield before Golden Bell to watch causal attribution catch fake clicks!

Causal Attribution (bell_credit)PENDING
enemy_hit.blocked (0) > other_shield (0)
Incoming
12
other_shield
0
Bell Saved
+0

Rule: Stacking 13 regular shield before clicking Golden Bell leaves 0 damage for Golden Bell -> never grants fake mastery!

Mastered 0Fakes 01HP 0
Roguelike Core Kit ->
01

Full input freedom + real deck (allowed() open, provision(): pass): 4-card opener, real 8-card deck after

02

Schema 2 causal check (bell_credit): advances ONLY when enemy_hit.blocked > other_shield, never raw button clicks

03

1 HP sparring safety floor (training_sparring = true): misplays clamp at 1 HP with zero Game Over restarts

04

Dynamic single-step target(t) deficit scanner: highlights only the single next needed action

Installable Agent Skill · Free

Drop straight into Claude Code, Cursor, or Codex

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

Companion pack "Roguelike Opening & Narrative 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

Non-Railroaded Free-Trial Tutorial Contract (tutorial.gd)

90% of game tutorials dim the entire screen, disable every button except one, and force players through a script like a tape recorder. Veterans hate being caged, and newcomers finish clicking blindly without understanding why the mechanic works.

Good tutorials never strap players to rails — they put a safety net underneath and let players break through on their own.

1. The 3 Mandatory Layers

  1. Layer 01 — Full Input Freedom + Real Deck (allowed() Open + provision(): pass):
    • Delete every grey-screen modal blocker and forced-click spotlight lock.
    • Fix only the Turn-1 opening 4-card hand so the first impression is stable; leave provision() empty (pass) so Turn 2+ draws from the real 8-card shuffled deck.
    • Keep allowed() open for all legal plays and early End Turn: veterans clear in 2 turns, newcomers can misplay freely without ever soft-locking.
  2. Layer 02 — Causal Effect Verification (bell_credit, Schema 2 Law):
    • Rule: Advances on demonstrated effects, never raw button clicks or turn counts.
    • Example (Golden Bell / 金钟罩): if ordinary shield (other_shield) already absorbed 100% of the enemy attack, clicking Golden Bell does not advance mastery.
    • Require explicit causal attribution: bell_credit = enemy_hit.blocked > other_shield && bell_shield > 0
    • When the player over-shields and fails attribution, explain the exact gap calmly instead of faking a green checkmark.
  3. Layer 03 — 1 HP Sparring Safety Floor + Dynamic Single-Step Hint (training_sparring + target(t)):
    • Set s.training_sparring = true during tutorial sparring: clamp surviving HP for both sides to >= 1 HP on lethal hits so misplays never trigger Game Over or forced full restarts.
    • Run a stateless deficit scanner target(t) on every state change (e.g., missing Guard Stance -> highlight Qi Guard; Stance ready -> highlight Golden Bell; Bell armed -> highlight End Turn) that illuminates only ONE next action, never a full-page manual modal.

2. Verification Checklist

  • Turn 1 deals the fixed 4-card opening hand; Turn 2+ shuffles and draws from the real 8-card deck without injecting fake cards.
  • Over-shielding (other_shield >= incomingDamage) before clicking the target defense card evaluates bell_credit === false (catches fake mastery).
  • Blocking incoming damage beyond ordinary shield (enemy_hit.blocked > other_shield) evaluates bell_credit === true.
  • Taking lethal damage while training_sparring === true clamps HP cleanly at 1 HP instead of triggering Game Over.
  • target(t) emits strictly one contextual hint at any state with zero blocking full-screen modals.

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.