Idea: Royal Marriages + Heir
Rulers can marry to eachother, forming a dynastic alliance and union. The kingdom controlling the union (I.e one that holds capital) should have the heirs count towards that kingdoms royal lineage. However, if multiple heirs are produced, the empire will become divided amongst both heirs. Same with normal countries too.