Can you script that if a princess maries a faction leader and he dies without children the entire faction will be transfered to the on that owned the princess? I know that would be a lot of work, just want to know if it's possible.
Can you script that if a princess maries a faction leader and he dies without children the entire faction will be transfered to the on that owned the princess? I know that would be a lot of work, just want to know if it's possible.
it's quite unlikely that faction leader wouldn't have children...
but you could give faction leader of faction 'c' trait 'a' (I think)
and give any children of that father with fathertrait 'a' another trait 'b'
and then set condition in script that if no-one living has trait 'b' all of faction 'c'
is given to faction 'd'
am not entirely sure if the link to princess is recordable - you'd need to work out
if marriage of princess from faction 'd' can be used in first place to trigger giving trait 'a' to leader of faction 'c'
if you've only got two factions the example would be as above - if you've got a lot of factions the whole thing would expand exponentially, with you needing to code each case; eg. that princess from faction 'f' marries leader of faction 'g', or faction 'd' etc... and every other permutation!
Not used mods before? Looking for something small and fun?!Download the:
I knew that, scripting is mainly a lot of work.
Yup
I was actually a bit wrong on that, if you meant true, born as baby, children. If he hasn't got children who haven't come of age yet coded for him in descr_strat, and faction expands so game starts wanting to give it more generals, he's likely to end up with adopted generals filling the slots, especially if its an AI controlled faction.
the other thing to look at would be to use an ancillary derived from the inherited traits, which is passed to real son and heirs.... you can quite easily code monitors to use
checking for faction not having a trait is messier as there isn't a FactionwideTraitExists command, though you could probably get round it with countersand not FactionwideAncillaryExists Im_a_heir_anc true
Not used mods before? Looking for something small and fun?!Download the:
Bookmarks