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

sejtalk

Sergeant
30 Badges
Jun 8, 2015
52
2
  • Crusader Kings II
  • Sengoku
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Imperator: Rome Sign Up
  • Crusader Kings III Referal
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
Are there any expoits one can use to allow people from other realms to be voters or candidates? The rules on succession modding seem very unclear and i was not able to find info about it limitations.
 
Characters from other realms should be able to be voters or candidates by default as long as you don't put in any conditions restricting them to being in the same realm.
 
But that is not true from my experience. I tried to make it so that only society members of certain rank can be voters and candidates and it only used ones in my realm.
 
Can you post the code you used? I did quite a few coding for succession the last couple of weeks and because of its high level of interaction it switches ROOT and FROM etc quite a lot.
 
Code:
cenarion_law = {
    elector_selection = {
        days = -5         # If below 0, ROOT is not valid to be an Elector. Any character above 0 will be an elector.
        max_amount = 50 # Determines max amount of electors, with the lower scoring ones being excluded (limit is optional)
        additive_modifier = { #
            value = 10
            society_rank = { society = cenarion_circle rank >= 4 }
            society_member_of = cenarion_circle
            OR = {
                any_liege = {
                    character = ROOT
                }
                is_ruler = no
                ROOT_FROMFROM = { holder_scope = { independent = yes } }
            }
        }
    }
    elector_vote_strength = { #Affects the voting strength of each elector.
        days = 1 # 1 elector = 1 vote.
    }
    candidate_vote_score = { #Chance of an Elector voting for a candidate over the other. The candidate with the highest value will be picked.
        days = 1
        ##########################   Elector voting himself   ##########################
        additive_modifier = {
            value = 15
            localisation_key = tooltip_feudal_elector_vote_myself
            character = FROM
            NOR = {
                trait = humble
                trait = content
                trait = craven
                trait = slothful
                trait = stressed
                trait = depressed
                trait = ambitious
            }
            NOT = {
                FROMFROM = {
                    holder_scope = {
                        is_parent_of = ROOT
                    }
                }
            }
        }
    }
    candidate_trigger = { #Trigger to determine what characters are valid candidates that can be voted by electors.
        FROM = {
            society_member_of = cenarion_circle
            OR = {
                any_liege = {
                    character = ROOT
                }
                is_ruler = no
                ROOT_FROMFROM = { holder_scope = { independent = yes } }
            }
        }
    }
}
 
If I'm not mistaken, the part in code below limits it to current realm.
Code:
               any_liege = {
                    character = ROOT
What is your intention? Do you want members of the cenarion_circle AND people from the current realm to be candidates? If so, the code below should work.
Code:
cenarion_law = {
    elector_selection = {
        days = -5         # If below 0, ROOT is not valid to be an Elector. Any character above 0 will be an elector.
        max_amount = 50 # Determines max amount of electors, with the lower scoring ones being excluded (limit is optional)
        additive_modifier = { #
            value = 10
            OR = {
               society_rank = { society = cenarion_circle rank >= 4 }
               society_member_of = cenarion_circle
               OR = {
                   any_liege = {
                       character = ROOT
                   }
                   is_ruler = no
                   ROOT_FROMFROM = { holder_scope = { independent = yes } }
               }
           }
        }
    }
    elector_vote_strength = { #Affects the voting strength of each elector.
        days = 1 # 1 elector = 1 vote.
    }
    candidate_vote_score = { #Chance of an Elector voting for a candidate over the other. The candidate with the highest value will be picked.
        days = 1
        ##########################   Elector voting himself   ##########################
        additive_modifier = {
            value = 15
            localisation_key = tooltip_feudal_elector_vote_myself
            character = FROM
            NOR = {
                trait = humble
                trait = content
                trait = craven
                trait = slothful
                trait = stressed
                trait = depressed
                trait = ambitious
            }
            NOT = {
                FROMFROM = {
                    holder_scope = {
                        is_parent_of = ROOT
                    }
                }
            }
        }
    }
    candidate_trigger = { #Trigger to determine what characters are valid candidates that can be voted by electors.
        FROM = {
            OR = {
               society_member_of = cenarion_circle
               OR = {
                   any_liege = {
                       character = ROOT
                   }
                   is_ruler = no
                   ROOT_FROMFROM = { holder_scope = { independent = yes } }
               }
            }
        }
    }
}
 
If I'm not mistaken, the part in code below limits it to current realm.
Only for rulers that are not independent. Plus i don't really see the difference in your codes besides the fact it changed it so chars in realm don't have to be in society.
 
Did you try my version?
Only for rulers that are not independent.
As I'm reading it your original code enables an elector:
  1. when he/she is of greater or equal to level 4 of the cenarion_circle;
  2. AND when he/she is part of the the cenarion_circle (which is already the case in the first bullet);
  3. AND either:
    • OR when he/she has the ROOT character (which is the elector you're referring to in case of elector selection) as a liege somewehere up the line (which might give issues);
    • OR when he/she is not a ruler;
    • OR when the current titleholder is independent. (Not sure about the ROOT_ addition here.)
And it enables a candidate:
  1. when he/she is part of the the cenarion_circle;
  2. AND either:
    • OR when he/she has the ROOT character (that is the 'current titleholder' in this case) as a liege somewehere up the line (limiting it to the current realm);
    • OR when he/she is not a ruler;
    • OR when the current titleholder is independent. (Not sure about the ROOT_ addition here.)
If you want to enable it for non-independant rulers, try is_ruler = yes in the candidate_trigger and is_ruler = yes plus any_liege = { character = ROOT_FROMFROM } in the elector_selection. Skip the part ROOT_FROMFROM = { holder_scope = { independent = yes } }.
Plus i don't really see the difference in your codes besides the fact it changed it so chars in realm don't have to be in society.
Hopefully my code in the elector_selection part skips the possible calculation twister gotten by the part where it requires an elector to have itself as a liege somewhere up the line when he/she is of greater or equal to level 4 of the cenarion_circle. In the candidate_trigger part candidates are either member of cenarion_circle OR are in the current realm AND not a ruler AND while the current titleholder is independent.

You can also just strip the entire OR part in your original code to see if without it it works properly. The any_liege = { character = ROOT } code might give hick ups in the elector_selection. And the ROOT_FROMFROM = { holder_scope = { independent = yes } } could give troubles as well.
 
The idea is that all members that are greater or equal to level 4 of the cenarion circle can vote but that doesn't seem to be allowed and as i said the code works weird in many cases. So i think there is a misunderstanding as i look for ways to make it possible and not that i don't know how to allow things related to being a vassal or not etc.
 
Ok, what happens if you use the following code just for elector_selection? I presume you only get electors from FROMFROM?
Code:
    elector_selection = {
        days = -5         # If below 0, ROOT is not valid to be an Elector. Any character above 0 will be an elector.
        additive_modifier = { #
            value = 10
           FROM = { society_rank = { society = cenarion_circle rank >= 4 } }
        }
    }
 
I tinkered around with the mechanics and it seems the candidates and electors are related to the dejure realm. But there are exeptions, at least for the candidates. Like a claimant or when child is in another realm. I haven't figured out why that is, maybe it is hardcoded. I'll look into it tomorrow some more.