• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Adwa

Corporal
67 Badges
Jun 10, 2015
34
46
  • Crusader Kings II: Charlemagne
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mare Nostrum
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis IV: Art of War
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Holy Fury
  • Victoria 3 Sign Up
  • Europa Universalis IV: Dharma
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Age of Wonders III
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Stellaris: Galaxy Edition
  • Europa Universalis IV
  • Victoria 2
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
Hey guys, I want to rebuild primogeniture into a kind of weighted elective, like byzantium
Here is the code
Code:
elector_vote_strength = {
    days = 1
    additive_modifier = { #The heir of primogeniture
        value = 10
        FROMFROM = {
            would_be_heir_under_law = { who = FROM law = primogeniture }
        }
    }
}
Code:
elector_selection = {
    days = -5         #If below 0, ROOT is not valid to be an Elector.
    additive_modifier = { #The heir of primogeniture
        value = 1000
        FROMFROM = {
            would_be_heir_under_law = { who = FROM law = primogeniture } 
                                 #Both "who = FROM" and "who = ROOT" is same here
        }
    }
}
Please focus on "would_be_heir_under_law", in this case, I expect it will always target on the heir of primogeniture

For example, Kindom of England lead by William
eGPrb1P.jpg

When Robert is not the heir, everything alright, he is seen as the heir under primogeniture

9ibPypK.jpg

But when Robert become the heir of elective, he immediately lose the position, he's not heir of primogeniture anymore

Does anyone know what happen or how can I fix it?:(
 
I solved it with the following code.
Code:
           OR = {
               FROM = { is_primary_heir = ROOT_FROMFROM }
               FROMFROM = {
                   would_be_heir_under_law = { who = ROOT_FROM law = primogeniture }
               }
           }
It is a bit of a bypass, but you retain the status when you are the first choice. However, if the primo heir isn't the first choice, the other guy who is first choice also gets the status. For me that is alright, because it gives a plus 50 in the candidate vote score with the tooltip "Is the rightful heir". In an elective succession both the picked candidate as the primo character could be seen as the rightful heir. It gives a bit more stability to the elective process as well. But I can understand is this wouldn't work for you.
 
Last edited: