That's perfect. Thank you! Hadn't ever looked in there, had been assuming that it'd only be useful for adding new jobs.
No idea, I just can't make it work. I've tried scoping to the other twin with on_birth and on_post_birth, like this:
Code:
if = {
limit = {
trait = twin
}
any_sibling = {
limit = {
trait = twin
NOT = { age = 1 }
}
... #run the required events
}
}
Tried plenty of other things too. Works for about 95% of twins, but there's still some that slip through, never get the required traits, and then end up breaking various events. Urgh. No matter how much time I spend trying to troubleshooting it, I haven't been able to figure out where the remaining 5% come from. Maybe they're generated with create_character instead of being born, but if so, I haven't been able to track that down.
Edit: ...though maybe the other twin has already somehow died by the time on_post_birth gets run, and so that scope never gets run. I'll have to check that..