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

stars2heaven

Major
39 Badges
Aug 17, 2012
552
136
  • Crusader Kings II
  • Warlock 2: The Exiled
  • Crusader Kings II: Jade Dragon
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Age of Wonders III
  • Crusader Kings II: Conclave
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Crusader Kings II: Horse Lords
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • 500k Club
  • Warlock: Master of the Arcane
  • Stellaris
  • Europa Universalis IV
  • 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: Call to arms event
  • Magicka
  • Stellaris: Synthetic Dawn
I've been working on scripts that add both duchy titles to kingdom titles and kingdom to empires. I had success with the former but, when using the same scripts for the latter, they didn't seem to do anything.

This is an example of the option section of the event that triggers to make your kingdom the de jure liege of your duchy. This works fine.

Code:
option = {
		name = "EVTOPTA66669"
		if = {
			limit = {
				tier = KING
			}
			primary_title = {
				ROOT = {
					any_demesne_title = { 
						limit = { 
							tier = DUKE
						}
						de_jure_liege = PREVPREV
					}
                               }
                    }
          }
}

Here is an example of the portion that is supposed to make your empire the de jure liege of a kingdom.

Code:
option = {
		name = "EVTOPTA66669"
		
		if = { 
			limit = { 
				tier = EMPEROR 
			}
			primary_title = {
				ROOT = { 
					any_realm_title = {
						limit = { 
							tier = KING
							}
					de_jure_liege = PREVPREV	
					}	
				}
			}
		}
	}

They both work off of the exact same trigger for the event. When the one for the duchy fires, whatever duchies there are become part of the kingdom. Whenever the one for the kingdom fires, an option shows that you can click but nothing happens.

If this is a bug could it be fixed please? If it is not a bug could it be...fixed, please?
 
Last edited:
Upvote 0

Maui

Second Lieutenant
36 Badges
Jun 27, 2012
195
49
  • Crusader Kings II: Legacy of Rome
  • Sengoku
  • Semper Fi
  • Rome Gold
  • Europa Universalis IV: Res Publica
  • Crusader Kings II
  • Heir to the Throne
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Apocalypse
  • Age of Wonders III
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Rome: Vae Victis
  • Europa Universalis III Complete
  • Europa Universalis III Complete
I'm not much of a CK2 scripter... But I can see that those two scripts do not have the same functions.

Unless "any_realm_title" and "any_demesne_title" are the same thing.
 

stars2heaven

Major
39 Badges
Aug 17, 2012
552
136
  • Crusader Kings II
  • Warlock 2: The Exiled
  • Crusader Kings II: Jade Dragon
  • Stellaris Sign-up
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Age of Wonders III
  • Crusader Kings II: Conclave
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Crusader Kings II: Horse Lords
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • 500k Club
  • Warlock: Master of the Arcane
  • Stellaris
  • Europa Universalis IV
  • 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: Call to arms event
  • Magicka
  • Stellaris: Synthetic Dawn
any_realm_title will scope out any title in your entire realm, including those owned by vassals, and the other scopes only what you have in your personal demesne. The difference here is not important. You could even swap them and the results would be the same. The trigger that they have that is identical comes before this. I didn't post it as it's also not important. It only fires the event.