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

Kazmir

Keeping the ship on course
56 Badges
Aug 10, 2007
2.812
41
  • Europa Universalis III
  • Cities: Skylines - Snowfall
  • Victoria: Revolutions
  • Victoria 2: A House Divided
  • Europa Universalis III Complete
  • Stellaris
  • Europa Universalis III Complete
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Deus Vult
  • Cities: Skylines - After Dark
  • Pillars of Eternity
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Third Rome
  • Hearts of Iron Anthology
  • Crusader Kings II
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Holy Fury
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • Imperator: Rome
  • 500k Club
  • Mount & Blade: Warband
  • Victoria 2
  • Crusader Kings III
  • Imperator: Rome Sign Up
  • 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: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Victoria 2: Heart of Darkness
My problem conserns the DVIP 'break_free' event which causes vassals of different cultures, located in different regions to brake free. I simply want to add a line which prevents this event from firing if the two rulers are of same dynasty.

Since my modding skills are... limited :)oo) what do I need to do?

Here's the beginning of the event's text:

Code:
character_event = {
	id = 1979080
	picture = "event_claim"
	trigger = {
		condition = { type = ruler }
		condition = { type = is_vassal }
		condition = { type = age value = 18 }
		condition = { type = not value = { type = form_of_goverment value = ecclestical } } # Bishoprics remain loyal
		condition = { type = not value = { type = atwar } }
		condition = { type = not value = { type = trait value = loyalist } }
		condition = { type = not value = { type = trait value = rebellious } }
		condition = { type = liege
			condition = { type = not value = { type = is_friend } }
			condition = { type = not value = { type = prestige value = 5000 } }
			condition = { type = not value = { type = trait value = emperor } }
			#condition = { type = ai } # AI liege only -- comment out if you want to play fair
		}
 

Gulluoglu

Sergeant
62 Badges
Apr 30, 2008
74
0
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Common Sense
  • Humble Paradox Bundle
  • Europa Universalis IV: Res Publica
  • Knights of Pen and Paper +1 Edition
  • Impire
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • East India Company
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II
  • Europa Universalis III
  • Stellaris: Leviathans Story Pack
  • Prison Architect
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Megacorp
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Stellaris: Nemesis
  • Stellaris: Ancient Relics
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Victoria 2
I'm not sure if you can do a check which will look at the entire dynastic tree, unfortunately. There may be some condition that I am unfamiliar with yet, though.

With my understanding of the script, I think you can at least prevent this event from firing if your distant landholder is either your primary heir or one of your current ruler's sons/daughters by changing what you posted to the following:

Code:
character_event = {
	id = 1979080
	picture = "event_claim"
	trigger = {
		condition = { type = ruler }
		condition = { type = is_vassal }
		condition = { type = age value = 18 }
		condition = { type = not value = { type = form_of_goverment value = ecclestical } } # Bishoprics remain loyal
		condition = { type = not value = { type = atwar } }
		condition = { type = not value = { type = trait value = loyalist } }
		condition = { type = not value = { type = trait value = rebellious } }
		condition = { type = not value = { type = primary_heir } }    # <--- added - primary heirs won't rebel
		condition = { type = liege
			condition = { type = not value = { type = is_friend } }
			condition = { type = not value = { type = father } }    # <---- added - children won't rebel
			condition = { type = not value = { type = prestige value = 5000 } }
			condition = { type = not value = { type = trait value = emperor } }
			#condition = { type = ai } # AI liege only -- comment out if you want to play fair
		}

Edit: In hindsight, the problem with this is that the ai is less likely to break apart realms, since they regularly replace counts/dukes with their sons.
 

Kazmir

Keeping the ship on course
56 Badges
Aug 10, 2007
2.812
41
  • Europa Universalis III
  • Cities: Skylines - Snowfall
  • Victoria: Revolutions
  • Victoria 2: A House Divided
  • Europa Universalis III Complete
  • Stellaris
  • Europa Universalis III Complete
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Deus Vult
  • Cities: Skylines - After Dark
  • Pillars of Eternity
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Third Rome
  • Hearts of Iron Anthology
  • Crusader Kings II
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Holy Fury
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • Imperator: Rome
  • 500k Club
  • Mount & Blade: Warband
  • Victoria 2
  • Crusader Kings III
  • Imperator: Rome Sign Up
  • 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: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Stellaris: Galaxy Edition
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Victoria 2: Heart of Darkness