Files
storybook/examples/baker-family/characters/emma.sb

42 lines
1.3 KiB
Plaintext
Raw Normal View History

//! Emma - The bakers' daughter
//!
//! Demonstrates:
//! - Character using different template (Child vs Baker)
//! - Different behavior set appropriate to age
//! - No work schedule (children don't work)
use schema::templates::Child;
character Emma from Child {
// Personal details
age: 12
// Child-specific traits
school_grade: 7
curiosity: 0.9
// General traits
energy: 0.9
mood: 0.85
---backstory
Emma is the bright, energetic daughter of Martha and Jane. She loves
helping in the bakery on weekends, though she's not allowed to work
the ovens yet. She's fascinated by the chemistry of baking and often
asks her mothers endless questions about why dough rises, how yeast
works, and what makes bread crusty.
At school, she excels in science and math, and dreams of one day
creating her own innovative recipes. She learns the science of bread
from Martha and the art of decoration from Jane. For now, she's
content to help package goods and chat with the regular customers
who've watched her grow up.
---
}
// Note: Emma inherits from Child template which:
// - uses behaviors: PlayBehavior, LearnBehavior
// - uses behaviors: BasicNeeds, SocialInteraction (from Person)
// - Has NO work schedule (appropriate for a child)
// - Has different fields than Baker template