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

Dracko81

Field Marshal
88 Badges
Jun 13, 2012
7.030
1.950
  • Tyranny: Archon Edition
  • Magicka
  • March of the Eagles
  • A Game of Dwarves
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Supreme Ruler 2020
  • Pirates of Black Cove
  • Victoria 2: A House Divided
  • Warlock: Master of the Arcane
  • Warlock 2: The Exiled
  • Age of Wonders III
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • Stellaris: Synthetic Dawn
  • Pillars of Eternity
  • Tyranny: Archon Edition
  • Stellaris
  • Crusader Kings II: The Republic
  • Ancient Space
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Impire
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Heir to the Throne
  • Hearts of Iron III
  • For The Glory
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Surviving Mars
  • Divine Wind
  • Europa Universalis III
  • Darkest Hour
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Stellaris: Necroids
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
Sorry, but someone had to find one loophole. :)

Code:
#Death of a good son
character_event = {
	id = 24502
	desc = "EVTDESC24502"
	picture = GFX_evt_death
	
	is_triggered_only = yes

	only_men = yes
	min_age = 15
	
	trigger = {
		is_primary_heir = yes
		martial = 8
		stewardship = 8
		
		father = {
			is_alive = yes
			is_ruler = yes
			NOT = { trait = stressed }
		}
		any_sibling = {
			is_female = no
			is_alive = yes
			NOT = { martial = 8 }
		}
	}
	
	option = {
		name = "EVTOPTA24502"
		father = { character_event = { id = 24503 days = 128 tooltip = EVTTOOLTIP24503 } }
	}
}

# and what happens first...
character_event = {
	id = 24503
	desc = "EVTDESC24503"
	picture = GFX_evt_death

	is_triggered_only = yes 
	
	option = {
		name = "EVTOPTA24503"
		trigger = {
			is_married = yes
			spouse = { 
				NOT = { age = 30 } 
				is_pregnant = no
			}
		}
		character_event = { id = 24504 days = 2 tooltip = EVTTOOLTIP24504 }
	}
	
	option = {
		name = "EVTOPTB24503"
		random_child = {
			limit = { 
				is_female = no
				is_alive = yes
				NOT = { martial = 8 }
			}
			random_list = {
				90 = {
					add_trait = craven
				}
				10 = {
					add_trait = brave
				}
			}			
		}
	}	
}

#and the final part...
character_event = {
	id = 24504
	desc = "EVTDESC24504"
	picture = GFX_evt_death

	is_triggered_only = yes 
	
	option = {
		name = "EVTOPTA24504"
		spouse = {
			impregnate = prev 
			add_trait = stressed
		}
	}
}

18593BE6BB5DA8609D8828FE488688972613E624


9AD7E2AD66D103F24B2130292A80AC6BB8BEA38A


D5ABAC0CB585524F1482172A7B4850E83F56C36B


7FE4E12B1864B2AC3DC775E2E591D43352111616
 
Upvote 0

jordarkelf

01_TITLE_STRING
164 Badges
Jul 13, 2005
8.040
647
erbkaiser.nl
  • Impire
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Galactic Assault
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III Complete
  • Iron Cross
  • King Arthur II
  • Knights of Pen and Paper +1 Edition
  • Lead and Gold
  • Legio
  • Leviathan: Warships
  • The Kings Crusade
  • Lost Empire - Immortals
  • Magicka
  • Majesty 2
  • Victoria 3 Sign Up
  • Crusader Kings II: Sons of Abraham
  • Ancient Space
  • Hearts of Iron Anthology
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • 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
  • A Game of Dwarves
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • Darkest Hour
  • Deus Vult
  • Diplomacy
  • Dungeonland
  • East India Company
  • East India Company Collection
  • Europa Universalis III
Also:
450 in birth_events.txt (doesn't check for either trait or fertility),
30075 & 30105 in married_life_events.txt (doesn't check for the male courtier).

All other events with impregnate as an effect check for at least positive fertility.
 

Dracko81

Field Marshal
88 Badges
Jun 13, 2012
7.030
1.950
  • Tyranny: Archon Edition
  • Magicka
  • March of the Eagles
  • A Game of Dwarves
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Supreme Ruler 2020
  • Pirates of Black Cove
  • Victoria 2: A House Divided
  • Warlock: Master of the Arcane
  • Warlock 2: The Exiled
  • Age of Wonders III
  • Stellaris: Galaxy Edition
  • Cities: Skylines Deluxe Edition
  • Stellaris: Synthetic Dawn
  • Pillars of Eternity
  • Tyranny: Archon Edition
  • Stellaris
  • Crusader Kings II: The Republic
  • Ancient Space
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Impire
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Heir to the Throne
  • Hearts of Iron III
  • For The Glory
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Conquest of Paradise
  • Surviving Mars
  • Divine Wind
  • Europa Universalis III
  • Darkest Hour
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Stellaris: Necroids
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
Also:
450 in birth_events.txt (doesn't check for either trait or fertility),
30075 & 30105 in married_life_events.txt (doesn't check for the male courtier).

All other events with impregnate as an effect check for at least positive fertility.

Agree with 30075, but 30105:

Code:
character_event = {
	id = 30105
	desc = "EVTDESC30105"
	picture = "GFX_evt_pregnancy"
	
	only_women = yes
	capable_only = yes
	prisoner = no
	max_age = 40
	min_age = 20
	
	is_triggered_only = yes
	
	trigger = {
		has_lover = no
		spouse = {
			war = no
			in_command = no
			is_abroad = no
			at_location = ROOT
			prisoner = no
			is_alive = yes
			NOT = {
				num_of_children = 1
			}
			NOT = {
				fertility = 0.5
			}
		}
		is_pregnant = no
		fertility = 0.3
		NOT = {
			num_of_children = 1
		}
		any_courtier = {
			reverse_opinion = { who = ROOT value = 40 }
			is_female = no
			fertility = 0.5
			has_lover = no
		}
		NOT = {
			has_character_modifier = suitable_father_timer
		}
	}
	
	mean_time_to_happen = {
		days = 1
		
		modifier = {
			factor = 3
			has_ambition = obj_have_a_daughter
		}
		modifier = {
			factor = 0.5
			trait = chaste
		}
		modifier = {
			factor = 3
			has_ambition = obj_have_a_son
		}
	}
	
	immediate = {
		hidden_tooltip = {
			add_character_modifier = {
				name = suitable_father_timer
				duration = 365
				hidden = yes
			}
		}
	}
	
	option = {
		name = "EVTOPTA30105"
		ai_chance = { factor = 80 }
		piety = -15
		random_courtier = {
			limit = {
				reverse_opinion = { who = ROOT value = 40 }
				age = 20
				NOT = {
					age = 35
				}
				is_female = no
				NOT = {
					trait = chaste
				}
				NOT = {
					trait = celibate
				}
				NOT = {
					family = ROOT
				}
				is_close_relative = no
				has_lover = no
			}
			add_lover = ROOT
			random = {
				chance = 15
				
				impregnate = ROOT
			}
		}
	}
	option = {
		name = "EVTOPTB30105"
		piety = 10
	}
}

Checks the courtiers fertilty in the trigger but does not check it again in the impregnate option. Thus meaning it can pick another courtier that was not the courtier that triggered the event.


In regards to event 450, I can not get it to trigger with a Eunuch liege. Even force firing the event shows a red cross meaning it will not trigger. I suspect there is something within the code stopping this event probably:

Code:
is_valid_attraction = ROOT

This does not show up in the console on the force firing so I suspect it does not trigger with this event.
 
Last edited: