﻿namespace = regula_religious_proclamation

regula_religious_proclamation.1000 = { # Religious Proclamation - Menu
	type = character_event
	title = regula_religious_proclamation.1000.t
	desc = {
		desc = regula_religious_proclamation.1000.desc
		desc = line_break
		desc = line_break
		desc = regula_religious_proclamation.1000.desc_cap
	}

	theme = regula_theme
	override_background = {
		reference = throne_room
	}
	right_portrait = {
		character = global_var:magister_character
		animation = personality_bold
	}

	immediate = {
		regula_religious_proclamation_setup = yes
	}

	option = { # Identity
		name = regula_religious_proclamation.1000.a
		trigger_event = {
			id = regula_religious_proclamation.1100
		}
	}

	option = { # War
		name = regula_religious_proclamation.1000.b
		trigger_event = {
			id = regula_religious_proclamation.1110
		}
	}

	option = { # Nature
		name = regula_religious_proclamation.1000.c
		trigger_event = {
			id = regula_religious_proclamation.1120
		}
	}

	option = { # Reason
	 	name = regula_religious_proclamation.1000.d
	 	trigger_event = {
	 		id = regula_religious_proclamation.1130
	    }
	}

	option = { # Tolerance
		name = regula_religious_proclamation.1000.f
		trigger_event = {
			id = regula_religious_proclamation.1140
		}
	}

	option = {
		name = regula_religious_proclamation.1000.cancel
		add_piety_no_experience = regula_religious_proclamation_piety_cost
		hidden_effect = {
			remove_decision_cooldown = regula_religious_proclamation_decision
		}
	}
}


regula_religious_proclamation.1100 = { # Religious Proclamation - Identity
	type = character_event
	title = regula_religious_proclamation.1000.t
	desc = {
		desc = regula_religious_proclamation.1000.desc
		desc = line_break
		desc = line_break
		desc = regula_religious_proclamation.1000.desc_cap
	}

	theme = regula_theme
	override_background = {
		reference = throne_room
	}
	right_portrait = {
		character = global_var:magister_character
		animation = personality_bold
	}

	option = { # Carnal Exaltation
		name = regula_religious_proclamation.1000.carnal
		trigger = {
			regula_religious_proclamation_can_add_tenet = { TENET = tenet_carnal_exaltation }
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_carnal_exaltation }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_carnal_exaltation
				}
				remove_doctrine = tenet_carnal_exaltation
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_carnal_exaltation
				regula_religious_proclamation_tenet_count_increase = yes
			}
		}
	}
	option = { # Sacred Childbirth
		name = regula_religious_proclamation.1000.childbirth
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_sacred_childbirth }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_sacred_childbirth
						has_doctrine = tenet_reincarnation
						has_doctrine = tenet_mystical_birthright
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_sacred_childbirth }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_sacred_childbirth
				}
				remove_doctrine = tenet_sacred_childbirth
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_sacred_childbirth
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_reincarnation
					}
					remove_doctrine = tenet_reincarnation
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_mystical_birthright
					}
					remove_doctrine = tenet_mystical_birthright
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
			
		}
	}
	option = { # Reincarnation
		name = regula_religious_proclamation.1000.reincarnation
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_reincarnation }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_sacred_childbirth
						has_doctrine = tenet_reincarnation
						has_doctrine = tenet_mystical_birthright
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_reincarnation }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_reincarnation
				}
				remove_doctrine = tenet_reincarnation
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_reincarnation
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_sacred_childbirth
					}
					remove_doctrine = tenet_sacred_childbirth
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_mystical_birthright
					}
					remove_doctrine = tenet_mystical_birthright
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}
	option = {  # Mystical Birthright
		name = regula_religious_proclamation.1000.birthright
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_mystical_birthright }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_sacred_childbirth
						has_doctrine = tenet_reincarnation
						has_doctrine = tenet_mystical_birthright
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_mystical_birthright }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_mystical_birthright
				}
				remove_doctrine = tenet_mystical_birthright
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_mystical_birthright
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_sacred_childbirth
					}
					remove_doctrine = tenet_sacred_childbirth
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_reincarnation
					}
					remove_doctrine = tenet_reincarnation
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}
	option = {
		name = regula_religious_proclamation.1000.next
		trigger_event = {
			id = regula_religious_proclamation.1101
		}
	}
	option = {
		name = regula_religious_proclamation.1000.return
		trigger_event = {
			id = regula_religious_proclamation.1000
		}
	}
}

regula_religious_proclamation.1101 = { # Religious Proclamation - Identity II
	type = character_event
	title = regula_religious_proclamation.1000.t
	desc = {
		desc = regula_religious_proclamation.1000.desc
		desc = line_break
		desc = line_break
		desc = regula_religious_proclamation.1000.desc_cap
	}

	theme = regula_theme
	override_background = {
		reference = throne_room
	}
	right_portrait = {
		character = global_var:magister_character
		animation = personality_bold
	}

	option = { # Natural Primitivism
		name = regula_religious_proclamation.1000.naked
		trigger = {
			regula_religious_proclamation_can_add_tenet = { TENET = tenet_natural_primitivism }
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_natural_primitivism }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_natural_primitivism
				}
				remove_doctrine = tenet_natural_primitivism
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_natural_primitivism
				regula_religious_proclamation_tenet_count_increase = yes
			}
		}
	}
	option = { # Communal Identity
		name = regula_religious_proclamation.1000.communal_identity
		trigger = {
			regula_religious_proclamation_can_add_tenet = { TENET = tenet_communal_identity }
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_communal_identity }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_communal_identity
				}
				remove_doctrine = tenet_communal_identity
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_communal_identity
				regula_religious_proclamation_tenet_count_increase = yes
			}
		}
	}
    option = { # Ancestor Worship
		name = regula_religious_proclamation.1000.ancestor_worship
		trigger = {
			regula_religious_proclamation_can_add_tenet = { TENET = tenet_ancestor_worship }
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_ancestor_worship }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_ancestor_worship
				}
				remove_doctrine = tenet_ancestor_worship
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_ancestor_worship
				regula_religious_proclamation_tenet_count_increase = yes
			}
		}
	}
	option = {
		name = regula_religious_proclamation.1000.back
		trigger_event = {
			id = regula_religious_proclamation.1100
		}
	}
	option = {
		name = regula_religious_proclamation.1000.return
		trigger_event = {
			id = regula_religious_proclamation.1000
		}
	}
}

regula_religious_proclamation.1110 = { # Religious Proclamation - War
	type = character_event
	title = regula_religious_proclamation.1000.t
	desc = {
		desc = regula_religious_proclamation.1000.desc
		desc = line_break
		desc = line_break
		desc = regula_religious_proclamation.1000.desc_cap
	}

	theme = regula_theme
	override_background = {
		reference = throne_room
	}
	right_portrait = {
		character = global_var:magister_character
		animation = personality_bold
	}

	option = { # Struggle Submission
		name = regula_religious_proclamation.1000.struggle_submission
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_struggle_submission }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_struggle_submission
						has_doctrine = tenet_pacifism
						has_doctrine = tenet_warmonger
						has_doctrine = tenet_pursuit_of_power
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_struggle_submission }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_struggle_submission
				}
				remove_doctrine = tenet_struggle_submission
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_struggle_submission
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_pacifism
					}
					remove_doctrine = tenet_pacifism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_warmonger
					}
					remove_doctrine = tenet_warmonger
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_pursuit_of_power
					}
					remove_doctrine = tenet_pursuit_of_power
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}

	option = { # Warmonger
		name = regula_religious_proclamation.1000.warmonger
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_warmonger }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_struggle_submission
						has_doctrine = tenet_pacifism
						has_doctrine = tenet_warmonger
						has_doctrine = tenet_pursuit_of_power
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_warmonger }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_warmonger
				}
				remove_doctrine = tenet_warmonger
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_warmonger
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_pacifism
					}
					remove_doctrine = tenet_pacifism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_struggle_submission
					}
					remove_doctrine = tenet_struggle_submission
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_pursuit_of_power
					}
					remove_doctrine = tenet_pursuit_of_power
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}

	option = { # Pursuit of Power
		name = regula_religious_proclamation.1000.pursuit_of_power
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_pursuit_of_power }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_struggle_submission
						has_doctrine = tenet_pacifism
						has_doctrine = tenet_warmonger
						has_doctrine = tenet_pursuit_of_power
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_pursuit_of_power }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_pursuit_of_power
				}
				remove_doctrine = tenet_pursuit_of_power
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_pursuit_of_power
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_pacifism
					}
					remove_doctrine = tenet_pacifism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_struggle_submission
					}
					remove_doctrine = tenet_struggle_submission
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_warmonger
					}
					remove_doctrine = tenet_warmonger
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}

	option = { # Pacifism
		name = regula_religious_proclamation.1000.pacifism
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_pacifism }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_struggle_submission
						has_doctrine = tenet_pacifism
						has_doctrine = tenet_warmonger
						has_doctrine = tenet_pursuit_of_power
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_pacifism }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_pacifism
				}
				remove_doctrine = tenet_pacifism
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_pacifism
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_warmonger
					}
					remove_doctrine = tenet_warmonger
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_struggle_submission
					}
					remove_doctrine = tenet_struggle_submission
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_pursuit_of_power
					}
					remove_doctrine = tenet_pursuit_of_power
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_pursuit_of_power
					}
					remove_doctrine = tenet_pursuit_of_power
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}

	option = {
		name = regula_religious_proclamation.1000.return
		trigger_event = {
			id = regula_religious_proclamation.1000
		}
	}
}

regula_religious_proclamation.1120 = { # Religious Proclamation - Nature
	type = character_event
	title = regula_religious_proclamation.1000.t
	desc = {
		desc = regula_religious_proclamation.1000.desc
		desc = line_break
		desc = line_break
		desc = regula_religious_proclamation.1000.desc_cap
	}

	theme = regula_theme
	override_background = {
		reference = throne_room
	}
	right_portrait = {
		character = global_var:magister_character
		animation = personality_bold
	}

	
	option = { # Megaliths
		name = regula_religious_proclamation.1000.megaliths
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_megaliths }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_cthonic_redoubts
						has_doctrine = tenet_sanctity_of_nature
						has_doctrine = tenet_megaliths
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_megaliths }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_megaliths
				}
				remove_doctrine = tenet_megaliths
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_megaliths
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_cthonic_redoubts
					}
					remove_doctrine = tenet_cthonic_redoubts
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_sanctity_of_nature
					}
					remove_doctrine = tenet_sanctity_of_nature
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}
	option = { # Sanctity of Nature
		name = regula_religious_proclamation.1000.sanctity_of_nature
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_sanctity_of_nature }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_cthonic_redoubts
						has_doctrine = tenet_sanctity_of_nature
						has_doctrine = tenet_megaliths
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_sanctity_of_nature }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_sanctity_of_nature
				}
				remove_doctrine = tenet_sanctity_of_nature
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_sanctity_of_nature
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_cthonic_redoubts
					}
					remove_doctrine = tenet_cthonic_redoubts
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_megaliths
					}
					remove_doctrine = tenet_megaliths
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}
	option = { # Redoubts
		name = regula_religious_proclamation.1000.redoubts
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_cthonic_redoubts }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_cthonic_redoubts
						has_doctrine = tenet_sanctity_of_nature
						has_doctrine = tenet_megaliths
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_cthonic_redoubts }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_cthonic_redoubts
				}
				remove_doctrine = tenet_cthonic_redoubts
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_cthonic_redoubts
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_sanctity_of_nature
					}
					remove_doctrine = tenet_sanctity_of_nature
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_megaliths
					}
					remove_doctrine = tenet_megaliths
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}
	option = {
		name = regula_religious_proclamation.1000.return
		trigger_event = {
			id = regula_religious_proclamation.1000
		}
	}
}

regula_religious_proclamation.1130 = { # Religious Proclamation - Reason
	type = character_event
	title = regula_religious_proclamation.1000.t
	desc = {
		desc = regula_religious_proclamation.1000.desc
		desc = line_break
		desc = line_break
		desc = regula_religious_proclamation.1000.desc_cap
	}

	theme = regula_theme
	override_background = {
		reference = throne_room
	}
	right_portrait = {
		character = global_var:magister_character
		animation = personality_bold
	}

	option = { # Asceticism
		name = regula_religious_proclamation.1000.asceticism
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_asceticism }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_asceticism
						has_doctrine = tenet_esotericism
						has_doctrine = tenet_literalism
						has_doctrine = tenet_adaptive
						has_doctrine = tenet_legalism
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_asceticism }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_asceticism
				}
				remove_doctrine = tenet_asceticism
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_asceticism
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_esotericism
					}
					remove_doctrine = tenet_esotericism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_literalism
					}
					remove_doctrine = tenet_literalism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_adaptive
					}
					remove_doctrine = tenet_adaptive
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_legalism
					}
					remove_doctrine = tenet_legalism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}
	option = { # Esotericism
		name = regula_religious_proclamation.1000.esotericism
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_esotericism }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_asceticism
						has_doctrine = tenet_esotericism
						has_doctrine = tenet_literalism
						has_doctrine = tenet_adaptive
						has_doctrine = tenet_legalism
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_esotericism }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_esotericism
				}
				remove_doctrine = tenet_esotericism
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_esotericism
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_asceticism
					}
					remove_doctrine = tenet_asceticism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_literalism
					}
					remove_doctrine = tenet_literalism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_adaptive
					}
					remove_doctrine = tenet_adaptive
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_legalism
					}
					remove_doctrine = tenet_legalism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}
	option = { # Literalism
		name = regula_religious_proclamation.1000.literalism
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_literalism }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_asceticism
						has_doctrine = tenet_esotericism
						has_doctrine = tenet_literalism
						has_doctrine = tenet_adaptive
						has_doctrine = tenet_legalism
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_literalism }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_literalism
				}
				remove_doctrine = tenet_literalism
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_literalism
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_asceticism
					}
					remove_doctrine = tenet_asceticism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_esotericism
					}
					remove_doctrine = tenet_esotericism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_adaptive
					}
					remove_doctrine = tenet_adaptive
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_legalism
					}
					remove_doctrine = tenet_legalism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}
	option = { # Adaptive
		name = regula_religious_proclamation.1000.adaptive
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_adaptive }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_asceticism
						has_doctrine = tenet_esotericism
						has_doctrine = tenet_literalism
						has_doctrine = tenet_adaptive
						has_doctrine = tenet_legalism
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_adaptive }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_adaptive
				}
				remove_doctrine = tenet_adaptive
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_adaptive
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_asceticism
					}
					remove_doctrine = tenet_asceticism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_esotericism
					}
					remove_doctrine = tenet_esotericism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_literalism
					}
					remove_doctrine = tenet_literalism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_legalism
					}
					remove_doctrine = tenet_legalism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}
	option = { # Legalism
		name = regula_religious_proclamation.1000.legalism
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_legalism }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_asceticism
						has_doctrine = tenet_esotericism
						has_doctrine = tenet_literalism
						has_doctrine = tenet_adaptive
						has_doctrine = tenet_legalism
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_legalism }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_legalism
				}
				remove_doctrine = tenet_legalism
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_legalism
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_asceticism
					}
					remove_doctrine = tenet_asceticism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_esotericism
					}
					remove_doctrine = tenet_esotericism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_literalism
					}
					remove_doctrine = tenet_literalism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_adaptive
					}
					remove_doctrine = tenet_adaptive
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}
	option = {
		name = regula_religious_proclamation.1000.next
		trigger_event = {
			id = regula_religious_proclamation.1131
		}
	}
	option = {
		name = regula_religious_proclamation.1000.return
		trigger_event = {
			id = regula_religious_proclamation.1000
		}
	}
}

regula_religious_proclamation.1131 = { # Religious Proclamation - Reason II
	type = character_event
	title = regula_religious_proclamation.1000.t
	desc = {
		desc = regula_religious_proclamation.1000.desc
		desc = line_break
		desc = line_break
		desc = regula_religious_proclamation.1000.desc_cap
	}

	theme = regula_theme
	override_background = {
		reference = throne_room
	}
	right_portrait = {
		character = global_var:magister_character
		animation = personality_bold
	}

	option = { # Astrology
		name = regula_religious_proclamation.1000.astrology
		trigger = {
			regula_religious_proclamation_can_add_tenet = { TENET = tenet_astrology }
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_astrology }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_astrology
				}
				remove_doctrine = tenet_astrology
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_astrology
				regula_religious_proclamation_tenet_count_increase = yes
			}
		}
	}
    option = { # Sacred Lies
		name = regula_religious_proclamation.1000.sacred_lies
		trigger = {
			regula_religious_proclamation_can_add_tenet = { TENET = tenet_sacred_shadows }
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_sacred_shadows }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_sacred_shadows
				}
				remove_doctrine = tenet_sacred_shadows
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_sacred_shadows
				regula_religious_proclamation_tenet_count_increase = yes
			}
		}
	}
	option = {
		name = regula_religious_proclamation.1000.back
		trigger_event = {
			id = regula_religious_proclamation.1130
		}
	}
	option = {
		name = regula_religious_proclamation.1000.return
		trigger_event = {
			id = regula_religious_proclamation.1000
		}
	}
}

# tenet_mendicant_preachers
# tenet_monasticism
# tenet_unrelenting_faith

regula_religious_proclamation.1140 = { # Religious Proclamation - Tolerance
	type = character_event
	title = regula_religious_proclamation.1000.t
	desc = {
		desc = regula_religious_proclamation.1000.desc
		desc = line_break
		desc = line_break
		desc = regula_religious_proclamation.1000.desc_cap
	}

	theme = regula_theme
	override_background = {
		reference = throne_room
	}
	right_portrait = {
		character = global_var:magister_character
		animation = personality_bold
	}

	option = { # Islamic Syncreticism
		name = regula_religious_proclamation.1000.islam
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_islamic_syncretism }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_islamic_syncretism
						has_doctrine = tenet_christian_syncretism
						has_doctrine = tenet_eastern_syncretism
						has_doctrine = tenet_unreformed_syncretism
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_islamic_syncretism }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_islamic_syncretism
				}
				remove_doctrine = tenet_islamic_syncretism
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_islamic_syncretism
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_christian_syncretism
					}
					remove_doctrine = tenet_christian_syncretism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_eastern_syncretism
					}
					remove_doctrine = tenet_eastern_syncretism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_unreformed_syncretism
					}
					remove_doctrine = tenet_unreformed_syncretism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}
	option = { # Christian Syncreticism
		name = regula_religious_proclamation.1000.christian
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_christian_syncretism }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_islamic_syncretism
						has_doctrine = tenet_christian_syncretism
						has_doctrine = tenet_eastern_syncretism
						has_doctrine = tenet_unreformed_syncretism
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_christian_syncretism }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_christian_syncretism
				}
				remove_doctrine = tenet_christian_syncretism
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_christian_syncretism
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_islamic_syncretism
					}
					remove_doctrine = tenet_islamic_syncretism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_eastern_syncretism
					}
					remove_doctrine = tenet_eastern_syncretism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_unreformed_syncretism
					}
					remove_doctrine = tenet_unreformed_syncretism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}
	option = { # Eastern Syncreticism
		name = regula_religious_proclamation.1000.eastern
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_eastern_syncretism }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_islamic_syncretism
						has_doctrine = tenet_christian_syncretism
						has_doctrine = tenet_eastern_syncretism
						has_doctrine = tenet_unreformed_syncretism
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_eastern_syncretism }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_eastern_syncretism
				}
				remove_doctrine = tenet_eastern_syncretism
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_eastern_syncretism
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_islamic_syncretism
					}
					remove_doctrine = tenet_islamic_syncretism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_christian_syncretism
					}
					remove_doctrine = tenet_christian_syncretism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_unreformed_syncretism
					}
					remove_doctrine = tenet_unreformed_syncretism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}
	option = { # Unreformed Syncreticism
		name = regula_religious_proclamation.1000.unreformed
		trigger = {
			OR = {
				regula_religious_proclamation_can_add_tenet = { TENET = tenet_unreformed_syncretism }
				global_var:magister_character.faith = {  # Can swap out a tenet
					OR = {
						has_doctrine = tenet_islamic_syncretism
						has_doctrine = tenet_christian_syncretism
						has_doctrine = tenet_eastern_syncretism
						has_doctrine = tenet_unreformed_syncretism
					}
				}
			}
		}
		show_as_unavailable = {
			regula_religious_proclamation_show_unavailable = { TENET = tenet_unreformed_syncretism }
		}
		global_var:magister_character.faith = {
			if = {
				limit = {
					has_doctrine = tenet_unreformed_syncretism
				}
				remove_doctrine = tenet_unreformed_syncretism
				regula_religious_proclamation_tenet_count_decrease = yes
			}
			else = {
				add_doctrine = tenet_unreformed_syncretism
				regula_religious_proclamation_tenet_count_increase = yes
				if = {
					limit = {
						has_doctrine = tenet_islamic_syncretism
					}
					remove_doctrine = tenet_islamic_syncretism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_christian_syncretism
					}
					remove_doctrine = tenet_christian_syncretism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
				if = {
					limit = {
						has_doctrine = tenet_eastern_syncretism
					}
					remove_doctrine = tenet_eastern_syncretism
					regula_religious_proclamation_tenet_count_decrease = yes
				}
			}
		}
	}
	option = {
		name = regula_religious_proclamation.1000.return
		trigger_event = {
			id = regula_religious_proclamation.1000
		}
	}
}