plot_decisions = {
	faction_anti_centralization_bill = {
		is_high_prio = yes
		
		potential = {
			leads_faction = faction_anti_centralization
			NOT = { has_character_flag = flag_making_faction_ultimatum }
			faction_anti_centralization = { has_law = legislative_authority_1 }
		}
		
		allow = {
			prisoner = no
			faction_anti_centralization = { NOT = { has_law = centralization_0 } }
			liege = {
				OR = {
					has_regent = no
					regent = { in_faction = faction_anti_centralization }
				}
			}
			liege = {
				NOT = { war_with = ROOT }
				NOT = { reverse_has_truce = ROOT }
				NOT = { has_character_modifier = constitutional_crisis }
			}
			capital_holding = { controller = { character = ROOT } }
			# Must have a majority in the Senate
			liege = { check_variable = { which = "var_anti_centralization" value = 1 } }
		}
		
		effect = {
			set_character_flag = flag_making_faction_ultimatum
			set_character_flag = flag_sent_anti_centralization_ultimatum
			character_event = { id = laws.10000 tooltip = "EVTTOOLTIPLAWS10000" }
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_opinion_modifier = { who = liege modifier = opinion_lowered_crown_authority_good }
					has_opinion_modifier = { who = liege modifier = opinion_lowered_crown_authority_bad }
				}
			}
		}
	}
	faction_anti_centralization_demand = {
		is_high_prio = yes
		
		potential = {
			leads_faction = faction_anti_centralization
			NOT = { has_character_flag = flag_making_faction_ultimatum }
			NOT = { faction_anti_centralization = { has_law = legislative_authority_1 } }
		}
		
		allow = {
			prisoner = no
			faction_anti_centralization = { NOT = { has_law = centralization_0 } }
			liege = {
				OR = {
					has_regent = no
					regent = { in_faction = faction_anti_centralization }
				}
			}
			capital_holding = { controller = { character = ROOT } }
		}
		
		effect = {
			set_character_flag = flag_making_faction_ultimatum
			set_character_flag = flag_sent_anti_centralization_ultimatum
			character_event = { id = laws.10050 tooltip = "EVTTOOLTIPLAWS10050" }
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = {
					faction_power = {
						faction = faction_anti_centralization
						power = 1.0
					}
				}
				NOT = {
					any_realm_character = {
						has_minor_title = title_regent
						same_liege = ROOT
						NOT = { in_faction = faction_anti_centralization }
					}
				}
				NOT = {
					any_realm_character = {
						has_minor_title = title_prime_minister
						same_liege = ROOT
						NOT = { in_faction = faction_anti_centralization }
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					faction_power = {
						faction = faction_anti_centralization
						power = 2.0
					}
				}
				NOT = { trait = brave }
				NOT = {
					any_realm_character = {
						has_minor_title = title_regent
						same_liege = ROOT
						NOT = { in_faction = faction_anti_centralization }
					}
				}
				NOT = {
					any_realm_character = {
						has_minor_title = title_prime_minister
						same_liege = ROOT
						NOT = { in_faction = faction_anti_centralization }
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					faction_power = {
						faction = faction_anti_centralization
						power = 3.0
					}
				}
				trait = craven
				NOT = {
					any_realm_character = {
						has_minor_title = title_regent
						same_liege = ROOT
						NOT = { in_faction = faction_anti_centralization }
					}
				}
				NOT = {
					any_realm_character = {
						has_minor_title = title_prime_minister
						same_liege = ROOT
						NOT = { in_faction = faction_anti_centralization }
					}
				}
			}
			# Wait an average of five months to make sure this isn't just a fluke
			modifier = {
				factor = 0
				NOT = { trait = imbecile }
				NOT = { trait = slow }
				NOT = { trait = lunatic }
				NOT = { trait = carefree }
				random = 20
			}
			# The liege is defending in a war we'd rather they win
			modifier = {
				factor = 0
				liege = { reverse_has_opinion_modifier = { who = ROOT modifier = opinion_defending_my_titles } }
				NOT = { trait = lunatic }
			}
			modifier = {
				factor = 0
				liege = { reverse_has_opinion_modifier = { who = ROOT modifier = opinion_defending_vs_infidels } }
				NOT = { trait = pragmatic }
			}
		}
	}
	faction_pro_centralization_bill = {
		is_high_prio = yes
		
		potential = {
			leads_faction = faction_pro_centralization
			NOT = { has_character_flag = flag_making_faction_ultimatum }
			crownlaw_title = { has_law = legislative_authority_1 }
		}
		
		allow = {
			prisoner = no
			faction_pro_centralization = { NOT = { has_law = centralization_4 } }
			liege = {
				OR = {
					has_regent = no
					regent = { in_faction = faction_pro_centralization }
				}
			}
			liege = {
				NOT = { war_with = ROOT }
				NOT = { reverse_has_truce = ROOT }
				NOT = { has_character_modifier = constitutional_crisis }
			}
			capital_holding = { controller = { character = ROOT } }
			# Must have a majority in the Senate
			liege = { check_variable = { which = "var_pro_centralization" value = 1 } }
		}
		
		effect = {
			set_character_flag = flag_making_faction_ultimatum
			set_character_flag = flag_sent_pro_centralization_ultimatum
			character_event = { id = laws.10100 tooltip = "EVTTOOLTIPLAWS10100" }
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				OR = {
					has_opinion_modifier = { who = liege modifier = opinion_raised_crown_authority_good }
					has_opinion_modifier = { who = liege modifier = opinion_raised_crown_authority_bad }
				}
			}
		}
	}
	faction_pro_centralization_demand = {
		is_high_prio = yes
		
		potential = {
			leads_faction = faction_pro_centralization
			NOT = { has_character_flag = flag_making_faction_ultimatum }
			NOT = { crownlaw_title = { has_law = legislative_authority_1 } }
		}
		
		allow = {
			prisoner = no
			faction_pro_centralization = { NOT = { has_law = centralization_4 } }
			liege = {
				OR = {
					has_regent = no
					regent = { in_faction = faction_pro_centralization }
				}
			}
			liege = {
				NOT = { war_with = ROOT }
				NOT = { reverse_has_truce = ROOT }
				NOT = { has_character_modifier = constitutional_crisis }
			}
			capital_holding = { controller = { character = ROOT } }
		}
		
		effect = {
			set_character_flag = flag_making_faction_ultimatum
			set_character_flag = flag_sent_pro_centralization_ultimatum
			character_event = { id = laws.10150 tooltip = "EVTTOOLTIPLAWS10150" }
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = {
					faction_power = {
						faction = faction_pro_centralization
						power = 1.0
					}
				}
				NOT = {
					any_realm_character = {
						has_minor_title = title_regent
						same_liege = ROOT
						NOT = { in_faction = faction_pro_centralization }
					}
				}
				NOT = {
					any_realm_character = {
						has_minor_title = title_prime_minister
						same_liege = ROOT
						NOT = { in_faction = faction_pro_centralization }
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					faction_power = {
						faction = faction_pro_centralization
						power = 2.0
					}
				}
				NOT = { trait = brave }
				NOT = {
					any_realm_character = {
						has_minor_title = title_regent
						same_liege = ROOT
						NOT = { in_faction = faction_pro_centralization }
					}
				}
				NOT = {
					any_realm_character = {
						has_minor_title = title_prime_minister
						same_liege = ROOT
						NOT = { in_faction = faction_pro_centralization }
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					faction_power = {
						faction = faction_pro_centralization
						power = 3.0
					}
				}
				trait = craven
				NOT = {
					any_realm_character = {
						has_minor_title = title_regent
						same_liege = ROOT
						NOT = { in_faction = faction_pro_centralization }
					}
				}
				NOT = {
					any_realm_character = {
						has_minor_title = title_prime_minister
						same_liege = ROOT
						NOT = { in_faction = faction_pro_centralization }
					}
				}
			}
			# Wait an average of five months to make sure this isn't just a fluke
			modifier = {
				factor = 0
				NOT = { trait = imbecile }
				NOT = { trait = slow }
				NOT = { trait = lunatic }
				NOT = { trait = carefree }
				random = 20
			}
			# The liege is defending in a war we'd rather they win
			modifier = {
				factor = 0
				liege = { reverse_has_opinion_modifier = { who = ROOT modifier = opinion_defending_my_titles } }
				NOT = { trait = lunatic }
			}
			modifier = {
				factor = 0
				liege = { reverse_has_opinion_modifier = { who = ROOT modifier = opinion_defending_vs_infidels } }
				NOT = { trait = pragmatic }
			}
		}
	}
	faction_democratic_legislature_demand = {
		is_high_prio = yes
		
		potential = {
			leads_faction = faction_democratic_legislature
			NOT = { has_character_flag = flag_making_faction_ultimatum }
		}
		
		allow = {
			prisoner = no
			faction_democratic_legislature = { has_law = legislative_authority_0 }
			liege = {
				OR = {
					has_regent = no
					regent = { in_faction = faction_democratic_legislature }
				}
			}
			liege = {
				NOT = { war_with = ROOT }
				NOT = { reverse_has_truce = ROOT }
				NOT = { has_character_modifier = constitutional_crisis }
			}
			capital_holding = { controller = { character = ROOT } }
			NOT = { liege = { check_variable = { which = "var_abolish_legislature" value = 1 } } }
		}
		
		effect = {
			set_character_flag = flag_making_faction_ultimatum
			set_character_flag = flag_sent_democratic_legislature_ultimatum
			character_event = { id = laws.10250 tooltip = "EVTTOOLTIPLAWS10250" }
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = {
					faction_power = {
						faction = faction_democratic_legislature
						power = 1.0
					}
				}
				NOT = {
					any_realm_character = {
						has_minor_title = title_regent
						same_liege = ROOT
						NOT = { in_faction = faction_democratic_legislature }
					}
				}
				NOT = {
					any_realm_character = {
						has_minor_title = title_prime_minister
						same_liege = ROOT
						NOT = { in_faction = faction_democratic_legislature }
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					faction_power = {
						faction = faction_democratic_legislature
						power = 2.0
					}
				}
				NOT = { trait = brave }
				NOT = {
					any_realm_character = {
						has_minor_title = title_regent
						same_liege = ROOT
						NOT = { in_faction = faction_democratic_legislature }
					}
				}
				NOT = {
					any_realm_character = {
						has_minor_title = title_prime_minister
						same_liege = ROOT
						NOT = { in_faction = faction_democratic_legislature }
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					faction_power = {
						faction = faction_democratic_legislature
						power = 3.0
					}
				}
				trait = craven
				NOT = {
					any_realm_character = {
						has_minor_title = title_regent
						same_liege = ROOT
						NOT = { in_faction = faction_democratic_legislature }
					}
				}
				NOT = {
					any_realm_character = {
						has_minor_title = title_prime_minister
						same_liege = ROOT
						NOT = { in_faction = faction_democratic_legislature }
					}
				}
			}
			# Wait an average of five months to make sure this isn't just a fluke
			modifier = {
				factor = 0
				NOT = { trait = imbecile }
				NOT = { trait = slow }
				NOT = { trait = lunatic }
				NOT = { trait = carefree }
				random = 20
			}
			# The liege is defending in a war we'd rather they win
			modifier = {
				factor = 0
				liege = { reverse_has_opinion_modifier = { who = ROOT modifier = opinion_defending_my_titles } }
				NOT = { trait = lunatic }
			}
			modifier = {
				factor = 0
				liege = { reverse_has_opinion_modifier = { who = ROOT modifier = opinion_defending_vs_infidels } }
				NOT = { trait = pragmatic }
			}
		}
	}
	faction_devolve_local_government_bill = {
		is_high_prio = yes
		
		potential = {
			leads_faction = faction_devolve_local_government
			NOT = { has_character_flag = flag_making_faction_ultimatum }
			faction_devolve_local_government = { has_law = legislative_authority_1 }
		}
		
		allow = {
			prisoner = no
			liege = {
				OR = {
					has_regent = no
					regent = { in_faction = faction_devolve_local_government }
				}
			}
			liege = {
				NOT = { war_with = ROOT }
				NOT = { reverse_has_truce = ROOT }
				NOT = { has_character_modifier = constitutional_crisis }
			}
			capital_holding = { controller = { character = ROOT } }
			# Must have a majority in the Senate
			liege = { check_variable = { which = "faction_devolve_local_government" value = 0 } }
		}
		
		effect = {
			set_character_flag = flag_making_faction_ultimatum
			set_character_flag = flag_sent_devole_local_government_ultimatum
			character_event = { id = laws.10300 tooltip = "EVTTOOLTIPLAWS10300" }
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	faction_independence_bill = {
		is_high_prio = yes
		
		potential = {
			leads_faction = faction_independence
			crownlaw_title = { has_law = legislative_authority_1 }
			NOT = { has_character_flag = flag_making_faction_ultimatum }
		}
		
		allow = {
			prisoner = no
			liege = {
				NOT = { war_with = ROOT }
				NOT = { reverse_has_truce = ROOT }
				NOT = { has_character_modifier = constitutional_crisis }
			}
			capital_holding = { controller = { character = ROOT } }
			liege = {
				OR = {
					has_regent = no
					regent = { in_faction = faction_independence }
				}
			}
			# Must have a majority in the Senate
			liege = { check_variable = { which = "var_independence" value = 1 } }
		}
		
		effect = {
			set_character_flag = flag_making_faction_ultimatum
			set_character_flag = flag_sent_independence_ultimatum
			character_event = { id = laws.10400 tooltip = "EVTTOOLTIPLAWS10400" }
		}
		
		ai_will_do = {
			factor = 1
			# The liege is defending in a war we'd rather they win
			modifier = {
				factor = 0
				liege = { reverse_has_opinion_modifier = { who = ROOT modifier = opinion_defending_my_titles } }
				NOT = { trait = lunatic }
			}
			modifier = {
				factor = 0
				liege = { reverse_has_opinion_modifier = { who = ROOT modifier = opinion_defending_vs_infidels } }
				NOT = { trait = pragmatic }
			}
		}
	}
	faction_independence_demand = {
		is_high_prio = yes
		
		potential = {
			leads_faction = faction_independence
			NOT = { has_character_flag = flag_making_faction_ultimatum }
			NOT = { crownlaw_title = { has_law = legislative_authority_1 } }
		}
		
		allow = {
			prisoner = no
			liege = {
				OR = {
					has_regent = no
					regent = { in_faction = faction_independence }
				}
			}
			liege = {
				NOT = { war_with = ROOT }
				NOT = { reverse_has_truce = ROOT }
				NOT = { has_character_modifier = constitutional_crisis }
			}
			capital_holding = { controller = { character = ROOT } }
		}
		
		effect = {
			set_character_flag = flag_making_faction_ultimatum
			set_character_flag = flag_sent_independence_ultimatum
			character_event = { id = laws.10450 days = 3 tooltip = "EVTTOOLTIPLAWS10450" }
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0
				NOT = {
					faction_power = {
						faction = faction_independence
						power = 1.0
					}
				}
				NOT = {
					any_realm_character = {
						has_minor_title = title_regent
						same_liege = ROOT
						NOT = { in_faction = faction_independence }
					}
				}
				NOT = {
					any_realm_character = {
						has_minor_title = title_prime_minister
						same_liege = ROOT
						NOT = { in_faction = faction_independence }
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					faction_power = {
						faction = faction_independence
						power = 2.0
					}
				}
				NOT = { trait = brave }
				NOT = {
					any_realm_character = {
						has_minor_title = title_regent
						same_liege = ROOT
						NOT = { in_faction = faction_independence }
					}
				}
				NOT = {
					any_realm_character = {
						has_minor_title = title_prime_minister
						same_liege = ROOT
						NOT = { in_faction = faction_independence }
					}
				}
			}
			modifier = {
				factor = 0
				NOT = {
					faction_power = {
						faction = faction_independence
						power = 3.0
					}
				}
				trait = craven
				NOT = {
					any_realm_character = {
						has_minor_title = title_regent
						same_liege = ROOT
						NOT = { in_faction = faction_independence }
					}
				}
				NOT = {
					any_realm_character = {
						has_minor_title = title_prime_minister
						same_liege = ROOT
						NOT = { in_faction = faction_independence }
					}
				}
			}
			# Wait an average of five months to make sure this isn't just a fluke
			modifier = {
				factor = 0
				NOT = { trait = imbecile }
				NOT = { trait = slow }
				NOT = { trait = lunatic }
				NOT = { trait = carefree }
				random = 20
			}
			# The liege is defending in a war we'd rather they win
			modifier = {
				factor = 0
				liege = { reverse_has_opinion_modifier = { who = ROOT modifier = opinion_defending_my_titles } }
				NOT = { trait = lunatic }
			}
			modifier = {
				factor = 0
				liege = { reverse_has_opinion_modifier = { who = ROOT modifier = opinion_defending_vs_infidels } }
				NOT = { trait = pragmatic }
			}
		}
	}
	faction_no_confidence_bill = {
		is_high_prio = yes
		
		potential = {
			leads_faction = faction_no_confidence
			NOT = { has_character_flag = flag_making_faction_ultimatum }
			NOT = { faction_no_confidence = { has_title_flag = flag_holding_election } }
		}
		allow = {
			prisoner = no
			liege = { has_regent = no }
			liege = {
				is_primary_war_defender = no # Temporary due to war-and-elections bug
				NOT = { war_with = ROOT }
				NOT = { reverse_has_truce = ROOT }
				NOT = { has_character_modifier = constitutional_crisis }
			}
			capital_holding = { controller = { character = ROOT } }
			# Must have a majority in the Senate
			liege = { check_variable = { which = "var_no_confidence" value = 1 } }
		}
		
		effect = {
			set_character_flag = flag_making_faction_ultimatum
			set_character_flag = flag_sent_no_confidence_ultimatum
			character_event = { id = laws.10500 tooltip = "EVTTOOLTIPLAWS10500" }
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	faction_abolish_legislature_bill = {
		is_high_prio = yes
		
		potential = {
			leads_faction = faction_abolish_legislature
			NOT = { has_character_flag = flag_making_faction_ultimatum }
			faction_abolish_legislature = { has_law = legislative_authority_1 }
		}
		
		allow = {
			prisoner = no
			liege = {
				OR = {
					has_regent = no
					regent = { in_faction = faction_abolish_legislature }
				}
			}
			liege = {
				NOT = { war_with = ROOT }
				NOT = { reverse_has_truce = ROOT }
				NOT = { has_character_modifier = constitutional_crisis }
			}
			capital_holding = { controller = { character = ROOT } }
			# Must have a majority in the Senate
			liege = { check_variable = { which = "var_abolish_legislature" value = 1 } }
			# The pro-democracy faction must not be strong enough to resist
			OR = {
				liege = {
					NOT = {
						any_vassal = {
							faction_power = {
								faction = faction_democratic_legislature
								power = 1.0
							}
						}
					}
				}
				faction_power = {
					faction = faction_abolish_legislature
					power = 2.0
				}
			}
			OR = {
				liege = {
					NOT = {
						any_vassal = {
							faction_power = {
								faction = faction_democratic_legislature
								power = 2.0
							}
						}
					}
				}
				faction_power = {
					faction = faction_abolish_legislature
					power = 3.0
				}
			}
		}
		
		effect = {
			set_character_flag = flag_making_faction_ultimatum
			set_character_flag = flag_sent_anti_centralization_ultimatum
			character_event = { id = laws.10600 tooltip = "EVTTOOLTIPLAWS10000" }
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	# faction_monarchist_bill = {
		# is_high_prio = yes
		
		# potential = {
			# leads_faction = faction_monarchist
			# NOT = { has_character_flag = flag_making_faction_ultimatum }
			# crownlaw_title = { has_law = legislative_authority_1 }
		# }
		
		# allow = {
			# prisoner = no
			# liege = { is_hereditary_trigger = no }
			# liege = {
				# OR = {
					# has_regent = no
					# regent = { in_faction = faction_monarchist }
				# }
			# }
			# liege = {
				# NOT = { war_with = ROOT }
				# NOT = { reverse_has_truce = ROOT }
				# NOT = { has_character_modifier = constitutional_crisis }
			# }
			# capital_holding = { controller = { character = ROOT } }
			# # Must have a majority in the Senate
			# liege = { check_variable = { which = "var_monarchist" value = 1 } }
			# liege = { monarchy_is_legal_trigger = yes }
		# }
		
		# effect = {
			# set_character_flag = flag_making_faction_ultimatum
			# set_character_flag = flag_sent_monarchist_ultimatum
			# character_event = { id = laws.10700 tooltip = "EVTTOOLTIPLAWS10700" }
		# }
		
		# ai_will_do = { factor = 1 }
	# }
	# faction_monarchist_demand = {
		# is_high_prio = yes
		
		# potential = {
			# leads_faction = faction_monarchist
			# NOT = { has_character_flag = flag_making_faction_ultimatum }
			# NOT = { crownlaw_title = { has_law = legislative_authority_1 } }
		# }
		
		# allow = {
			# prisoner = no
			# liege = { is_hereditary_trigger = no }
			# liege = {
				# OR = {
					# has_regent = no
					# regent = { in_faction = faction_monarchist }
				# }
			# }
			# capital_holding = { controller = { character = ROOT } }
			# liege = { monarchy_is_legal_trigger = yes }
		# }
		
		# effect = {
			# set_character_flag = flag_making_faction_ultimatum
			# set_character_flag = flag_sent_monarchist_ultimatum
			# character_event = { id = laws.10750 tooltip = "EVTTOOLTIPLAWS10750" }
		# }
		
		# ai_will_do = {
			# factor = 1
			# modifier = {
				# factor = 0
				# NOT = {
					# faction_power = {
						# faction = faction_monarchist
						# power = 1.0
					# }
				# }
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_regent
						# same_liege = ROOT
						# NOT = { in_faction = faction_monarchist }
					# }
				# }
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_prime_minister
						# same_liege = ROOT
						# NOT = { in_faction = faction_monarchist }
					# }
				# }
			# }
			# modifier = {
				# factor = 0
				# NOT = {
					# faction_power = {
						# faction = faction_monarchist
						# power = 2.0
					# }
				# }
				# NOT = { trait = brave }
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_regent
						# same_liege = ROOT
						# NOT = { in_faction = faction_monarchist }
					# }
				# }
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_prime_minister
						# same_liege = ROOT
						# NOT = { in_faction = faction_monarchist }
					# }
				# }
			# }
			# modifier = {
				# factor = 0
				# NOT = {
					# faction_power = {
						# faction = faction_monarchist
						# power = 3.0
					# }
				# }
				# trait = craven
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_regent
						# same_liege = ROOT
						# NOT = { in_faction = faction_monarchist }
					# }
				# }
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_prime_minister
						# same_liege = ROOT
						# NOT = { in_faction = faction_monarchist }
					# }
				# }
			# }
			# # Wait an average of five months to make sure this isn't just a fluke
			# modifier = {
				# factor = 0
				# NOT = { trait = imbecile }
				# NOT = { trait = slow }
				# NOT = { trait = lunatic }
				# NOT = { trait = carefree }
				# random = 20
			# }
			# # Account for rival factions
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 1.0 }
							# faction_power = { faction = faction_technocratic power = 1.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_monarchist power = 0.5 } }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 1.0 }
							# faction_power = { faction = faction_technocratic power = 1.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_monarchist power = 1.0 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 1.0 }
							# faction_power = { faction = faction_technocratic power = 1.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_monarchist power = 1.5 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = slow }
				# NOT = { trait = brave }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 1.0 }
							# faction_power = { faction = faction_technocratic power = 1.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_monarchist power = 2.0 } }
				# trait = craven
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 2.0 }
							# faction_power = { faction = faction_technocratic power = 2.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_monarchist power = 1.0 } }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 2.0 }
							# faction_power = { faction = faction_technocratic power = 2.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_monarchist power = 2.0 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 2.0 }
							# faction_power = { faction = faction_technocratic power = 2.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_monarchist power = 3.0 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = slow }
				# NOT = { trait = brave }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 2.0 }
							# faction_power = { faction = faction_technocratic power = 2.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_monarchist power = 4.0 } }
				# trait = craven
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 3.0 }
							# faction_power = { faction = faction_technocratic power = 3.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_monarchist power = 1.5 } }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 3.0 }
							# faction_power = { faction = faction_technocratic power = 3.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_monarchist power = 3.0 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 3.0 }
							# faction_power = { faction = faction_technocratic power = 3.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_monarchist power = 4.5 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = slow }
				# NOT = { trait = brave }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 3.0 }
							# faction_power = { faction = faction_technocratic power = 3.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_monarchist power = 6.0 } }
				# trait = craven
			# }
			# # The liege is defending in a war we'd rather they win
			# modifier = {
				# factor = 0
				# liege = { reverse_has_opinion_modifier = { who = ROOT modifier = opinion_defending_my_titles } }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = { reverse_has_opinion_modifier = { who = ROOT modifier = opinion_defending_vs_infidels } }
				# NOT = { trait = pragmatic }
			# }
		# }
	# }
	# faction_republican_bill = {
		# is_high_prio = yes
		
		# potential = {
			# leads_faction = faction_republican
			# NOT = { has_character_flag = flag_making_faction_ultimatum }
			# crownlaw_title = { has_law = legislative_authority_1 }
		# }
		
		# allow = {
			# prisoner = no
			# liege = { is_elective_trigger = no }
			# liege = {
				# OR = {
					# has_regent = no
					# regent = { in_faction = faction_republican }
				# }
			# }
			# liege = {
				# NOT = { war_with = ROOT }
				# NOT = { reverse_has_truce = ROOT }
				# NOT = { has_character_modifier = constitutional_crisis }
			# }
			# capital_holding = { controller = { character = ROOT } }
			# # Must have a majority in the Senate
			# liege = { check_variable = { which = "var_republican" value = 1 } }
			# liege = { republic_is_legal_trigger = yes }
		# }
		
		# effect = {
			# set_character_flag = flag_making_faction_ultimatum
			# set_character_flag = flag_sent_republican_ultimatum
			# character_event = { id = laws.10800 tooltip = "EVTTOOLTIPLAWS10700" }
		# }
		
		# ai_will_do = { factor = 1 }
	# }
	# faction_republican_demand = {
		# is_high_prio = yes
		
		# potential = {
			# leads_faction = faction_republican
			# NOT = { has_character_flag = flag_making_faction_ultimatum }
			# NOT = { crownlaw_title = { has_law = legislative_authority_1 } }
		# }
		
		# allow = {
			# prisoner = no
			# liege = { is_elective_trigger = no }
			# liege = {
				# OR = {
					# has_regent = no
					# regent = { in_faction = faction_republican }
				# }
			# }
			# capital_holding = { controller = { character = ROOT } }
			# liege = { republic_is_legal_trigger = yes }
		# }
		
		# effect = {
			# set_character_flag = flag_making_faction_ultimatum
			# set_character_flag = flag_sent_republican_ultimatum
			# character_event = { id = laws.10850 tooltip = "EVTTOOLTIPLAWS10750" }
		# }
		
		# ai_will_do = {
			# factor = 1
			# modifier = {
				# factor = 0
				# NOT = {
					# faction_power = {
						# faction = faction_republican
						# power = 1.0
					# }
				# }
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_regent
						# same_liege = ROOT
						# NOT = { in_faction = faction_republican }
					# }
				# }
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_prime_minister
						# same_liege = ROOT
						# NOT = { in_faction = faction_republican }
					# }
				# }
			# }
			# modifier = {
				# factor = 0
				# NOT = {
					# faction_power = {
						# faction = faction_republican
						# power = 2.0
					# }
				# }
				# NOT = { trait = brave }
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_regent
						# same_liege = ROOT
						# NOT = { in_faction = faction_republican }
					# }
				# }
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_prime_minister
						# same_liege = ROOT
						# NOT = { in_faction = faction_republican }
					# }
				# }
			# }
			# modifier = {
				# factor = 0
				# NOT = {
					# faction_power = {
						# faction = faction_republican
						# power = 3.0
					# }
				# }
				# trait = craven
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_regent
						# same_liege = ROOT
						# NOT = { in_faction = faction_republican }
					# }
				# }
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_prime_minister
						# same_liege = ROOT
						# NOT = { in_faction = faction_republican }
					# }
				# }
			# }
			# # Wait an average of five months to make sure this isn't just a fluke
			# modifier = {
				# factor = 0
				# NOT = { trait = imbecile }
				# NOT = { trait = slow }
				# NOT = { trait = lunatic }
				# NOT = { trait = carefree }
				# random = 20
			# }
			# # Account for rival factions
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_monarchist power = 1.0 }
							# faction_power = { faction = faction_technocratic power = 1.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_republican power = 0.5 } }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_monarchist power = 1.0 }
							# faction_power = { faction = faction_technocratic power = 1.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_republican power = 1.0 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_monarchist power = 1.0 }
							# faction_power = { faction = faction_technocratic power = 1.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_republican power = 1.5 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = slow }
				# NOT = { trait = brave }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_monarchist power = 1.0 }
							# faction_power = { faction = faction_technocratic power = 1.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_republican power = 2.0 } }
				# trait = craven
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_monarchist power = 2.0 }
							# faction_power = { faction = faction_technocratic power = 2.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_republican power = 1.0 } }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_monarchist power = 2.0 }
							# faction_power = { faction = faction_technocratic power = 2.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_republican power = 2.0 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_monarchist power = 2.0 }
							# faction_power = { faction = faction_technocratic power = 2.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_republican power = 3.0 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = slow }
				# NOT = { trait = brave }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_monarchist power = 2.0 }
							# faction_power = { faction = faction_technocratic power = 2.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_republican power = 4.0 } }
				# trait = craven
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_monarchist power = 3.0 }
							# faction_power = { faction = faction_technocratic power = 3.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_republican power = 1.5 } }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_monarchist power = 3.0 }
							# faction_power = { faction = faction_technocratic power = 3.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_republican power = 3.0 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_monarchist power = 3.0 }
							# faction_power = { faction = faction_technocratic power = 3.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_republican power = 4.5 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = slow }
				# NOT = { trait = brave }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_monarchist power = 3.0 }
							# faction_power = { faction = faction_technocratic power = 3.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_republican power = 6.0 } }
				# trait = craven
			# }
			# # The liege is defending in a war we'd rather they win
			# modifier = {
				# factor = 0
				# liege = { reverse_has_opinion_modifier = { who = ROOT modifier = opinion_defending_my_titles } }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = { reverse_has_opinion_modifier = { who = ROOT modifier = opinion_defending_vs_infidels } }
				# NOT = { trait = pragmatic }
			# }
		# }
	# }
	# faction_technocratic_bill = {
		# is_high_prio = yes
		
		# potential = {
			# leads_faction = faction_technocratic
			# NOT = { has_character_flag = flag_making_faction_ultimatum }
			# crownlaw_title = { has_law = legislative_authority_1 }
		# }
		
		# allow = {
			# prisoner = no
			# liege = { is_appointed_trigger = no }
			# liege = {
				# OR = {
					# has_regent = no
					# regent = { in_faction = faction_technocratic }
				# }
			# }
			# liege = {
				# NOT = { war_with = ROOT }
				# NOT = { reverse_has_truce = ROOT }
				# NOT = { has_character_modifier = constitutional_crisis }
			# }
			# capital_holding = { controller = { character = ROOT } }
			# # Must have a majority in the Senate
			# liege = { check_variable = { which = "var_technocratic" value = 1 } }
			# liege = { directorate_is_legal_trigger = yes }
		# }
		
		# effect = {
			# set_character_flag = flag_making_faction_ultimatum
			# set_character_flag = flag_sent_technocratic_ultimatum
			# character_event = { id = laws.10900 tooltip = "EVTTOOLTIPLAWS10700" }
		# }
		
		# ai_will_do = { factor = 1 }
	# }
	# faction_technocratic_demand = {
		# is_high_prio = yes
		
		# potential = {
			# leads_faction = faction_technocratic
			# NOT = { has_character_flag = flag_making_faction_ultimatum }
			# NOT = { crownlaw_title = { has_law = legislative_authority_1 } }
		# }
		
		# allow = {
			# prisoner = no
			# liege = { is_appointed_trigger = no }
			# liege = {
				# OR = {
					# has_regent = no
					# regent = { in_faction = faction_technocratic }
				# }
			# }
			# capital_holding = { controller = { character = ROOT } }
			# liege = { directorate_is_legal_trigger = yes }
		# }
		
		# effect = {
			# set_character_flag = flag_making_faction_ultimatum
			# set_character_flag = flag_sent_technocratic_ultimatum
			# character_event = { id = laws.10950 tooltip = "EVTTOOLTIPLAWS10750" }
		# }
		
		# ai_will_do = {
			# factor = 1
			# modifier = {
				# factor = 0
				# NOT = {
					# faction_power = {
						# faction = faction_technocratic
						# power = 1.0
					# }
				# }
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_regent
						# same_liege = ROOT
						# NOT = { in_faction = faction_technocratic }
					# }
				# }
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_prime_minister
						# same_liege = ROOT
						# NOT = { in_faction = faction_technocratic }
					# }
				# }
			# }
			# modifier = {
				# factor = 0
				# NOT = {
					# faction_power = {
						# faction = faction_technocratic
						# power = 2.0
					# }
				# }
				# NOT = { trait = brave }
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_regent
						# same_liege = ROOT
						# NOT = { in_faction = faction_technocratic }
					# }
				# }
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_prime_minister
						# same_liege = ROOT
						# NOT = { in_faction = faction_technocratic }
					# }
				# }
			# }
			# modifier = {
				# factor = 0
				# NOT = {
					# faction_power = {
						# faction = faction_technocratic
						# power = 3.0
					# }
				# }
				# trait = craven
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_regent
						# same_liege = ROOT
						# NOT = { in_faction = faction_technocratic }
					# }
				# }
				# NOT = {
					# any_realm_character = {
						# has_minor_title = title_prime_minister
						# same_liege = ROOT
						# NOT = { in_faction = faction_technocratic }
					# }
				# }
			# }
			# # Wait an average of five months to make sure this isn't just a fluke
			# modifier = {
				# factor = 0
				# NOT = { trait = imbecile }
				# NOT = { trait = slow }
				# NOT = { trait = lunatic }
				# NOT = { trait = carefree }
				# random = 20
			# }
			# # Account for rival factions
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 1.0 }
							# faction_power = { faction = faction_monarchist power = 1.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_technocratic power = 0.5 } }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 1.0 }
							# faction_power = { faction = faction_monarchist power = 1.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_technocratic power = 1.0 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 1.0 }
							# faction_power = { faction = faction_monarchist power = 1.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_technocratic power = 1.5 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = slow }
				# NOT = { trait = brave }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 1.0 }
							# faction_power = { faction = faction_monarchist power = 1.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_technocratic power = 2.0 } }
				# trait = craven
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 2.0 }
							# faction_power = { faction = faction_monarchist power = 2.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_technocratic power = 1.0 } }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 2.0 }
							# faction_power = { faction = faction_monarchist power = 2.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_technocratic power = 2.0 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 2.0 }
							# faction_power = { faction = faction_monarchist power = 2.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_technocratic power = 3.0 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = slow }
				# NOT = { trait = brave }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 2.0 }
							# faction_power = { faction = faction_monarchist power = 2.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_technocratic power = 4.0 } }
				# trait = craven
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 3.0 }
							# faction_power = { faction = faction_monarchist power = 3.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_technocratic power = 1.5 } }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 3.0 }
							# faction_power = { faction = faction_monarchist power = 3.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_technocratic power = 3.0 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 3.0 }
							# faction_power = { faction = faction_monarchist power = 3.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_technocratic power = 4.5 } }
				# NOT = { trait = imbecile }
				# NOT = { trait = slow }
				# NOT = { trait = brave }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = {
					# any_vassal = {
						# OR = {
							# faction_power = { faction = faction_republican power = 3.0 }
							# faction_power = { faction = faction_monarchist power = 3.0 }
						# }
					# }
				# }
				# NOT = { faction_power = { faction = faction_technocratic power = 6.0 } }
				# trait = craven
			# }
			# # The liege is defending in a war we'd rather they win
			# modifier = {
				# factor = 0
				# liege = { reverse_has_opinion_modifier = { who = ROOT modifier = opinion_defending_my_titles } }
				# NOT = { trait = lunatic }
			# }
			# modifier = {
				# factor = 0
				# liege = { reverse_has_opinion_modifier = { who = ROOT modifier = opinion_defending_vs_infidels } }
				# NOT = { trait = pragmatic }
			# }
		# }
	# }
}