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

EightDeer

Major
191 Badges
Sep 19, 2006
508
10
  • Hearts of Iron 4: Arms Against Tyranny
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Stellaris: Nemesis
  • Age of Wonders II
  • 200k Club
  • 500k Club
  • Humble Paradox Bundle
  • Paradox Order
  • Diplomacy
  • Hearts of Iron Anthology
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II
  • Crusader Kings II: Limited Collectors Edition
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
  • Crusader Kings III Referal
  • Crusader Kings III
I'm trying to make the realm ruler's stability value change the MTTH of event #5100; the intention is that vassals would be affected by the state of the liege's realm.

Two questions about the code at the end of this post: Will this affect independent rulers, and if so how can I make it apply only to vassals?


The code:
Code:
		modifier = {
			condition = { type = realm_ruler 
				condition = { type = stability value = 1 }
				condition = { type = not value = { type = stability value = 2 } }
			}
			factor = 0.9
		}
		modifier = {
			condition = { type = realm_ruler 
				condition = { type = stability value = 2 }
				condition = { type = not value = { type = stability value = 3 } }
			}
			factor = 0.8
		}
		modifier = {
			condition = { type = realm_ruler 
				condition = { type = stability value = 3 }
			}
			factor = 0.7
		}
		modifier = {
			condition = { type = realm_ruler 
				condition = { type = stability value = -1 }
				condition = { type = not value = { type = stability value = -2 } }
			}
			factor = 1.1
		}
		modifier = {
			condition = { type = realm_ruler 
				condition = { type = stability value = -2 }
				condition = { type = not value = { type = stability value = -3 } }
			}
			factor = 1.2
		}
		modifier = {
			condition = { type = realm_ruler 
				condition = { type = stability value = -3 }
			}
			factor = 1.3
		}
 
Last edited: