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

zoidberg

Sergeant
63 Badges
Jun 16, 2004
59
4
  • Arsenal of Democracy
  • Stellaris: Apocalypse
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Synthetic Dawn
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV
  • Cities: Skylines - After Dark
  • Crusader Kings III
  • Victoria 3 Sign Up
  • Crusader Kings II
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Holy Fury
  • Crusader Kings II: Conclave
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Jade Dragon
  • Crusader Kings Complete
  • Imperator: Rome
  • Imperator: Rome Sign Up
  • Surviving Mars
  • Stellaris
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Pre-order
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Wealth of Nations
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
In illness_events.txt I see stuff like this (abbreviated)

Code:
condition = { type = or
	condition = { type = and
		condition = { type = ruler }
		condition = { type = court value = 20 }
	}
	condition = { type = and
		condition = { type = not value = { type = ruler } }
		condition = { type = ruler_csc
			condition = { type = court value = 20 }
		}
	}
}

Does type = court really only work on the ruler? I've written some events that use type = court without the ruler_csc context selector, and they seem to work correctly even on non-rulers. I haven't tested exhaustively though. If it behaves correctly for both rulers and non-rulers, then the code above is kinda redundant. Am I missing something?
 
The point is that that event first checks whether the current character is a ruler and his court size is 20. If the current character is not a ruler, then it selects the ruler of the current character and checks court size there. So why is there the distinction between rulers and non-rulers? "type = court" should be identical in both cases, because both are at the same court.
 
Last edited:
Does type = ruler return true for an underage player character? If you have a 3-year old duke whose court is technically being ruled by his inbred, kinslaying excommunicated mother, then would the type = ruler return true if tested against the kid instead of his mother?

That might explain why it's written the way it is, to catch any ruler-type scenario.
 
court[size] only includes adults, but that wouldn't matter in that case. The courtsize never checks the ruler. I'm not sure if it even checks your kids. I heard it only checks the adult memebers at the bottom of the courtscreen.