MadVader said:
I was following up on a reported bug with eligible brides, and reviewed the "initialize_aristocracy" script. There's some nonsense code and a few minor bugs in there, so I wonder if anyone went through fixing the script as well - maybe we can compare notes.
I think native's "initialize_aristocracy" script is good enough. Customized one should set some important slot_troop_* that related to family relations as the native does perfectly. Note that before calling the script, native set the slots to -1 so it won't refer to 0 (=trp_player). The important slots are :
1. slot_troop_spouse
- This slot set for married lords and ladies, it should be set for both, man and wife.
If we don't set a lady's slot then native will try to find suitor for her even if there's a lord that has slot_troop_spouse set to her.
2. slot_troop_guardian
- This slot must be set for ladies that has no father and it should be set to their brother.
3. slot_troop_father & slot_troop_mother
- For young lords and ladies, slot_troop_father is set to old lords, and slot_troop_mother should be set to father's spouse.
- For the old troops, set slot_troop_father to positive numbers, set it to same value for same lords to make them brothers and
their children become cousins. Native's script has good randomization factor about it.
- For unmarried ladies that has no slot_troop_guardian, slot_troop_father should be set.