Added comprehensive v0.3.0 feature demonstration: Characters (5 total): - Martha & Jane (married lesbian couple, co-owners of bakery) - Emma (their daughter, apprentice baker) - Henry (loyal customer, retired teacher) - Roland (competing baker) New declarations: - 6 relationships with asymmetric perspectives (Marriage, ParentChild×2, BusinessPartnership, CustomerRelationship, Competition) - Locations with prose (MarthasBakery, MainStreet) - Institution (BakersGuild) - Life arcs (MarriageQuality, BusinessGrowth) Features demonstrated: - Concept comparison usage (skill_tier: Master/Journeyman) - Life arc applied to relationship - Asymmetric participant perspectives - Family coherence across files
53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
//! Life arcs applied to relationships and family dynamics
|
|
//!
|
|
//! Demonstrates:
|
|
//! - Life arc applied to relationship quality
|
|
//! - Life arc for business growth
|
|
//! - State transitions driven by numeric fields
|
|
|
|
// Marriage quality over time
|
|
life_arc MarriageQuality requires { relationship_quality: Number, years_together: Number } {
|
|
state newlywed {
|
|
on enter {
|
|
relationship_quality: 0.85
|
|
}
|
|
on years_together > 3 and relationship_quality > 0.7 -> established
|
|
}
|
|
|
|
state established {
|
|
on enter {
|
|
relationship_quality: 0.90
|
|
}
|
|
on years_together > 10 and relationship_quality > 0.85 -> deep_bond
|
|
}
|
|
|
|
state deep_bond {
|
|
on enter {
|
|
relationship_quality: 0.95
|
|
}
|
|
}
|
|
}
|
|
|
|
// Business growth arc for the bakery
|
|
life_arc BusinessGrowth requires { customer_relations: Number, baking_skill: Number } {
|
|
state starting_out {
|
|
on enter {
|
|
customer_relations: 0.5
|
|
}
|
|
on customer_relations > 0.7 and baking_skill > 0.6 -> growing
|
|
}
|
|
|
|
state growing {
|
|
on enter {
|
|
customer_relations: 0.75
|
|
}
|
|
on customer_relations > 0.9 and baking_skill > 0.8 -> thriving
|
|
}
|
|
|
|
state thriving {
|
|
on enter {
|
|
customer_relations: 0.95
|
|
}
|
|
}
|
|
}
|