Okay, I'd like to describe something I wish to do with Crusader Kings, and perhaps some of you folks can help me figure out whether or not it would be possible.
I would like to add some number of new character traits, each of which would be passed from one character to his or her offspring through strict Mendelian rules of inheritance.
So, for example, if Character Alpha had trait A homozygously (i.e. he had it on both copies of his relevant chromosome), then all of his offspring would get trait A at least heterozygously (i.e. on at least one copy of their own version of that chromosome). If Alpha had trait A only heterozygously, then only half of his offspring would get the trait from him. One could, of course, get trait A from either one's father, one's mother, or both.
I think what I would have to do is set up events that would fire soon after each character is born, checking for (e.g.) a "has_trait_A" flag in each parent and then setting or not setting the same flag for the new character according to certain rules. Then all I would have to do is add the "has_trait_A" flag to certain characters at the scenario start.
Is this kind of thing practical?
I would like to add some number of new character traits, each of which would be passed from one character to his or her offspring through strict Mendelian rules of inheritance.
So, for example, if Character Alpha had trait A homozygously (i.e. he had it on both copies of his relevant chromosome), then all of his offspring would get trait A at least heterozygously (i.e. on at least one copy of their own version of that chromosome). If Alpha had trait A only heterozygously, then only half of his offspring would get the trait from him. One could, of course, get trait A from either one's father, one's mother, or both.
I think what I would have to do is set up events that would fire soon after each character is born, checking for (e.g.) a "has_trait_A" flag in each parent and then setting or not setting the same flag for the new character according to certain rules. Then all I would have to do is add the "has_trait_A" flag to certain characters at the scenario start.
Is this kind of thing practical?