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

Sleight of Hand

retired modder
On Probation
14 Badges
Feb 14, 2012
12.114
5.867
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • Hearts of Iron III
  • March of the Eagles
  • Europa Universalis IV
  • Victoria 2
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Steel Division: Normand 44 Sign-up
Specifically I mean if Castille-León (custom titular kingdom) exists then Castille and León (de jure kingdoms) can't be formed? During tests sometimes powerful dukes will re-create these two kingdoms when actually I don't want them to re-appear once they are merged into one kingdom after 1230.

I know there are some triggers you can use in landed_titles.txt but I only know of the ones for Jerusalem and Finland.
 

Reilnur

Second Lieutenant
72 Badges
Feb 15, 2010
164
6
  • Crusader Kings II
  • Pillars of Eternity
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Sengoku
  • Rome Gold
  • Europa Universalis: Rome
  • Magicka
  • Lead and Gold
  • Heir to the Throne
  • For The Glory
  • A Game of Dwarves
  • Europa Universalis III Complete
  • 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
  • Darkest Hour
  • Dungeonland
  • Europa Universalis III
  • Divine Wind
  • Cities: Skylines - After Dark
  • Surviving Mars
  • Age of Wonders III
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Jade Dragon
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Holy Knight (pre-order)
  • Stellaris: Necroids
  • 500k Club
  • War of the Roses
  • The Showdown Effect
  • Europa Universalis III Complete
  • Europa Universalis III Complete
Specifically I mean if Castille-León (custom titular kingdom) exists then Castille and León (de jure kingdoms) can't be formed? During tests sometimes powerful dukes will re-create these two kingdoms when actually I don't want them to re-appear once they are merged into one kingdom after 1230.

I know there are some triggers you can use in landed_titles.txt but I only know of the ones for Jerusalem and Finland.

Pretty sure the Kingdom of Khazaria has such a trigger. You could check that one out for an example.
 

Sleight of Hand

retired modder
On Probation
14 Badges
Feb 14, 2012
12.114
5.867
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • Hearts of Iron III
  • March of the Eagles
  • Europa Universalis IV
  • Victoria 2
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: Pre-order
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Steel Division: Normand 44 Sign-up
Good call, I hadn't seen that.

It does say 'Creation/Usurp Trigger' and 'always =no' though... and I don't mind Castille and León being usurped or created normally, just not after Castille-León exists.

So I'm not sure it's exactly what I want.
 

Wizzington

Game Director (Victoria 3)
Paradox Staff
41 Badges
Nov 15, 2007
12.513
137.622
  • Hearts of Iron II: Armageddon
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars II
  • Sengoku
  • Europa Universalis: Rome
  • Victoria: Revolutions
  • Europa Universalis III Complete
  • March of the Eagles
  • Majesty 2
  • Magicka
  • Heir to the Throne
  • Arsenal of Democracy
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis III Complete
  • Deus Vult
  • East India Company
  • Europa Universalis III
  • Divine Wind
  • For The Glory
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III Collection
  • Prison Architect
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Stellaris: Humanoids Species Pack
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Mount & Blade: Warband
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2
allow = {
NOT = { k_castille_leon = { holder_scope = { is_alive = yes } } }
}

Something like that is what you want (replace k_castille_leon with whatever the title code is if it's not that)
 

Adohleas

Second Lieutenant
24 Badges
Nov 9, 2010
129
0
  • Crusader Kings II
  • Magicka
  • Mount & Blade: Warband
  • Prison Architect
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Crusader Kings Complete
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris
  • Knights of Pen and Paper 2
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Warlock: Master of the Arcane
  • Victoria 2
  • Crusader Kings II: Sons of Abraham
  • Lead and Gold
  • Knights of Pen and Paper +1 Edition
  • Stellaris: Synthetic Dawn
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Republic
  • Crusader Kings II: Legacy of Rome
allow = {
NOT = { k_castille_leon = { holder_scope = { is_alive = yes } } }
}

Something like that is what you want (replace k_castille_leon with whatever the title code is if it's not that)

That actually will not work, landed_titles.txt will skip over anything that checks for a landed titles, so all that script will check is NOT = { = { holder_scope = { is_alive = YES}}}, and will end up always preventing you from creating a Kingdom of Castille or Leon even if k_castille_leon exist or not.

The only way to get around it that I know of is through an event that triggers if k_castille_leon exist:

Code:
k_castille = { 
	color={ 243 209 23 }
	color2={ 200 80 10 }
	capital = 199 # Burgos
	culture = castillan
	allow = {
			NOT = { has_global_flag = Cas_leon }
		}
Code:
character_event = {
	id = 99958
	desc = "Castille Leon exist"
	
	trigger = {
		AI = YES
		NOT = { has_global_flag = Cas_leon }
		k_castille_leon = { has_holder = yes }
		
	}
		
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "Add Flag"
		set_global_flag = Cas_leon
	}
}
character_event = {
	id = 99959
	desc = "Castille Leon  does not exists"
	
	trigger = {
		AI = YES
		has_global_flag = Cas_leon
		k_castille_leon = { has_holder = no }
		
	}
		
	mean_time_to_happen = {
		days = 1
	}
	
	option = {
		name = "Remove flag"
		clr_global_flag = Cas_leon
	}
}

Also add that flag into Leon too. If someone has all the requirements, the button to create will still be greyed out if someone owns Castille Leon, even though it will show you meet all the requirements. Also this method it may take more then one day for the event to trigger, it can be a few days or a game week before the event triggers(You wont see the event yourself), but it should trigger extremely fast. If the Kingdom is created through a decision, then you can add that flag in the decision as well to make it instant.

Edit: Woops forgot to change the second event to another number.
 
Last edited: