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

lothar_82

Private
97 Badges
Apr 11, 2018
15
7
  • Crusader Kings Complete
  • Crusader Kings II
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Holy Fury
  • Crusader Kings III
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Golden Century
  • Europa Universalis 4: Emperor
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Imperator: Rome
  • Imperator: Rome - Magna Graecia
  • Stellaris
  • Stellaris: Megacorp
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Cities: Skylines Deluxe Edition
I've been trying to create a title decision that would allow me to change a kingdom's prefix to Principality. I haven't been able to get the decision to change the prefix, so any help would be appreciated.

Code:
designate_principality = {
    from_potential = {
        ai = no
        independent = yes
    }
    
    potential = {
        real_tier = KING
        holder_scope = {
            same_realm = FROM
        }
        
        NOT = {
            ROOT = {
                has_title_flag = designated_principality
            }
        }
    }
    
    allow = {
        FROM = {
            primary_title = {
                real_tier = EMPEROR
            }
            wealth = 200
            prestige = 500
        }
    }
    
    effect = {
        ROOT = {
            title = KINGPRINCE
            title_prefix = KINGPRINCE_OF
            foa = KINGPRINCE_FOA
            set_title_flag = designated_principality
        }
        
        FROM = {
            wealth = -200
            prestige = -500
        }
    }
}
 
You can't change these title aspects this way. Your only bet is using customisable localisation, selecting the desired localisation key depending on which flag is set.
 
I wouldn't recommend customizable localisation for a title's name because the title window does not recognize it. I did not test for customisation localisation in the general localisation for title prefixes l but I would expect the same behavior. However, customizable localisation for character titles seems to work anywhere except on the call-to-war pop-up.

Your goal can possibly be accomplished by swapping the original kingdom title with a dynamic kingdom-tier "principality" title that copies the original title's name, history, laws, de jure vassals and de jure liege. To see how this is done you can read the code that turns the Byzantine Empire (e_byzantium) into the Roman Empire (e_roman_empire). To see how to create dynamic titles based on an existing title's name you can analyze what the devs did in event HFP.42100.