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

Andrew0Red

Major
Mar 10, 2021
516
427
I can't seem to get a targeted decision to appear for non-de jure vassals but not de jure. Any suggestions?


Code:
        only_playable = yes
        filter = vassals                # Only those under me
        ai_target_filter = vassals        # Only those under me
        ai_check_interval = 60

        from_potential = {
            is_playable = yes
        }
        
        potential = {
            vassal_of = FROM
            is_ruler = yes
            is_landed = yes
            NOT = { de_jure_liege_or_above = FROM }
        }
        allow = {
            FROM = { prestige = 100 }
        }
 

Whizzer

CKPlus Triumvirate
77 Badges
Jun 17, 2014
1.617
789
  • Semper Fi
  • Hearts of Iron III Collection
  • Heir to the Throne
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Leviathan: Warships
  • The Kings Crusade
  • Magicka
  • Victoria: Revolutions
  • Rome Gold
  • Cities in Motion
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron III
  • A Game of Dwarves
  • Cities in Motion 2
  • Crusader Kings II
  • 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: Sword of Islam
  • Dungeonland
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis III
  • Divine Wind
  • Hearts of Iron III: Their Finest Hour
  • For the Motherland
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Conclave
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • War of the Roses
  • Crusader Kings III
  • Europa Universalis IV
NOT = { character = FROM } in potential = {}. Don't you just love all that bugged stuff Paradox created and didn't test fully?
 

Andrew0Red

Major
Mar 10, 2021
516
427
Oh yes. :)

And as far as I can see, it works now!


Code:
targeted_decisions = {
    release_as_tributary = {
        ai = no        # Since they never release anybody anyway
        only_playable = yes
        filter = vassals

        from_potential = {
            is_playable = yes
        }
        
        potential = {
            vassal_of = FROM
            is_ruler = yes
            is_landed = yes
            primary_title = { NOT = { de_jure_liege_or_above = FROM } }
            NOT = { character = FROM }
        }
        allow = {
            FROM = { prestige = 100 }
        }
        effect = {
            set_defacto_liege = this
            # Should add opinion-bonus, but meh
            FROM = { prestige = -100 }    # Ought to scale with tier, but meh
            FROM = {
                make_tributary = {
                    who = ROOT
                    percentage = 0.20
                    tributary_type = permanent
                }
            }
        }
        ai_will_do = {
            factor = 0
        }
    }
}