• 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.

ibrahim100

Sergeant
24 Badges
Aug 17, 2013
73
5
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Pre-order
  • Crusader Kings II
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Cossacks
  • Europa Universalis 4: Emperor
  • Crusader Kings III
  • Imperator: Rome
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Magicka 2
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV
  • Crusader Kings II: The Old Gods
Hello,

I'm trying to create a new succession type that is basically a more flexible primogeniture: characters vote on the heir, but greatly favour the one that would be heir under primogeniture. In order for that to work, I need to use the would_be_heir_under_primogeniture command. However, I cant' seem to make it work!

Code:
    candidate_vote_score = {
        days = 0
        additive_modifier = {
            value = 30
            FROMFROM = { would_be_heir_under_law = { who = FROM law = primogeniture } }
        }    
}

Electors simply ignore this. It doesn't appear as a reason for their vote.
Could someone help me out? Thanks
 
Last edited:
I don't have too much experience with this kind of thing, but you may be able to do something like this
Code:
candidate_vote_score = {
       days = 0
        additive_modifier = {
            value = 30
            FROMFROM = {
                           NOT = {
                                     any_sibling = { is_older_than = FROMFROM }
                           }
                  }
        }
}
I'm not sure if I used the correct scope in the "is_older_than" part, but if I'm correct, this should make it so if the candidate doesn't have any older siblings, it gives them more vote score.
 
I don't have too much experience with this kind of thing, but you may be able to do something like this
Code:
candidate_vote_score = {
       days = 0
        additive_modifier = {
            value = 30
            FROMFROM = {
                           NOT = {
                                     any_sibling = { is_older_than = FROMFROM }
                           }
                  }
        }
}
I'm not sure if I used the correct scope in the "is_older_than" part, but if I'm correct, this should make it so if the candidate doesn't have any older siblings, it gives them more vote score.

That could work when the candidate is son of the ruler. If we added the brothers of the ruler as well it would cover 90% of the cases. However, when the heir would be a distant cousin things get more complicated :/

I'll test some things out later with your recommendation in mind. Thanks!