What happens if the pregnancy_spouse id belongs to someone of a different species.
What happens if the pregnancy_spouse id belongs to someone of a different civ.
What happens if the pregnancy_spouse id is left blank.
What the pregnancy_caste field is used for.
1. Crash.
2. Probably nothing unusual.
3. No goddamn idea, might be a crash.
4. I don't know and encourage experimentation.
Sorry to double-post, but new results+question:
I've been tinkering around with your ectobiology script, and I'm able to do #1, at least under some circumstances.
I just changed it to always use 10 as the id (which happened to be a female roc in the testing world), and the children were born right 2 out of 3 times (with a mysterious crash the first time, which might've been related? Same parents worked the second time, though)
How much testing did you do around #1?
Edit with an update: With the help of your ectobiology script, my potter has given birth to a daughter fathered by a visiting poet. The various unit details screens don't seem to cause crashes. I'll see what happens when he leaves the map.
Edit2: I've induced a second pregnancy between my weaver and a visiting merchant (two separate trials). So far no crashes. That poet seems to have taken up unauthorized permanent residence in my dining hall, but the merchant took off and the various info screens still don't crash.
(the poet's name is Ecod Rapidslaps. Perhaps we need to slap him rapidly until he goes home?)
Edit3: There are now 7 children in the fortress fathered by various visitors, permanent residents, and impromptu permanent residents, the oldest of which is two years old. Mr. Rapidslaps has been 'temporarily visiting' my tavern for the past two years, showing no signs of moving on. No crashes so far.
Edit4: Year three: Mr Rapidslaps is still loafing in the dining hall; however, I induced a pregnancy between my Planter and an applicant for permanent residence, then booted him off the map. As with the merchant test, the father successfully left the map without turning his daughter's info and relationships screens into crash-fests.
Also, an interesting finding: A pregnancy between one of my citizens and a father with an (off-site) son resulted in his info and relationships screens listing both his son and his daughter, while the daughter's relationship screen lists only her mother and father, not her (half-)brother. On the other hand, I induced a pregnancy between a visitor and the mother of the randomly-generated-child-immigrant, and the info screens of both of those children list each-other as sisters. I'm guessing that Dwarf Fortress tracks sibling-ness through checking for shared mothers?
Edit 5: Year five: Mr. Rapidslaps
finally stopped crashing in my dining room and moved on, completing the initial experiment. As expected by this point, his daughter's info screens have successfully negotiated him leaving the map.
I did have a run of crashes, but they were strongly associated with protracted combat involving a deku scrub raid, and I eventually got past it by slaughtering the scrubs with my elite squad as they tried to enter the map.