Files
storybook/examples/alice-in-wonderland/world/relationships/wonderland_relationships.sb
Sienna Meridian Satterwhite ae5e9fdcd8 docs: add Alice in Wonderland example storybook
Add comprehensive example demonstrating all major features of the
Storybook DSL through Lewis Carroll's Alice in Wonderland.

Contents:
- 12 characters (Alice, WhiteRabbit, CheshireCat, MadHatter, etc.)
- 7 relationships with named participant blocks
- 3 institutions (tea parties, royal court)
- 1 schedule (Mad Tea Party eternal rotation)
- 12 behavior trees using new syntax features
- 1 life arc (Alice's journey)

Demonstrates:
- Cross-file template resolution (schema/templates.sb)
- Template inheritance and includes
- Strict template validation
- Action parameters and repeater decorators
- Named participant relationship blocks
- Species-based character typing
- Rich prose blocks throughout

All content validates successfully.
2026-02-08 15:46:52 +00:00

279 lines
8.8 KiB
Plaintext

//! Relationships in Wonderland: connections and dynamics
use schema::core_enums::EmotionalState;
// Alice's pursuit of the White Rabbit - what draws her into Wonderland
relationship AliceAndWhiteRabbit {
Alice {
// Alice's perspective
role: pursuer
motivation: curiosity
emotional_investment: 0.7
understands_other: false
---perspective
Alice follows the White Rabbit out of pure curiosity. "How
remarkable!" she thinks when he checks his watch. The Rabbit
represents the mystery of Wonderland - always rushing ahead,
never looking back, leading her deeper into strangeness.
---
}
WhiteRabbit {
// White Rabbit's perspective
role: unwitting_guide
motivation: avoid_being_late
emotional_investment: 0.0
aware_of_alice: false // Too preoccupied
---perspective
The White Rabbit barely notices Alice exists. He's consumed
by his own anxiety about being late for the Duchess, then
the Queen. Alice is just another obstacle between him and
punctuality.
---
}
}
// Alice and the Cheshire Cat - mysterious guide and confused visitor
relationship AliceAndCheshireCat {
Alice {
// Alice's perspective
role: seeker_of_guidance
emotional_state: confused
trusts_cat: 0.5 // Somewhat unsettling but helpful
---perspective
Alice finds the Cat both helpful and disturbing. He offers
directions (though everyone he points to is mad), listens
to her complaints about the croquet game, and provides the
philosophical framework "we're all mad here."
His disappearing act is unnerving but she's glad to have
someone to talk to who doesn't threaten her with beheading.
---
}
CheshireCat {
// Cheshire Cat's perspective
role: amused_observer
emotional_state: amused
helps_because: entertainment
---perspective
The Cat finds Alice endlessly entertaining. She's trying
to apply logic to Wonderland, which is inherently funny.
He helps her just enough to keep the show going, offering
directions that aren't wrong but aren't particularly helpful.
"We're all mad here. I'm mad. You're mad." This is both
warning and welcome. He's inviting her to accept the
absurdity.
---
}
bond: 0.6
}
// The Mad Hatter and March Hare - partners in madness
relationship HatterAndHare {
MadHatter {
// Hatter's perspective
role: co_conspirator
coordination: 1.0
builds_on_others_nonsense: true
---perspective
The Hatter and March Hare think as one unit of madness.
When one makes a nonsensical statement, the other builds
on it. They finish each other's contradictions. They
coordinate their assaults on logic.
"You might just as well say 'I see what I eat' is the
same as 'I eat what I see'!" - this kind of parallel
construction shows their synchronized absurdity.
---
}
MarchHare {
// March Hare's perspective (same as Hatter's - they're unified)
role: co_conspirator
coordination: 1.0
builds_on_others_nonsense: true
---perspective
From the March Hare's side, it's identical. They're two
halves of the same mad whole. Where one leads in nonsense,
the other follows. Together they create an impenetrable
wall of illogic.
The Dormouse serves as their shared cushion and occasional
entertainment, but the true relationship is between the
two perpetrators of madness.
---
}
bond: 0.95 // Deep partnership
}
// The Queen and King - tyranny and secret rebellion
relationship QueenAndKing {
QueenOfHearts {
// Queen's perspective
role: dominant_spouse
aware_of_pardons: false // Completely oblivious
expects: total_obedience
---perspective
The Queen views the King as a minor annoyance who occasionally
needs to be threatened. She expects him to agree with her
rage, support her execution orders, and generally stay out
of her way.
She has no idea he undermines every execution order. Her
blindness to his quiet rebellion is the only thing that
keeps the marriage (and Wonderland) functioning.
---
}
KingOfHearts {
// King's perspective
role: secret_moderator
loves_queen: 0.3
fears_queen: 0.9
subverts_authority: 1.0
---perspective
The King lives in constant fear but maintains his rebellion
through whispered pardons. "Consider, my dear: she is only
a child!" - these timid pleas fall on deaf ears.
His real power is exercised in secret: pardoning those the
Queen condemns, preventing the executions she orders. He's
the true ruler of Wonderland, governing through mercy while
she rages in impotent fury.
---
}
bond: 0.4 // Marriage held together by fear and secret subversion
}
// Alice and the Caterpillar - student and philosophical teacher
relationship AliceAndCaterpillar {
Alice {
// Alice's perspective
role: confused_student
emotional_state: frustrated
seeking: answers_about_size
---perspective
Alice finds the Caterpillar incredibly frustrating. He asks
"Who are YOU?" when she's having an identity crisis. He
contradicts everything she says. He refuses to elaborate
on his cryptic advice about the mushroom.
Yet he ultimately helps her gain control over her size
changes, providing the knowledge she needs even if his
manner is infuriating.
---
}
Caterpillar {
// Caterpillar's perspective
role: socratic_teacher
emotional_state: melancholy
teaching_method: contradiction
---perspective
The Caterpillar forces Alice to confront her confusion
through questioning. "Who are YOU?" is not rhetorical -
he's making her face the fact that she doesn't know.
His advice about the mushroom is deliberately incomplete.
She must experiment, fail, grow too large, shrink too
small, before mastering the technique. This is teaching
through experience, not explanation.
---
}
bond: 0.5
}
// Card Gardeners - fearful colleagues
relationship GardenersFearfulColleagues {
CardGardenerTwo {
// Two's perspective
role: mediator
tries_to_calm: true
explains_mistake: true
---perspective
Two attempts to maintain focus on the task: paint the
roses before the Queen arrives. When Five and Seven argue,
he tries to mediate. When Alice asks questions, he explains
their predicament honestly.
He's the voice of desperate pragmatism in a hopeless situation.
---
}
CardGardenerFive {
// Five's perspective
role: blame_assigner
gets_splashed: true
quick_to_anger: true
---perspective
Five is more concerned with who's at fault than with solving
the problem. When paint splashes him, he immediately blames
Seven. This finger-pointing wastes precious time but feels
necessary to his sense of justice.
His anger is fear displaced - they're all about to be
beheaded, so at least someone should be blamed properly.
---
}
bond: 0.6
}
// The Dormouse and the Tea Party hosts - cushion and tormentors
relationship DormouseAndHosts {
TheDormouse {
// Dormouse's perspective
role: unwilling_participant
would_rather: sleep
stories_interrupted: always
---perspective
The Dormouse just wants to sleep. He's pinched awake,
used as a cushion, has tea poured on his nose, and whenever
he starts a story, he's interrupted or falls asleep mid-sentence.
His relationship with the Hatter and March Hare is one of
resigned tolerance. They're his tormentors but also his
companions in the eternal tea party. He can't escape, so
he sleeps.
---
}
MadHatter {
// Hatter's perspective (and March Hare's - they treat Dormouse identically)
role: user_of_furniture
values_dormouse_as: cushion_and_entertainment
consideration: minimal
---perspective
To the Hatter and March Hare, the Dormouse is both furniture
and occasional diversion. They rest their elbows on him
without thinking. They wake him when they want a story,
then ignore him mid-tale.
There's no malice, just complete disregard for his comfort.
This is how the mad treat the merely sleepy.
---
}
bond: 0.4
}