Files
nightclub-arcadia/NightclubArcadia/Assets/Dialogue/Scenes/Debug.yarn
T

60 lines
2.6 KiB
Plaintext

// Scratch nodes for verifying mechanics in isolation. Not part of the story.
// Point DialogueRunner.startNode at the node you want to run, then set it
// back to "Start" when you're done.
//
// Candidate active-check pattern (docs/candidate-system-implementation-plan.md §5 Phase 3):
// <<check skillId band>>
// <<if $check_result>> success branch writes $found_* + $self_lean_*
// <<else>> failure is a Wrong Truth — equally confident, unmarked in prose,
// and still writes lean (belief, not truth). Banner is the only tell.
title: Debug_SkillCheck
---
Narrator: Skill check harness.
<<check placement routine>>
<<if $check_result>>
Narrator: Passed. Rolled {$check_roll}, total {$check_total} against DC {$check_dc}.
<<else>>
Narrator: Failed. Rolled {$check_roll}, total {$check_total} against DC {$check_dc}.
<<endif>>
// Explicit numeric DC plus a situational modifier.
<<check confluence 16 2>>
Narrator: Confluence came out {$check_degree}.
// Deliberate typo: should log an error and continue, not deadlock.
<<check nosuchskill routine>>
Narrator: Survived the bad skill id.
===
// Candidate lean accumulator round-trip. Expect made_asset 2 / journalist 1 /
// inheritor 0, and the threshold branch to fire.
title: Debug_CandidateLean
---
<<set $self_lean_made_asset += 1>>
<<set $self_lean_made_asset += 1>>
<<set $self_lean_journalist += 1>>
Narrator: made_asset {$self_lean_made_asset} / journalist {$self_lean_journalist} / inheritor {$self_lean_inheritor}
<<if $self_lean_made_asset >= 2>>
Narrator: threshold branch reached.
<<endif>>
===
// Candidate active-check pattern. Set SkillRuntime.rollSeed non-zero for a
// SeededRollSource so both branches are reachable deterministically across runs.
// Success feeds made_asset; failure feeds inheritor (Wrong Truth lean — §4.4).
title: Debug_CandidateCheck
---
Narrator: Candidate check harness. Banner is the only pass/fail tell.
<<check confluence hard>>
<<if $check_result>>
CONFLUENCE: One: the card's stock matches the Concordat watermark. Two: the date is a week before the invitation went out. Three — and three is the one — somebody left this for you to find. Which means you were expected.
<<set $found_made_asset_document = true>>
<<set $self_lean_made_asset += 1>>
<<else>>
CONFLUENCE: One: the card's stock matches a wedding invitation from the thirties. Two: the date is your mother's. Three — and three is the one — you already knew the seating. Which means this was never yours to choose.
<<set $self_lean_inheritor += 1>>
<<endif>>
Narrator: lean made_asset {$self_lean_made_asset} / inheritor {$self_lean_inheritor}. Degree {$check_degree}.
===