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

slothinator

Colonel
55 Badges
Oct 20, 2016
1.022
970
  • Stellaris: Distant Stars
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Europa Universalis 4: Emperor
  • Victoria 3 Sign Up
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
Hi all,
I've been trying to mod the holy war CB so that the targeted duchy becomes an independent tributary instead of being absorbed into your realm.
To do this I took a lot of inspiration from the kingdom liberation cb and I didn't expect much trouble.
Strangely enough, when I have yesmen enabled, my CB works as intended but, when I don't, it just ends the war without any territorial changes. I've been wracking my brain for a week now and I can't think of anything else to try. If someone has some advice I would love to hear it.

In the spoiler is my code for the on_success_title section, otherwise, the other sections of the CB are identical to the holy war CB.

Thanks for your help!

Code:
on_success_title = {
        create_character = {
            religion = ROOT
            culture = ROOT
            dynasty = random
            random_traits = yes
            female = no
            age = 20
            health = 7
            fertility = 0.7
            attributes = {
                martial = 10
                diplomacy = 10
                stewardship = 10
            }
            flag = is_religious_liberation_ruler
        }
        new_character = {
            remove_trait = cynical
            add_trait = zealous
            wealth = 250
            prestige = 250
            piety = 250
            save_event_target_as = new_ruler
            set_defacto_liege = THIS
        }
        if = {
            limit = {
                has_holder = no
            }
            usurp_title = { target = event_target:new_ruler type = invasion }
        }
        else = {
            event_target:new_ruler = {
                create_title = {
                    tier = DUKE
                    landless = no
                    temporary = no
                    custom_created = yes
                    culture = event_target:new_ruler
                    holder = event_target:new_ruler
                    name = "LIBERATED_KINGDOM"
                    base_title = PREV
                }
            }
        }

        FROM = {
            random_realm_title = {
                limit = {
                    tier = COUNT
                    duchy = { title = PREVPREVPREV }
                }
                location = {
                    event_target:new_ruler = {
                        usurp_title = { target = PREVPREV type = invasion }
                    }
                }
            }
        }

        event_target:new_ruler = {
                vassalize_or_take_under_title = {
                    title = PREV
                    enemy = FROM
                    same_religion = yes # Only vassalize rulers of my religion
                    is_religious = yes
                    type = holy_war
                }
            }
        ROOT = { make_tributary = { who = event_target:new_ruler tributary_type = default }}
    }