Revanstein said:
Too bad I haven't found any code that simplifies it as simply changing a MAX value for spouses.
Since the default is monogamous there isn't a max number for it.
Assuming you only marry single women, the max you can have is 72 (8 daughter and 4 sister from each kingdom and 6 kingdoms in Warband) excluding claimants and heroes (7 of them in total)... kind of ominous somehow
The number of women in the game is 127 including the 2 claimants and the 5 companions if you prefer using boolean datatype instead of referencing. Again, some other ominous number.
Now I am not sure whether you can just add variables or something but the best practice should probably involve
[list type=decimal]
[*]changing spouse info to an array. If you need to separate concubines from wife (wife as in the one managing the concubines), you probably would add an array instead of replacing it.
[*]Find the character notes screen (no idea where that is) and change it to look for the array.
[*]Change the check condition of the lady talk in module dialogues. You might want to have some extra condition such as ambitious ladies might not want to settle as concubines.
[*]Check whether the resulting family relations is what you would expect/want when you renounce vassalship after a female player married to a lord of some faction (I have no idea what happens). If it isn't you might want to make claimants and companions unavailable. If it looks like you can change that to what you want, you can add dialogues to claimant and female companions about marriage.
[/list]
The initialization and dialogue tells us getting bettothed and setting spouse is unidirectional (so you need to run twice):
Code:
(troop_set_slot, ":cur_troop", slot_troop_spouse, ":cur_lady"),
(troop_set_slot, ":cur_lady", slot_troop_spouse, ":cur_troop"),
Code:
(troop_set_slot, "$g_talk_troop", slot_troop_betrothed, "trp_player"),
(troop_set_slot, "trp_player", slot_troop_betrothed, "$g_talk_troop"),
I'd keep betrothal to one at a time (marry that girl before you engage to another) atm for simplicity
So now in dialogues you might want to change one of them to adding to the array if you are married (clone the dialogue to check if you are already got a wife)
I am looking for ways to do something like that too (except I want other features as well, such as female player to marry girls, ability to change your wife/concubine's clothes, able to "recourt" with the same girl after you part with her (sometimes you have to part with the girl in order to get permission from lord, which means you can't see the girl anymore and that kind of defeats the whole purpose of getting permission), and possibly base on vex native)