Government modding

本頁面所適用的版本可能已經過時,最後更新於Pre-release


Government

Senate support for an action

####################################
# Declare War
####################################
declare_war = {

    approval = {
    
        military_party = {
            base = 0
            always_modifier = {
                add = 0.5
                has_civil_war = no
            }
            always_modifier = {
                add = {
                    value = 0
                    add = root.manpower_percentage
                    max = 0.5
                }
            }
            always_modifier = {
                add = -0.3
                war = yes
            }
            always_modifier = {
                add = {
                    value = 20
                    subtract = root.has_war_exhaustion
                    divide = 50
                    max = 0.2
                }
            }
            #######generic
            always_modifier = {
                add = {
                    value = 0.01
                    multiply = military_senate_support_svalue
                    max = 0.2
                }
            }
            always_modifier = {
                add = {
                    value = 0.01
                    multiply = root.current_ruler.martial
                }
            }
            always_modifier = {
                add = 0.15
                OR = {
                    AND = {
                        current_ruler = {
                            num_of_friends >= 1
                        }
                        any_character = {
                            is_friend = root.current_ruler
                            is_party_leader_of = root.party:military_party
                        }
                    }
                    current_ruler = {
                        is_party_leader_of = root.party:military_party
                    }
                }
            }
            always_modifier = {
                add = {
                    value = 0
                    if = {
                        limit = {
                            root.current_ruler = {
                                party = military_party
                            }
                        }
                        add = 0.2
                        add = {
                            value = 0
                            add = root.tyranny
                            divide = 100
                        }
                        max = 0.4
                    }
                }
            }
            always_modifier = {
                add = -0.15
                current_ruler = {
                    num_of_rivals >= 1
                }
                any_character = {
                    is_rival = root.current_ruler
                    is_party_leader_of = root.party:military_party
                }
            }
            always_modifier = {
                add = 0.1
                government = aristocratic_republic
            }
        }
    
        civic_party = {
            base = 0
            always_modifier = {
                add = -0.5
                has_civil_war = yes
            }
            always_modifier = {
                add = 0.15
                NOT = { current_ruler = { has_same_culture_group_as = scope:target.current_ruler } }
            }
            always_modifier = {
                add = 0.15
                NOT = { current_ruler = { has_same_culture_as = scope:target.current_ruler } }
            }
            always_modifier = {
                add = {
                    value = 20
                    subtract = root.has_war_exhaustion
                    divide = 100
                    max = 0.1
                }
            }
            always_modifier = {
                add = 0.2
                scope:target = {
                    is_tribal = yes
                }
            }
            #######generic
            always_modifier = {
                add = {
                    value = 0.01
                    multiply = civic_senate_support_svalue
                    max = 0.2
                }
            }
            always_modifier = {
                add = {
                    value = 0.01
                    multiply = root.current_ruler.finesse
                }
            }
            always_modifier = {
                add = 0.15
                OR = {
                    AND = {
                        current_ruler = {
                            num_of_friends >= 1
                        }
                        any_character = {
                            is_friend = root.current_ruler
                            is_party_leader_of = root.party:civic_party
                        }
                    }
                    current_ruler = {
                        is_party_leader_of = root.party:civic_party
                    }
                }
            }
            always_modifier = {
                add = {
                    value = 0
                    if = {
                        limit = {
                            root.current_ruler = {
                                party = civic_party
                            }
                        }
                        add = 0.2
                        add = {
                            value = root.tyranny
                            divide = 100
                        }
                        max = 0.4   
                    }
                }
            }
            always_modifier = {
                add = -0.15
                current_ruler = {
                    num_of_rivals >= 1
                }
                any_character = {
                    is_rival = root.current_ruler
                    is_party_leader_of = root.party:civic_party
                }
            }
            always_modifier = {
                add = 0.1
                government = democratic_republic
            }
        }
        religious_party = {
            base = 0.1
            always_modifier = {
                add = -0.5
                has_civil_war = yes
            }
            always_modifier = {
                add = 0.2
                NOT = { current_ruler = { has_same_religion_as = scope:target.current_ruler } }
            }
            #######generic
            always_modifier = {
                add = {
                    value = 0.01
                    multiply = religious_senate_support_svalue
                    max = 0.2
                }
            }
            always_modifier = {
                add = {
                    value = 0.01
                    multiply = root.current_ruler.zeal
                }
            }
            always_modifier = {
                add = 0.15
                OR = {
                    AND = {
                        current_ruler = {
                            num_of_friends >= 1
                        }
                        any_character = {
                            is_friend = root.current_ruler
                            is_party_leader_of = root.party:religious_party
                        }
                    }
                    current_ruler = {
                        is_party_leader_of = root.party:religious_party
                    }
                }
            }
            always_modifier = {
                add = {
                    value = 0
                    if = {
                        limit = {
                            root.current_ruler = {
                                party = religious_party
                            }
                        }
                        add = 0.2
                        add = {
                            value = 0
                            add = root.tyranny
                            divide = 100
                        }
                        max = 0.4
                    }
                }
            }
            always_modifier = {
                add = -0.15
                current_ruler = {
                    num_of_rivals >= 1
                }
                any_character = {
                    is_rival = root.current_ruler
                    is_party_leader_of = root.party:religious_party
                }
            }
            always_modifier = {
                add = 0.1
                government = theocratic_republic
            }
        }
        mercantile_party = {
            base = 0.5
            always_modifier = {
                add = -0.5
                has_civil_war = yes
            }
            always_modifier = {
                add = -0.5
                trade_access_with = scope:target
            }
            always_modifier = {
                add = {
                    if = {
                        limit = {
                            root.has_war_exhaustion <= 10
                        }
                        value = 10
                        subtract = root.has_war_exhaustion
                        divide = 50
                        max = 0.2
                    }
                    else = {
                        value = 0
                        subtract = root.has_war_exhaustion
                        add = 10
                        divide = 25
                        max = -0.4
                    }
                }
            }
            #######generic
            always_modifier = {
                add = {
                    value = 0.01
                    multiply = mercantile_senate_support_svalue
                    max = 0.2
                }
            }
            always_modifier = {
                add = {
                    value = 0.01
                    multiply = root.current_ruler.charisma
                }
            }
            always_modifier = {
                add = 0.15
                OR = {
                    AND = {
                        current_ruler = {
                            num_of_friends >= 1
                        }
                        any_character = {
                            is_friend = root.current_ruler
                            is_party_leader_of = root.party:mercantile_party
                        }
                    }
                    current_ruler = {
                        is_party_leader_of = root.party:mercantile_party
                    }
                }
            }
            always_modifier = {
                add = {
                    value = 0
                    if = {
                        limit = {
                            root.current_ruler = {
                                party = mercantile_party
                            }
                        }
                        add = 0.2
                        add = {
                            value = 0
                            add = root.tyranny
                            divide = 100
                        }
                        max = 0.4
                    }
                }
            }
            always_modifier = {
                add = -0.15
                current_ruler = {
                    num_of_rivals >= 1
                }
                any_character = {
                    is_rival = root.current_ruler
                    is_party_leader_of = root.party:mercantile_party
                }
            }
            always_modifier = {
                add = 0.1
                government = oligarchic_republic
            }
        }
        populist_party = {
            base = 0.1
            always_modifier = {
                add = 0.15
                scope:target = {
                    is_monarchy = yes
                }
            }
            #######generic
            always_modifier = {
                add = {
                    value = 0.01
                    multiply = populist_senate_support_svalue
                    max = 0.2
                }
            }
            always_modifier = {
                add = 0.15
                OR = {
                    AND = {
                        current_ruler = {
                            num_of_friends >= 1
                        }
                        any_character = {
                            is_friend = root.current_ruler
                            is_party_leader_of = root.party:populist_party
                        }
                    }
                    current_ruler = {
                        is_party_leader_of = root.party:populist_party
                    }
                }
            }
            always_modifier = {
                add = {
                    value = 0
                    if = {
                        limit = {
                            root.current_ruler = {
                                party = populist_party
                            }
                        }
                        add = 0.3
                        add = {
                            value = 0
                            add = root.tyranny
                            divide = 100
                        }
                        max = 0.6   
                    }
                }
            }
            always_modifier = {
                add = -0.15
                current_ruler = {
                    num_of_rivals >= 1
                }
                any_character = {
                    is_rival = root.current_ruler
                    is_party_leader_of = root.party:populist_party
                }
            }
        }
    }
    
    loyalty = {
        military_party = 0.1
        populist_party = -0.1
    }
    
    support = {
        civic_party = -1
        military_party = 3
        mercantile_party = -1
        populist_party = -1
    }
}