• We will be taking the forums down for scheduled maintenance on 12 August 2020 at approximately 3PM CDT (8PM UTC / 10PM CEST), this downtime is currently estimated to last around 1 hour.
  • Pre order now!

    Paradox Development Studio brings you the sequel to one of the most popular strategy games ever made! Crusader Kings III is soon upon us and you can pre order it today!


    Releasing September 1st 2020

Gunthah

Captain
77 Badges
Aug 22, 2012
391
149
  • Crusader Kings II
  • Crusader Kings II: Holy Fury Pre-order
  • Crusader Kings III Referal
  • Europa Universalis III Complete
  • Rome Gold
  • Victoria 2
  • Hearts of Iron IV: Colonel
  • Imperator: Rome Deluxe Edition
  • 500k Club
Currently, if a woman has a claim to a title with agnatic law this claim cannot be pressed unless it is inherited by her son after she dies.

I'm trying to modify the claim CBs to allow for men whose mother has a claim on an agnatic title press "their claim" taking the place of their mother, without having to kill her to do so.

I have so far not been successful and wonder if anyone would know how to do this. This is what I've come up with:



Code:
other_claim = {
    name = CB_NAME_CLAIM
    war_name = WAR_NAME_OTHER_CLAIM
    sprite = 2
    truce_days = 3650
    hostile_against_others = yes
    can_ask_to_join_war = no

    press_claim = yes
   
    allowed_to_target_tributaries = no

    infamy_modifier = 0.5
   
    sort_priority = 900

    can_use = {
        ROOT = {
            mercenary = no
        }
    }

    can_use_gui = {
        check_if_crusader_trigger = yes
    }

    can_use_title = {
        OR = {
            ROOT = { is_female = no }
            AND = {
                NOT = { ROOT = { religion_group = muslim } }
                NOT = { ROOT = { has_religion_feature = religion_patriarchal } }
                NOT = { succ_law_title = { has_law = agnatic_succession } }
            }
        }
        OR = {
            ROOT = { is_female = yes }
            AND = {
                NOT = { ROOT = { has_religion_feature = religion_matriarchal } }
                NOT = { succ_law_title = { has_law = enatic_succession } }
            }
        }
        OR = {
            FROM = {
                has_landed_title = PREV
            }
            holder_scope = {
                is_liege_or_above = FROM
            }
        }
       
        ROOT = {
            OR = {
                is_ruler = no
                primary_title = {
                    OR = {
                        is_primary_type_title = no # Static Mercs, the Pope, Holy Orders, etc
                        higher_tier_than = PREVPREV
                        tier = PREVPREV
                    }
                }
            }
        }
       
        NOT = {
            any_war = { # when used in title scope, checks all wars for that title
                attacker = {
                    character = ROOT
                }
            }
        }
       
        OR = {
            ROOT = { has_strong_claim = PREV }
            AND = {
                OR = {
                    ROOT = { has_weak_claim = PREV }
                    ROOT = {
                        is_female = no
                        mother = { has_claim = PREVPREV }
                    }
                }
                OR = {
                    is_pretender = yes # Checks vs ROOT character
                    holder_scope = { has_regent = yes }
                    AND = {
                        ROOT = { OR = { is_female = no  has_law = status_of_women_4 } }
                        holder_scope ={ AND = { is_female = yes NOR = { has_law = status_of_women_4 has_game_rule = { name = gender value = all } } } }
                    }
                    is_contested = yes # Is already being contested in some form of Claim or Succession War
                }
            }
        }
       
        OR = {
            multiplayer = no
            FROMFROM = { ai = yes }
            has_game_rule = {
                name = multiplayer_third_party_claims
                value = on
            }
            AND = {
                has_game_rule = {
                    name = multiplayer_third_party_claims
                    value = limited
                }
                lower_tier_than = KING
            }
        }
    }

    is_valid_title = {
        OR = {
            FROM = {
                has_landed_title = PREV
            }
            holder_scope = {
                is_liege_or_above = FROM
            }
        }
        OR = {
            ROOT = { has_claim = PREV }
            ROOT = {
                is_female = no
                mother = { has_claim = PREVPREV }
            }
        }
    }
 
Last edited: