跳过主要内容
返回全部实验台
🔥 跨区连锁问号 · 第24期↓ 直达同款 SKILL.md

做肉鸽别写一次性问号!3 层跨区连锁事件实验台

把《招式武林》重写问号事件的三层底层代码搬进零登录在线实验台:亲手走一遍寒铁铸剑三幕支线(一区埋钩 → 二区落袋为安断链 vs 忍住留坯 → 三区翻倍兑现奇宝),打开状态机 X-Ray 对比「放回随机池 95% 烂尾」与「后续必先插队 100% 兑现」,并一键安装同款 SKILL.md。

一区·埋钩
二区·诱惑
三区·兑现
flag=0 · 未触发
铜钱 Gold
30 G
免费强化
+0
奇宝 / 收益分
0 pts
当前第 1 大区 · 「?」问号事件队列预览⚡ 后续卡已插队至 #1(100%必出)
#1 ⚡
cold_iron_1
#2
普通问号
#3
普通问号
#4
普通问号
底层运行状态 X-Ray可直抄进游戏状态存档
chain_flags: { cold_iron: 0 }   // 0=未起 1=埋钩 2=留坯 3=奇宝 9=断链
active_chain_continuations: ["cold_iron_1"]
seen_events: []
SCENE_ALIASES["cold_iron_1"]: "scene_smithy"

点击「踩下一区「?」问号」开始:先花 15 金捡零战力寒铁,体验跨过三个大区的伏笔兑现!

200 局实测:伏笔能不能活到三区?
⚡ 优先队列插队 ON(零烂尾)100% 三幕完结
🎲 放回 12 张随机池洗牌8.5% (91.5% 烂尾!)
SCENE_ALIASES · 10 幕 → 4 图仅需 4 张图 · 省 60%
cold_iron_1 → scene_smithycold_iron_2 → scene_smithycold_iron_3 → scene_smithy10→4
奇宝兑现 0落袋 0沉底 0
肉鸽核心系统 Pro 套件 →
01

三幕延迟状态机(chain_flags):一区埋钩 → 二区变现断链(flag=9) / 忍住留坯(flag=2) → 三区稀有奇宝

02

后续必先插队(active_chain_continuations + seen_events):下个大区 100% 优先弹后续,零烂尾

03

场景别名复用(SCENE_ALIASES):4 条跨区支线共 10 幕映射到 4 张主场景图,直接省掉 60% 美术成本

04

内置 200 局随机池沉底对比实验 + 可直抄进代码的 X-Ray 运行状态机视图

同款 AI 编程 Skill · 免费领取

1 句话发给 Cursor / Claude Code / Codex 直接套用

skill.md下载 SKILL.md
直接粘贴进 AI 对话框(自动拉取规范与验证清单)
阅读 https://gameskill.dev/labs/cross-act-events/skill.md 并按里面的规则直接接入到我的游戏中
进阶推荐 · 同款商业级 Pro 源码套件

配套现货「肉鸽开局赐福与跨幕叙事套件 Run & Narrative Kit」可直接跑通多引擎生产源码——加入 Pro 一次解锁全部 12 套 Godot 4 / Unity / Web 生产源码包 + 84 条商用 WAV 音效 + 8 套 2D VFX 着色器,年付 $99(折合 $8.25/月,立省 36%)或月付 $12.9(约 ¥89/月)。

完整 SKILL.md 工程规范与验收清单

Cross-Act Chained "?" Events Contract

90% of roguelike "?" nodes feel like disposable slot machines: players mash Skip by their second run because choices leave zero memory across acts. Great roguelike events turn a single click into cross-act foreshadowing and payoff.

1. The 3 Mandatory Architecture Layers

  1. Layer 01 — Three-Act Delayed State Machine (chain_flags):
    • Persist a lightweight serializable integer dictionary on the run state: run.chain_flags: Record<string, number> (0 = unstarted, 1 = Act 1 hook planted, 2 = Act 2 temptation resisted, 3 = Act 3 climax completed, 9 = permanently terminated/cashed out).
    • Act 1 (Hook, 0 -> 1): Ask for a small real sacrifice (e.g., -15 Gold) for an item with zero immediate combat power (e.g., Raw Cold Iron).
    • Act 2 (Temptation Fork, 1 -> 9 or 1 -> 2): Offer a juicy immediate cash-out (e.g., +22 Gold + Common Relic) that writes flag = 9 (terminating the chain) versus resisting for a modest temper bonus (+1 Upgrade, flag = 2).
    • Act 3 (Doubled Payoff, 2 -> 3): Reward restraint with a signature Rare Relic + free upgrade.
  2. Layer 02 — Guaranteed Priority Queue Injection (active_chain_continuations + seen_events):
    • Never shuffle active chain continuations back into the regular random "?" pool — in a 12-event pool across 3 "?" nodes per act, Act 2 reach collapses to ~25% and full Act 3 completion collapses below 10% (>90% abandoned stories!).
    • Before rolling from the regular shuffled pool, compute active_chain_continuations(currentAct, run.chain_flags) filtered by !run.seen_events.includes(id).
    • If non-empty, pop the continuation with 100% priority on the first "?" node of the new act, and record every served event ID in seen_events so no filler repeats within a run.
  3. Layer 03 — Scene Asset Aliasing (SCENE_ALIASES, 10 Acts -> 4 Scenes):
    • Map multi-act story IDs to shared backdrop asset keys via a static dictionary (SCENE_ALIASES), e.g.:
      • cold_iron_1 / cold_iron_2 / cold_iron_3 -> scene_smithy
      • meteor_iron_1 / meteor_iron_2 / meteor_iron_3 -> scene_foundry
      • demon_spring_1 / demon_spring_2 -> scene_demon_spring
      • old_board_1 / old_board_2 -> scene_old_board
    • Result: 4 cross-act chains (10 distinct narrative acts) reuse 4 master scene illustrations, cutting event art production cost by 60% while giving solo devs serialized worldbuilding.

2. Verification Checklist

  • Choosing the Act 2 temptation cash-out writes flag = 9 and guarantees Act 3 continuation never spawns.
  • Choosing Act 1 hook (flag = 1) + Act 2 resist (flag = 2) achieves 100% Act 2 and Act 3 delivery across 200 simulated runs when priorityQueue is enabled.
  • Regular filler events never repeat within the same run (seen_events deduplication).
  • Every chained event ID resolves through SCENE_ALIASES to a valid shared backdrop key with >= 50% asset reuse savings.

同赛道精选实验台推荐

真实项目提取 · 国风武侠卡牌《招式武林》

每个实验台的数值与代码,都来自正在冲 Steam 的《招式武林》

三名武侠角色、39 种独立机制敌人、70 件宝物、19 招功夫与数百项自动回归测试——我们一边做游戏,一边把踩过的坑提炼成可直接交互的实验台和免费 Skill。