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

Blackhammer99

Private
15 Badges
Jun 25, 2013
17
0
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Magicka
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Crusader Kings II: Monks and Mystics
  • Knights of Honor
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
Hey everyone!
I am trying to increase the breath of the Reconquista mechanic to include parts of southern france, as often I saw Islam expanding into that area.

I have made a modification that I believe to be sound, but it doesn't work, so I am hoping to have a set of fresh eyes point out something I am missing.

Here is my CB edit.

Code:
# France Test #
reconquista_aquitaine = {
    name = CB_NAME_RECONQUISTA_AQUITAINE
    war_name = WAR_NAME_RECONQUISTA_AQUITAINE
    diplo_view_region = custom_aquitaine
    sprite = 9
    truce_days = 3650
    is_permanent = yes
    is_holy_war = yes
    attacker_rel_head_is_ally = yes
    battle_warscore_mult = 0.5
    #max_defender_occupation_score = 85
    allow_whitepeace = no

    allowed_to_target_tributaries = yes
    can_ask_to_join_war = yes

    sort_priority = 10000

    can_use_gui = {
        ROOT = {
            prisoner = no
            is_adult = yes
        }
    }

    can_use = {
        ROOT = {
            has_character_flag = currently_reconquering_iberia
            not_reconquista_check_trigger = yes
        
            any_realm_province = {
                OR = {
                    AND = {
                        any_neighbor_province = {
                            region = custom_aquitaine
                        }
                    }
                    AND = {
                        NOT = {
                            any_neighbor_province = {
                                region = custom_aquitaine
                            }
                        }
                        NOT = {
                            any_neighbor_province = {
                                region = world_europe_west_francia
                                owner = {
                                    OR = {
                                        AND = {
                                            independent = yes
                                            NOT = {
                                                religion_group = christian
                                            }
                                        }
                                        top_liege = {
                                            NOT = {
                                                religion_group = christian
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        any_neighbor_province = {
                            any_neighbor_province = {
                                region = custom_aquitaine
                            }
                        }
                    }
                    AND = {
                        NOR = {
                            any_neighbor_province = {
                                region = custom_aquitaine
                            }
                            any_neighbor_province = {
                                any_neighbor_province = {
                                    region = custom_aquitaine
                                }
                            }
                        }
                        NOT = {
                            any_neighbor_province = {
                                any_neighbor_province = {
                                    region = world_europe_west_francia
                                    owner = {
                                        OR = {
                                            AND = {
                                                independent = yes
                                                NOT = {
                                                    religion_group = christian
                                                }
                                            }
                                            top_liege = {
                                                NOT = {
                                                    religion_group = christian
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }

                        any_neighbor_province = {
                            any_neighbor_province = {
                                any_neighbor_province = {
                                    region = custom_aquitaine
                                }
                            }
                        }
                    }
                }
            }

            conditional_tooltip = {
                trigger = {
                    ai = yes
                }

                NOT = {
                    has_character_modifier = reconquista_preparation_duration
                }
            }
        }

        FROM = {
            any_realm_province = {
                region = custom_aquitaine
            }
            NOT = {
                religion_group = ROOT
            }
        }
    }

    is_valid = {
        ROOT = {
            show_scope_change = no
            custom_tooltip = {
                text = reconquista_valid_TT

                has_character_flag = currently_reconquering_iberia
            }
        }
        custom_tooltip = {
            text = reconquista_valid_2_TT

            FROM = {
                NOT = {
                    religion_group = ROOT
                }
            }
        }
    }

    on_add = {
        custom_tooltip = { text = add_allies_reconquista_TT }
        ROOT = {
            character_event = { id = HF.49210 }
        }
    }

    on_success = {

        d_aquitaine = {
            save_event_target_as = first_duchy_title
        }
        d_gascogne = {
            save_event_target_as = second_duchy_title
        }
        reconquista_win_effect = yes
    }

    on_reverse_demand = {
        reconquista_lose_effect = yes
    }

    on_invalidation = {
        ROOT = {
            character_event = { id = HF.49200 }
        }
    }

    attacker_ai_victory_worth = {
        factor = -1
    }

    attacker_ai_defeat_worth = {
        factor = 100
    }

    defender_ai_victory_worth = {
        factor = -1
    }

    defender_ai_defeat_worth = {
        factor = 100
    }
}

I added this in Geographical_region.txt

Code:
custom_aquitaine = {
    duchies = {
        d_aquitaine d_gascogne
    }
}

And I added this localisation to the HolyFury.csv

CB_NAME_RECONQUISTA_AQUITAINE;Reconquest of Aquitaine;Reconquête de la Aquitaine;Rückeroberung Aquitaine;;Reconquista de Aquitaine;;;;;x
WAR_NAME_RECONQUISTA_AQUITAINE;$ORDER$Reconquest War for Aquitaine;$ORDER$Guerre de reconquête pour Aquitaine;$ORDER$er Rückeroberungskrieg von Aquitaine;;$ORDER$Guerra de Reconquista de Aquitaine;;;;;x

If I'm honest, the CB portion doesn't make a ton of sense to me. I can't understand much of the logic, so I just literally copy/pasted from a previous reconquest CB and changed the regions as appropriates.
I left the flag, as I believe that has no baring on it, as long as it fires from the Decision to start preparing for reconquest right?

Also, as an aside, I can't understand the logic that allows you to be multiple counties away and still declare reconquest CB for a specific.
For example, in my tests, I take land in the duchy of Aquitaine, and I can use the CB for navarre, but not the one I made etc.
Where is that logic stored and is there any way to expand the reach, so just in case I can get this working I can make it easier for France etc to be able to declare to reconquest.

Thanks if anyone can help!