Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to create a pregnancy in the save file.
- ===========================================
- There are 2 data lists for pregnancies which are
- unborn={
- unborn_birth={
- The first list unborn={ is the list of mothers that are pregnant but not showing, and the second list unborn_birth={ is the list of mothers that are pregnant but now showing and so will have the pregnancy trait and pregnancy events.
- You have to decide which you want to setup but I'd say go for the first as you don't have to add the trait which is a minor step but protects you from pdox deciding to update traits.
- Creating a birth in list unborn={
- --------------------------------------
- So first step is to find a woman in the unborn list that has a pregnancy date close to what you want, remembering that this is the date they will give birth. It will look like this
- {
- mother=66658
- father=17924
- assumed_father=17924
- date=1069.9.16
- }
- You will need to create an entry in the list at the appropriate sorted place, replacing the id for mother and father with your intended mother and father, and the date with the date you want them to give birth, remembering that to be in this list you have to be at the start of the pregnancy before they show, so just make sure your date is not before the first one in this list and not after the last one in this list.
- You can add count=2 after the date if you want the mother to have twins, and count=3 should also work, maybe even count=4.
- assumed_father should be the same as father unless you want to make a bastard, in which case you set father to the bastard's real father and assumed_father to the mother's consort, either husband or concubinist or concubine if she is the concubinist.
- Creating a birth in list unborn_birth={
- --------------------------------------------
- This is exactly the same as the first list except you will also have to add the pregnancy trait and will have to add a pregnancy state flag to the mother's character record which is fiddly.
- You are going to be more restricted as to when you can set the birth date in this list.
- First you have to find a donor mother, so check the character record of all the mothers in the list looking for one that has the character flag birth_will_go_smoothly, it will look like this
- {
- flag="birth_will_go_smoothly"
- tick=36
- data={
- }
- }
- You can safely insert a pregnancy immediately before/after any mother that has that flag. So when you find one, just copy their pregnancy record in the list to immediately before or after, changing the mother/father/assumed_father, adding count is desired BUT DO NOT CHANGE THE DATE.
- Then you have to copy the character flag from the donor mother's character record to your mother's character record. The reason you have to do this is because of the tick count, which has to align with the date span between the current date and the birth date.
- You will also have to add the pregnancy trait to the trait list in the mother's character record but that used to be easy until pdox changed how traits are mapped in the trait database, now the trait id can vary across game updates so it's a case of trial and error to work out which trait is the pregnancy one.
- You will have to look at the donor mother's character in game to see their trait list then match them one for one going from left to right in the donor mother's character record trait list to identify the pregnancy trait number, once you have worked it out you can add it in to the end of the trait list on your mother's character record.
- But you could skip this step, it just means you won't have the visual trait on the mother and the -2 prowess debuf that comes with it.
- NOTE
- ----
- If for whatever reason you wanted to create a birth with complications, you would go through the same process for creating a birth in the unborn_birth={ list but will need to find a suitable donor mother with a pregnancy character flag such as mother dies at birth, etc.
- Then follow the same process but you will then have to find the donor mother's birth event in the event list and fabricate one for your mother based on the donor mother's event. It's slightly trickier so I will not go into that here, but if you know how to manipulate the save game event list then it should be easy enough to do.
Add Comment
Please, Sign In to add comment