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

richvh

Preserver of the Light
63 Badges
Dec 1, 2001
14.691
1.999
Visit site
  • Stellaris: Leviathans Story Pack
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Tyranny: Gold Edition
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • Age of Wonders: Shadow Magic
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Call to arms event
  • 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: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • A Game of Dwarves
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Magicka
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Rome Gold
  • Rome: Vae Victis
  • 500k Club
  • Cities: Skylines
In the on_success section of the pagan_subjugation CB is this block of code:
Code:
        any_demesne_title = {
           limit = {
             higher_tier_than = ROOT
           }
           ROOT = { grant_title = { target = PREV type = invasion } }
           add_pressed_claim = PREV
           set_character_flag = had_higher_titles
         }
You can't set a character flag in a title scope. I believe the set_character_flag should be moved into a different scope. I would recommend rewriting it like this:
Code:
if = {
   limit = {
      any_demesne_title = {
         higher_tier_than = ROOT
      }
   }
   set_character_flag = had_higher_titles
   any_demesne_title = {
      limit = {
         higher_tier_than = ROOT
      }
      ROOT = { grant_title = { target = PREV type = invasion } }
      add_pressed_claim = PREV
   }
}
or like this:
Code:
any_demesne_title = {
   limit = {
      higher_tier_than = ROOT
   }
   ROOT = { grant_title = { target = PREV type = invasion } }
   add_pressed_claim = PREV
   PREV = { set_character_flag = had_higher_titles }
}
(The first potentially evaluates any_demesne_title twice, the second potentially sets the flag multiple times.)

Edit: Looking more closely at a larger block,
Code:
    FROM = {
       piety = -100
       prestige = -100
       
       if = {
         limit = {
           is_reformed_religion = ROOT
           controls_religion = no
         }
         religion = ROOT # Reformed pagans are forced to convert back
       }
       
       custom_tooltip = {
         text = tribal_subjugation_tip
       }
         
       hidden_tooltip = {
         set_defacto_liege = ROOT
         
         any_demesne_title = {
           limit = {
             higher_tier_than = ROOT
           }
           ROOT = { grant_title = { target = PREV type = invasion } }
           add_pressed_claim = PREV
           set_character_flag = had_higher_titles
         }
         
         if = {
           limit = {
             has_character_flag = had_higher_titles
           }
           set_defacto_liege = ROOT
           clr_character_flag = had_higher_titles
           break = yes
         }
         
         any_demesne_title = {
           limit = {
             tier = ROOT
           }
           ROOT = { grant_title = { target = PREV type = invasion } }
           add_pressed_claim = PREV
         }
         set_defacto_liege = ROOT
       }
     }
can be simplified to the following without changing functionality:
Code:
    FROM = {
       piety = -100
       prestige = -100
       
       if = {
         limit = {
           is_reformed_religion = ROOT
           controls_religion = no
         }
         religion = ROOT # Reformed pagans are forced to convert back
       }
       
       custom_tooltip = {
         text = tribal_subjugation_tip
       }
         
       hidden_tooltip = {
         any_demesne_title = {
           limit = {
             higher_tier_than = ROOT
           }
           ROOT = { grant_title = { target = PREV type = invasion } }
           add_pressed_claim = FROM
         }  
         any_demesne_title = {
           limit = {
             tier = ROOT
           }
           ROOT = { grant_title = { target = PREV type = invasion } }
           add_pressed_claim = FROM
         }
         set_defacto_liege = ROOT
       }
     }
 
Last edited:
Upvote 0