namespace = Plus

#reserved: Plus.2600 to Plus.2649
#reserved: Plus.1550 to Plus.1599

#######################################
# SAINTHOOD EVENTS
#######################################

# Vassal/family member has been declared a martyr
character_event = {
	id = Plus.2600
	desc = EVTDESC_Plus_2600
	picture = GFX_evt_martyr
	
	is_triggered_only = yes
	hide_from = yes
	
	trigger = {
		religion = event_target:new_martyr
	}
	
	option = {
		name = EVTOPTA_Plus_2600
		trigger = { is_close_relative = event_target:new_martyr }
		tooltip = { event_target:new_martyr = { add_trait = martyr } }
		piety = 25
	}
	option = {
		name = EVTOPTB_Plus_2600
		trigger = {
			NOT = { is_close_relative = event_target:new_martyr }
			dynasty = event_target:new_martyr
		}
		tooltip = { event_target:new_martyr = { add_trait = martyr } }
		piety = 5
	}
	option = {
		name = EVTOPTC_Plus_2600
		trigger = {
			NOT = { is_close_relative = event_target:new_martyr }
			NOT = { dynasty = event_target:new_martyr }
		}
		tooltip = { event_target:new_martyr = { add_trait = martyr } }
		piety = 10
	}
}

# Chance of Christian becoming a saint upon death
character_event = {
	id = Plus.2601
	
	is_triggered_only = yes
	hide_window = yes
	
	religion_group = christian
	min_age = 16
	
	trigger = {
		is_adult = yes
		is_heretic = no
		
		# either has religion head or is chalcedonian
		OR = {
			religion_head = { always = yes }
			religion = chalcedonian
		}
		
		# qualifies for sainthood
		prestige = 0
		piety = 0
		OR = {
			trait = martyr
			trait = paragon
			has_character_flag = converted_king
			has_character_flag = king_converted
			has_character_flag = schism_mender
			piety = 2000
			AND = {
				piety = 1000
				OR = {
					trait = celibate
					trait = theologian
					trait = crusader
					is_theocracy = yes
					has_character_modifier = voice_of_jesus
					has_character_modifier = true_christian_knight
				}
			}
			AND = {
				piety = 250
				controls_religion = yes
			}
			AND = {
				piety = 250
				religion = chalcedonian
				OR = {
					has_landed_title = k_papal_chalcedon
					has_landed_title = k_interim_papacy
					has_landed_title = d_pentarch_constantinople
				}
			}
			AND = {
				piety = 400
				is_ruler = no
				OR = {
					trait = celibate
					trait = theologian
					trait = monk
					trait = nun
					trait = crusader
					has_character_modifier = voice_of_jesus
					has_character_modifier = true_christian_knight
				}
			}
		}
		# does not possess traits that would prevent sainthood
		OR = {
			NOT = { trait = possessed }
			has_character_modifier = voice_of_jesus
		}
		NOR = {
			death_suicide_trigger = yes
			trait = sayyid
			trait = mirza
			trait = mujahid
			trait = inbred
			trait = lunatic
			trait = hedonist
			trait = cynical
			trait = excommunicated
			is_kinslayer_trigger = yes
			trait = homosexual
			trait = bad_priest_christian
			has_claim = k_papal_state
			has_claim = d_fraticelli
			has_nickname = nick_the_heathen
			has_nickname = nick_the_unfaithful
			has_nickname = nick_the_beguiling
			has_nickname = nick_the_temptress
			has_nickname = nick_the_seducer
			has_nickname = nick_the_lewd
			has_nickname = nick_the_lecher
			has_nickname = nick_the_unchaste
			has_nickname = nick_of_the_wilds
			has_nickname = nick_the_beheader
			has_nickname = nick_the_ruthless
			has_nickname = nick_the_sea_devil
			has_nickname = nick_the_flail_of
			has_nickname = nick_the_scourge_of
			has_nickname = nick_the_alchemist
			has_nickname = nick_the_terror_of_provincename
			has_nickname = nick_the_butcher
			has_nickname = nick_son_of_evilgod
			has_nickname = nick_the_evil
			has_nickname = nick_the_tormentor
			has_nickname = nick_the_mutilator
			has_nickname = nick_the_despoiler
			has_nickname = nick_the_bane_of_realmname
			has_nickname = nick_the_depraved
			has_nickname = nick_the_monster
			has_nickname = nick_the_abomination
			has_nickname = nick_the_culture_marauder
			has_nickname = nick_the_kingslayer
			has_nickname = nick_the_cannibal
			has_nickname = nick_the_plaguebearer
			has_nickname = nick_the_accursed
			has_nickname = nick_the_wicked
			has_nickname = nick_the_bewitched
			has_nickname = nick_priest_hater
			has_nickname = nick_the_witch
			has_nickname = nick_the_devil
			has_nickname = nick_the_dragon
			has_nickname = nick_the_defiler
			has_nickname = nick_the_fratricide
			has_nickname = nick_the_parricide
			has_nickname = nick_the_tyrant
			has_nickname = nick_the_godless
			has_nickname = nick_the_impaler
		}
		# not already another saint in progress for the top liege
		NOT = {
			top_liege = {
				capital_scope = { has_province_flag = saint_in_progress }
			}
		}
	}

	immediate = {
		random = {
			chance = 10
			modifier = {
				factor = 10
				has_character_flag = schism_mender
			}
			modifier = {
				factor = 7.5
				NOT = { has_character_flag = schism_mender }
				OR = {
					controls_religion = yes
					has_landed_title = k_papal_chalcedon
					has_landed_title = k_interim_papacy
					has_nickname = nick_the_saint
				}
			}
			modifier = {
				factor = 5
				controls_religion = no
				has_landed_title = d_pentarch_constantinople
			}
			modifier = {
				factor = 5
				trait = martyr
			}
			modifier = {
				factor = 3
				OR = {
					has_character_flag = king_converted
					has_character_modifier = voice_of_jesus
					has_character_modifier = true_christian_knight
				}
			}
			modifier = {
				factor = 2
				is_theocracy = yes
				NOR = {
					controls_religion = yes
					has_landed_title = k_papal_chalcedon
					has_landed_title = k_interim_papacy
					has_landed_title = d_pentarch_constantinople
				}
			}
			modifier = {
				factor = 1.5
				trait = zealous
			}
			modifier = {
				factor = 1.5
				trait = paragon
			}
			modifier = {
				factor = 1.5
				OR = {
					has_nickname = nick_the_holy
					has_nickname = nick_the_confessor
					has_nickname = nick_the_blessed
					has_nickname = nick_the_pious
					has_nickname = nick_the_apostle
				}
			}
			modifier = {
				factor = 1.25
				piety = 1000
			}
            modifier = {
				factor = 1.25
				piety = 1500
			}
            modifier = {
				factor = 1.25
				piety = 2000
			}
            modifier = {
				factor = 1.25
				piety = 2500
			}
            modifier = {
				factor = 1.25
				piety = 3000
			}
			modifier = {
				factor = 1.25
				piety = 3500
			}
            modifier = {
				factor = 1.25
				piety = 4000
			}
            modifier = {
				factor = 1.25
				piety = 4500
			}
            modifier = {
				factor = 1.25
				piety = 5000
			}
			modifier = {
				factor = 1.25
				OR = {
					has_nickname = nick_the_crusader
					has_nickname = nick_the_kind
					has_nickname = nick_the_wise
					has_nickname = nick_the_righteous
					has_nickname = nick_the_just
					has_nickname = nick_the_good
				}
			}
			modifier = {
				factor = 1.25
				OR = {
					is_priest = yes
					trait = monk
					trait = nun
				}
			}
			modifier = {
				factor = 1.2
				trait = celibate
			}
			modifier = {
				factor = 1.2
				trait = crusader
			}
			modifier = {
				factor = 1.2
				trait = theologian
			}
			modifier = {
				factor = 1.2
				trait = chaste
			}
			modifier = {
				factor = 1.2
				trait = temperate
			}
            modifier = {
				factor = 1.2
				trait = charitable
			}
            modifier = {
				factor = 1.2
				trait = diligent
			}
            modifier = {
				factor = 1.2
				trait = kind
			}
            modifier = {
				factor = 1.2
				trait = patient
			}
            modifier = {
				factor = 1.2
				trait = humble
			}
			modifier = {
				factor = 1.2
				trait = brave
			}
			modifier = {
				factor = 1.2
				trait = just
			}
			modifier = {
				factor = 1.2
				trait = honest
			}
			modifier = {
				factor = 0.8
				trait = lustful 
			}
            modifier = {
				factor = 0.8
				trait = gluttonous
			}
            modifier = {
				factor = 0.8
				trait = greedy 
			}
            modifier = {
				factor = 0.8
				trait = slothful
			}
            modifier = {
				factor = 0.8
				trait = envious
			}
            modifier = {
				factor = 0.8
				trait = wroth
			}
            modifier = { 
				factor = 0.8
				trait = proud
			}
			modifier = {
				factor = 0.8
				trait = cruel
			}
			modifier = {
				factor = 0.8
				trait = deceitful
			}
			modifier = {
				factor = 0.8
				trait = craven
			}
			modifier = {
				factor = 0.8
				trait = arbitrary
			}
			modifier = {
				factor = 0.5
				NOT = { has_character_flag = king_converted }
				OR = {
					trait = sympathy_pagans
					trait = sympathy_zoroastrianism
					trait = sympathy_indian
					trait = sympathy_judaism
					trait = sympathy_islam
				}
			}
			modifier = {
				factor = 0.25
				NOR = {
					piety = 1000
					trait = martyr
					trait = paragon
					has_character_flag = converted_king
					has_character_flag = king_converted
					has_landed_title = k_papal_chalcedon
					has_landed_title = k_interim_papacy
					has_landed_title = d_pentarch_constantinople
					controls_religion = yes
				}
			}
			save_event_target_as = new_saint
			if = {
				limit = { NOT = { religion = chalcedonian } }
				religion_head = {
					primary_title = {
						save_event_target_as = religion_head_title
					}
				}
			}
			if = {
				limit = { religion = chalcedonian }
				if = {
					limit = {
						NOT = { rightful_religious_head_scope = { higher_tier_than = COUNT } }
					}
					if = {
						limit = { k_papal_chalcedon = { has_holder = yes } }
						k_papal_chalcedon = { save_event_target_as = religion_head_title }
					}
					if = {
						limit = { k_papal_chalcedon = { has_holder = no } }
						break = yes
					}
				}
				if = {
					limit = {
						rightful_religious_head_scope = { higher_tier_than = COUNT }
					}
					rightful_religious_head_scope = {
						primary_title = {
							save_event_target_as = religion_head_title
						}
					}
				}
			}
			top_liege = {
				capital_scope = {
					set_province_flag = saint_in_progress
					if = {
						limit = { ROOT = { trait = martyr } }
						set_province_flag = martyr_saint
						province_event = { id = Plus.2602 days = 100 random = 100 }
						break = yes
					}
					if = {
						limit = { ROOT = { has_character_flag = schism_mender } }
						set_province_flag = schism_saint
						province_event = { id = Plus.2602 days = 100 random = 100 }
						break = yes
					}
					if = {
						limit = { ROOT = { has_character_flag = converted_king } }
						set_province_flag = converter_saint
						province_event = { id = Plus.2602 days = 100 random = 100 }
						break = yes
					}
					if = {
						limit = { ROOT = { has_character_flag = king_converted } }
						set_province_flag = converted_saint
						province_event = { id = Plus.2602 days = 100 random = 100 }
						break = yes
					}
					if = {
						limit = { ROOT = { has_character_modifier = voice_of_jesus } }
						set_province_flag = voice_jesus_saint
						province_event = { id = Plus.2602 days = 100 random = 100 }
						break = yes
					}
					if = {
						limit = { ROOT = { has_character_modifier = true_christian_knight } }
						set_province_flag = true_knight_saint
						province_event = { id = Plus.2602 days = 100 random = 100 }
						break = yes
					}
					if = {
						limit = {
							ROOT = {
								OR = {
									controls_religion = yes
									has_landed_title = k_papal_chalcedon
									has_landed_title = k_interim_papacy
									has_landed_title = d_pentarch_constantinople
								}
							}
						}
						set_province_flag = religion_head_saint
						province_event = { id = Plus.2602 days = 100 random = 100 }
						break = yes
					}
					set_province_flag = pious_saint
					province_event = { id = Plus.2602 days = 100 random = 100 }
				}
			}
		}
	}
}

# Bounce event
province_event = {
	id = Plus.2602
	
	is_triggered_only = yes
	hide_window = yes
	
	trigger = {
		event_target:religion_head_title = {
			holder_scope = { religion = event_target:new_saint }
		}
	}
	
	immediate = {
		event_target:new_saint = {
			any_dynasty_member = {
				limit = { religion = PREV }
				character_event = { id = Plus.2603 } # notification
			}
		}
		province_event = { id = Plus.2606 days = 90 } # ceremony for the event
	}
}

# Relatives notified of sainthood
character_event = {
	id = Plus.2603
	desc = EVTDESC_Plus_2603
	picture = GFX_evt_pope
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_Plus_2603
	}
}

# Canonization ceremony
narrative_event = {
	id = Plus.2604
	title = EVTNAME_Plus_2604
	picture = GFX_evt_sainthood
	
	desc = {
		text = EVTDESC_Plus_2604_martyr
		trigger = { FROM = { has_province_flag = martyr_saint } }
	}
	desc = {
		text = EVTDESC_Plus_2604_schism
		trigger = { FROM = { has_province_flag = schism_saint } }
	}
	desc = {
		text = EVTDESC_Plus_2604_converter
		trigger = { FROM = { has_province_flag = converter_saint } }
	}
	desc = {
		text = EVTDESC_Plus_2604_converted
		trigger = { FROM = { has_province_flag = converted_saint } }
	}
	desc = {
		text = EVTDESC_Plus_2604_jesus
		trigger = { FROM = { has_province_flag = voice_jesus_saint } }
	}
	desc = {
		text = EVTDESC_Plus_2604_knight
		trigger = { FROM = { has_province_flag = true_knight_saint } }
	}
	desc = {
		text = EVTDESC_Plus_2604_relhead
		trigger = { FROM = { has_province_flag = religion_head_saint } }
	}
	desc = {
		text = EVTDESC_Plus_2604
		trigger = { FROM = { has_province_flag = pious_saint } }
	}
	
	show_from_from_from = yes
	is_triggered_only = yes
	major = yes
	
	major_trigger = {
		religion = event_target:new_saint
	}
	
	immediate = {
		log = "[new_saint.GetTitledName] has been declared a [new_saint.Religion.GetName] saint"
		event_target:new_saint = {
			add_trait = saint
			if = {
				limit = { has_nickname = nick_the_saint }
				remove_nickname = nick_the_saint
				set_character_flag = had_nickname
			}
			if = {
				limit = { has_nickname = nick_the_holy }
				remove_nickname = nick_the_holy
				set_character_flag = had_nickname
			}
			if = {
				limit = { has_nickname = no }
				random_list = {
					5 = {
						give_nickname = nick_the_rel_group
					}
					20 = {
						give_nickname = nick_the_pious
					}
					20 = {
						give_nickname = nick_the_blessed
					}
					20 = {
						give_nickname = nick_the_confessor
					}
					20 = {
						modifier = {
							factor = 0
							NOR = {
								trait = kind
								trait = just
								trait = charitable
							}
						}
						give_nickname = nick_the_good
					}
					20 = {
						modifier = {
							factor = 0
							NOT = { trait = just }
						}
						give_nickname = nick_the_just
					}
					20 = {
						modifier = {
							factor = 0
							NAND = {
								trait = zealous
								trait = just
							}
						}
						give_nickname = nick_the_righteous
					}
					20 = {
						modifier = {
							factor = 0
							OR = {
								trait = arbitrary
								trait = wroth
								is_dumb_trigger = yes
								trait = inbred
							}
							NOR = {
								is_smart_trigger = yes
								trait = just
								trait = patient
								trait = scholar
								trait = theologian
								learning = 12
							}
						}
						give_nickname = nick_the_wise
					}
					20 = {
						modifier = {
							factor = 0
							NOT = { trait = kind }
						}
						give_nickname = nick_the_kind
					}
					20 = {
						modifier = {
							factor = 0
							NOT = { trait = scholar }
						}
						give_nickname = nick_the_scholar
					}
					20 = {
						modifier = {
							factor = 0
							NOT = { trait = crusader }
						}
						give_nickname = nick_the_crusader
					}
					20 = {
						modifier = {
							factor = 0
							NOT = { trait = zealous }
						}
						give_nickname = nick_the_zealot
					}
					40 = {
						modifier = {
							factor = 0
							has_character_flag = had_nickname
						}
					}
				}
				clr_character_flag = had_nickname
			}
					
		}
		FROM = {
			province_event = { id = Plus.2605 days = 1 } #clear flags
		}
	}
	
	option = {
		name = EVTOPTA_Plus_2604
		trigger = {
			dynasty = event_target:new_saint
			NOT = { has_landed_title = event_target:religion_head_title }
		}
		tooltip = { event_target:new_saint = { add_trait = saint } }
		if = {
			limit = {
				OR = {
					mother_even_if_dead = { character = event_target:new_saint }
					father_even_if_dead = { character = event_target:new_saint }
				}
			}
			piety = 100
		}
		if = {
			limit = {
				NOR = {
					mother_even_if_dead = { character = event_target:new_saint }
					father_even_if_dead = { character = event_target:new_saint }
				}
			}
			piety = 25
		}
		if = {
			limit = { ai = no }
			chronicle = {
				entry = CHRONICLE_NEW_SAINT
				picture = GFX_evt_sainthood
			}
		}
	}
	option = {
		name = EVTOPTA_Plus_2604
		trigger = {
			NOT = { dynasty = event_target:new_saint }
			NOT = { has_landed_title = event_target:religion_head_title }
		}
		tooltip = { event_target:new_saint = { add_trait = saint } }
	}
	option = {
		name = EVTOPTA_Plus_2604
		trigger = {
			has_landed_title = event_target:religion_head_title
		}
		tooltip = { event_target:new_saint = { add_trait = saint } }
		if = {
			limit = { NOT = { religion_authority = 0.75 } }
			religion_authority = { modifier = new_saint }
		}
		piety = 100
	}
}

# Clear flags
province_event = {
	id = Plus.2605
	
	hide_window = yes
	is_triggered_only = yes
	
	immediate = {
		event_target:new_saint = { set_special_character_title = SAINT_TITLE }
		log = "[new_saint.GetTitledNameWithNick] has been declared a [new_saint.Religion.GetName] saint"
		clr_province_flag = saint_in_progress
		clr_province_flag = martyr_saint
		clr_province_flag = schism_saint
		clr_province_flag = converter_saint
		clr_province_flag = converted_saint
		clr_province_flag = voice_jesus_saint
		clr_province_flag = true_knight_saint
		clr_province_flag = religion_head_saint
		clr_province_flag = pious_saint
	}
}

# Bounce event for ceremony
province_event = {
	id = Plus.2606
	
	hide_window = yes
	is_triggered_only = yes
	
	immediate = {
		event_target:religion_head_title = {
			holder_scope = {
				narrative_event = { id = Plus.2604 }
			}
		}
	}
}

### 'BECOME A SAINT' AMBITION EVENTS

# Introduction event once ambition is started
character_event = {
	id = Plus.2610
	desc = EVTDESC_Plus_2610
	picture = GFX_evt_sainthood
	border = GFX_event_normal_frame_religion
	
	hide_from = yes
	is_triggered_only = yes
	
	immediate = {
		set_variable = { which = "theosis_ambition" value = 0 }
	}
	
	option = {
		name = EVTOPTA_Plus_2610
	}
}

# Event: build a church in a local town?
character_event = {
	id = Plus.2611
	desc = EVTDESC_Plus_2611
	picture = GFX_evt_stone_church
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	
	trigger = {
		has_ambition = obj_become_saint
		wealth = 50
		NOR = {
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_built_church
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_built_church
	}
	
	option = {
		name = EVTOPTA_Plus_2611 #Build it
		piety = 25
		scaled_wealth = { value = -0.5 min = -50 }
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
	option = {
		name = EVTOPTB_Plus_2611 #No, there are enough churches
		trigger = { ai = no }
		piety = -25
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = -1 }
		}
	}
}

# Event: administering to the sick
character_event = {
	id = Plus.2612
	desc = EVTDESC_Plus_2612
	picture = GFX_evt_monastery_monks
	border = GFX_event_normal_frame_religion
	
	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	is_sick = no

	trigger = {
		has_ambition = obj_become_saint
		#is_ill = no
		NOR = {
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_treat_sick
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_treat_sick
	}
	
	option = {
		name = EVTOPTA_Plus_2612 #I will help them
		trigger = {
			NOT = { trait = scholar }
			NOT = { learning = 12 }
		}
		piety = 25
		random_list = {
			50 = {
				give_ill_effect = yes
				hidden_tooltip = {
					character_event = { id = 38290 } #notification
				}
			}
			25 = { give_pneumonic_effect = yes }
			10 = {
				modifier = {
					factor = 2
					health = 4
				}
				modifier = {
					factor = 2
					health = 6
				}
				modifier = {
					factor = 2
					health = 8
				}
			}
		}
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
	option = {
		name = EVTOPTA_Plus_2612 #I will help them
		trigger = {
			NOT = { trait = scholar }
			learning = 12
		}
		tooltip_info = learning
		piety = 25
		random_list = {
			50 = {
				give_ill_effect = yes
				hidden_tooltip = {
					character_event = { id = 38290 } #notification
				}
			}
			50 = {
				modifier = {
					factor = 2
					health = 4
				}
				modifier = {
					factor = 2
					health = 6
				}
				modifier = {
					factor = 2
					health = 8
				}
			}
		}
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
	option = {
		name = EVTOPTA_Plus_2612 #I will help them
		trigger = { trait = scholar }
		tooltip_info = scholar
		piety = 25
		change_learning = 1
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
	option = {
		name = EVTOPTB_Plus_2612 #No, that's too dangerous
		trigger = { ai = no }
		piety = -25
		if = {
			limit = {
				NOT = { trait = craven }
				NOT = { trait = brave }
			}
			random = {
				chance = 50
				add_trait = craven
				hidden_tooltip = {
					character_event = { id = 38259 } #notification
				}
			}
		}
		if = {
			limit =  { trait = brave }
			random = {
				chance = 50
				remove_trait = brave
			}
		}
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = -1 }
		}
	}
}

# Event: the sick believe you can heal them
character_event = {
	id = Plus.2613
	desc = EVTDESC_Plus_2613
	picture = GFX_evt_monastery_monks
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	has_character_flag = sainthood_treat_sick
	capable_only = yes
	prisoner = no
	war = no
	is_sick = no
	
	trigger = {
		has_ambition = obj_become_saint
		check_variable = { which = "theosis_ambition" value = 5 }
		#is_ill = no
		NOR = {
			trait = craven
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_heal_sick
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 50
	}
	
	immediate = {
		set_character_flag = sainthood_heal_sick
	}
	
	option = {
		name = EVTOPTA_Plus_2613 #I will touch him
		piety = 50
		random_list = {
			10 = {
				give_ill_effect = yes
				hidden_tooltip = {
					character_event = { id = 38290 } #notification
				}
			}
			10 = { give_pneumonic_effect = yes }
			10 = { give_has_tuberculosis_effect = yes }
			10 = { give_has_typhoid_fever_effect = yes }
			10 = { give_food_poisoning_effect = yes }
			10 = { give_has_measles_effect = yes }
			10 = { give_has_small_pox_effect = yes }
			10 = {
				modifier = {
					factor = 0
					NOT = { year = 1300 }
				}
				give_has_bubonic_plague_effect = yes
			}
			25 = {
				modifier = {
					factor = 2
					health = 4
				}
				modifier = {
					factor = 2
					health = 6
				}
				modifier = {
					factor = 2
					health = 8
				}
			}
		}
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 2 }
		}
	}
	option = {
		name = EVTOPTB_Plus_2613 #No, it doesn't work that way
		trigger = { ai = no }
		piety = -50
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = -1 }
		}
	}
}

# Event: visiting a remote ascetic
character_event = {
	id = Plus.2614
	desc = EVTDESC_Plus_2614
	picture = GFX_evt_boatcoast
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	is_sick = no
	
	trigger = {
		has_ambition = obj_become_saint
		#is_ill = no
		NOR = {
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_visit_ascetic
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 200
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_visit_ascetic
	}
	
	option = {
		name = EVTOPTA_Plus_2614 #Make the journey
		piety = 25
		health = -1.0
		random = {
			chance = 25
			give_ill_effect = yes
			hidden_tooltip = {
				character_event = { id = 38290 } #notification
			}
		}
		random_list = {
			50 = { change_learning = 1 }
			25 = { change_learning = 2 }
			25 = {}
		}
		hidden_tooltip = {
			add_character_modifier = {
				name = do_not_disturb
				duration = 60
				hidden = yes
			}
			change_variable = { which = "health_lost" value = 1.0 }
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
	option = {
		name = EVTOPTB_Plus_2614 #No, it's not worth it
		trigger = { ai = no }
		piety = -25
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = -1 }
		}
	}
}

# Event: take monastic vows?
character_event = {
	id = Plus.2615
	desc = EVTDESC_Plus_2615
	picture = GFX_evt_monastery_monks
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	
	trigger = {
		has_ambition = obj_become_saint
		is_theocracy = no
		OR = {
			is_ruler = no
			current_heir = { dynasty = ROOT }
			NOT = { fertility = 0.05 }
		}
		NOR = {
			trait = monk
			trait = nun
			trait = desert_father
			trait = desert_mother
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_take_vows
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 200
		modifier = {
			factor = 2
			NOT = { age = 40 }
		}
		modifier = {
			factor = 0.5
			age = 50
		}
		modifier = {
			factor = 0.5
			age = 55
		}
		modifier = {
			factor = 0.5
			age = 60
		}
		modifier = {
			factor = 1.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_take_vows
	}
	
	option = {
		name = EVTOPTA_Plus_2615 #I will live my life in the service of God
		piety = 100
		if = {
			limit = { is_ruler = no }
			#get rid of estates
			if = {
				limit = { has_minor_title = title_lord }
				remove_title = title_lord
			}
			if = {
				limit = { has_character_modifier = estates_1 }
				remove_character_modifier = estates_1
				wealth = 40
			}
			if = {
				limit = { has_character_modifier = estates_2 }
				remove_character_modifier = estates_2
				wealth = 80
			}
			if = {
				limit = { has_character_modifier = estates_3 }
				remove_character_modifier = estates_3
				wealth = 120
			}
			if = {
				limit = { has_character_modifier = estates_4 }
				remove_character_modifier = estates_4
				wealth = 160
			}
			if = {
				limit = { has_character_modifier = estates_5 }
				remove_character_modifier = estates_5
				wealth = 200
			}
		}
		current_heir = {
			character_event = { id = Plus.121 days = 1 }
		}
		if = {
			limit = { is_ruler = yes }
			abdicate = yes
			add_trait = abdicated
		}
		change_learning = 1
		if = {
			limit = {
				OR = {
					religion = miaphysite
					religion = monophysite
				}
			}
			if = {
				limit = { is_female = yes }
				add_trait = desert_mother
				set_character_flag = title_desert_mother
				set_special_character_title = DESERT_MOTHER_TITLE
			}
			if = {
				limit = { is_female = no }
				add_trait = desert_father
				set_character_flag = title_desert_father
				set_special_character_title = DESERT_FATHER_TITLE
			}
		}
		if = {
			limit = {
				NOR = {
					religion = miaphysite
					religion = monophysite
				}
			}
			if = {
				limit = { is_female = yes }
				add_trait = nun
				set_character_flag = title_nun
				set_special_character_title = NUN_SISTER
			}
			if = {
				limit = { is_female = no }
				add_trait = monk
				set_character_flag = title_monk
				set_special_character_title = MONK_BROTHER
			}
		}
		if = {
			limit = {
				NOT = { trait = content }
				NOT = { trait = ambitious }
			}
			random = {
				chance = 50
				add_trait = content
			}
		}
		if = {
			limit = { trait = ambitious }
			remove_trait = ambitious
		}
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 2 }
		}
	}
	option = {
		name = EVTOPTB_Plus_2615 #No, I am meant for better things
		trigger = { ai = no }
		piety = -50
		if = {
			limit = {
				NOT = { trait = content }
				NOT = { trait = ambitious }
			}
			random = {
				chance = 50
				add_trait = ambitious
			}
		}
		if = {
			limit = { trait = content }
			random = {
				chance = 50
				remove_trait = content
			}
		}
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = -1 }
		}
	}
}

# Event: you have too much wealth
character_event = {
	id = Plus.2616
	desc = EVTDESC_Plus_2616
	picture = GFX_evt_throne_room
	border = GFX_event_normal_frame_religion

	hide_from = yes

	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	
	trigger = {
		has_ambition = obj_become_saint
		OR = {
			wealth = 100
			has_character_modifier = estates_1
			has_character_modifier = estates_2
			has_character_modifier = estates_3
			has_character_modifier = estates_4
		}
		NOR = {
			trait = greedy
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_too_much_wealth
			has_character_flag = loan_taken
			check_variable = { which = "loan_amount" value = 49.5 }
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_too_much_wealth
	}
	
	option = {
		name = EVTOPTA_Plus_2616 #Give it away
		piety = 50
		if = {
			limit = { is_ruler = no }
			#get rid of estates
			if = {
				limit = { has_minor_title = title_lord }
				remove_title = title_lord
			}
			if = {
				limit = { has_character_modifier = estates_1 }
				remove_character_modifier = estates_1
				wealth = 40
			}
			if = {
				limit = { has_character_modifier = estates_2 }
				remove_character_modifier = estates_2
				wealth = 80
			}
			if = {
				limit = { has_character_modifier = estates_3 }
				remove_character_modifier = estates_3
				wealth = 120
			}
			if = {
				limit = { has_character_modifier = estates_4 }
				remove_character_modifier = estates_4
				wealth = 160
			}
			if = {
				limit = { has_character_modifier = estates_5 }
				remove_character_modifier = estates_5
				wealth = 200
			}
		}
		if = {
			limit = { wealth = 250 }
			set_character_flag = double_amount
		}
		clear_wealth = yes
		hidden_tooltip = {
			if = {
				limit = { has_character_flag = double_amount }
				clr_character_flag = double_amount
				change_variable = { which = "theosis_ambition" value = 2 }
				break = yes
			}
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
	option = {
		name = EVTOPTB_Plus_2616 #Give it away? Are you crazy?
		trigger = { ai = no }
		piety = -50
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = -1 }
		}
	}
}

# Event: the stigmata
character_event = {
	id = Plus.2617
	desc = EVTDESC_Plus_2617
	picture = GFX_evt_bad_news
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	is_sick = yes
	
	trigger = {
		has_ambition = obj_become_saint
		piety = 250
		#is_ill = yes
		NOR = {
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_stigmata
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 3
		modifier = {
			factor = 0.25
			check_variable = { which = "theosis_ambition" value = 5 }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_stigmata
	}
	
	option = {
		name = EVTOPTA_Plus_2617 #Perhaps I am truly blessed
		piety = 100
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
}

# Event: support of a priest
character_event = {
	id = Plus.2618
	desc = EVTDESC_Plus_2618
	picture = GFX_evt_bishop
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	
	trigger = {
		has_ambition = obj_become_saint
		NOT = { has_character_flag = sainthood_priest_support }
		check_variable = { which = "theosis_ambition" value = 3 }
		top_liege = {
			any_realm_lord = {
				is_theocracy = yes
				prisoner = no
				piety = 100
				opinion = { who = ROOT value = 50 }
				religion = ROOT
				NOR = {
					character = ROOT
					distance = { who = ROOT value = 75 }
					trait = cynical
					trait = paranoid
					trait = slothful
					trait = incapable
				}
			}
		}
		NOR = {
			is_inaccessible_trigger = yes
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_priest_support
		top_liege = {
			random_realm_lord = {
				limit = {
					is_theocracy = yes
					prisoner = no
					piety = 100
					opinion = { who = ROOT value = 50 }
					religion = ROOT
					NOR = {
						character = ROOT
						distance = { who = ROOT value = 75 }
						trait = cynical
						trait = paranoid
						trait = slothful
						trait = incapable
					}
				}
				save_event_target_as = supporting_priest
			}
		}
	}
	
	option = {
		name = EXCELLENT
		piety = 25
		add_friend = event_target:supporting_priest
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
}

# Event: a priest doubts you
character_event = {
	id = Plus.2619
	desc = EVTDESC_Plus_2619
	picture = GFX_evt_bishop
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	
	trigger = {
		has_ambition = obj_become_saint
		NOT = { has_character_flag = sainthood_priest_doubt }
		top_liege = {
			any_realm_lord = {
				is_theocracy = yes
				prisoner = no
				piety = 100
				NOT = { opinion = { who = ROOT value = 0 } }
				religion = ROOT
				OR = {
					trait = zealous
					trait = paranoid
					trait = wroth
				}
				NOR = {
					character = ROOT
					distance = { who = ROOT value = 75 }
					trait = slothful
					trait = incapable
				}
			}
		}
		NOR = {
			is_inaccessible_trigger = yes
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_priest_doubt
		top_liege = {
			random_realm_lord = {
				limit = {
					is_theocracy = yes
					prisoner = no
					piety = 100
					NOT = { opinion = { who = ROOT value = 0 } }
					religion = ROOT
					OR = {
						trait = zealous
						trait = paranoid
						trait = wroth
					}
					NOR = {
						character = ROOT
						distance = { who = ROOT value = 75 }
						trait = slothful
						trait = incapable
					}
				}
				save_event_target_as = doubting_priest
			}
		}
	}
	
	option = {
		name = EVTOPTA_Plus_2619 # Allow him to test me
		random_list = {
			50 = {
				modifier = {
					factor = 0.5
					NOT = { reverse_opinion = { who = event_target:doubting_priest value = -50 } }
				}
				modifier = {
					factor = 1.2
					piety = 250
					NOT = { piety = 500 }
				}
				modifier = {
					factor = 1.5
					piety = 500
				}
				modifier = {
					factor = 1.2
					trait = chaste
				}
				modifier = {
					factor = 1.2
					trait = temperate
				}
				modifier = {
					factor = 1.2
					trait = charitable
				}
				modifier = {
					factor = 1.2
					trait = diligent
				}
				modifier = {
					factor = 1.2
					trait = kind
				}
				modifier = {
					factor = 1.2
					trait = patient
				}
				modifier = {
					factor = 1.2
					trait = honest
				}
				modifier = {
					factor = 1.2
					trait = just
				}
				modifier = {
					factor = 1.5
					trait = humble
				}
				modifier = {
					factor = 1.5
					trait = zealous
				}
				modifier = {
					factor = 1.5
					trait = celibate
				}
				modifier = {
					factor = 0.8
					trait = lustful
				}
				modifier = {
					factor = 0.8
					trait = gluttonous
				}
				modifier = {
					factor = 0.8
					trait = greedy
				}
				modifier = {
					factor = 0.8
					trait = envious
				}
				modifier = {
					factor = 0.8
					trait = slothful
				}
				modifier = {
					factor = 0.8
					trait = cruel
				}
				modifier = {
					factor = 0.8
					trait = wroth
				}
				modifier = {
					factor = 0.8
					trait = deceitful
				}
				modifier = {
					factor = 0.8
					trait = arbitrary
				}
				modifier = {
					factor = 0.8
					trait = impaler
				}
				modifier = {
					factor = 0.5
					trait = proud
				}
				modifier = {
					factor = 0.5
					trait = hedonist
				}
				modifier = {
					factor = 0.8
					NOT = { learning = 6 }
				}
				modifier = {
					factor = 0.8
					NOT = { learning = 8 }
				}
				modifier = {
					factor = 1.2
					learning = 12
				}
				modifier = {
					factor = 1.2
					learning = 14
				}
				custom_tooltip = {
					text = PRIEST_WON_OVER
					hidden_tooltip = {
						character_event = { id = Plus.2620 days = 7 }
					}
				}
			}
			50 = {
				custom_tooltip = {
					text = PRIEST_CONDEMNS
					hidden_tooltip = {
						character_event = { id = Plus.2621 days = 7 }
					}
				}
			}
		}
		hidden_tooltip = {
			add_character_modifier = {
				name = do_not_disturb
				duration = 7
				hidden = yes
			}
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
	option = {
		name = EVTOPTB_Plus_2619 # Refuse
		trigger = { ai = no }
		piety = -50
		add_rival = event_target:doubting_priest
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = -1 }
		}
	}
}

# The doubting priest is won over
character_event = {
	id = Plus.2620
	desc = EVTDESC_Plus_2620
	picture = GFX_evt_bishop
	border = GFX_event_normal_frame_religion

	hide_from = yes
	is_triggered_only = yes
	
	option = {
		name = EXCELLENT
		piety = 100
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 2 }
		}
	}
}

# The doubting priest condemns you
character_event = {
	id = Plus.2621
	desc = EVTDESC_Plus_2621
	picture = GFX_evt_bishop
	border = GFX_event_normal_frame_religion

	hide_from = yes
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_Plus_2621
		piety = -100
		add_rival = event_target:doubting_priest
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = -2 }
		}
	}
}

# High Piety
character_event = {
	id = Plus.2622
	desc = EVTDESC_Plus_2622
	picture = GFX_evt_sainthood
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		OR = {
			AND = {
				piety = 250
				NOT = { has_character_flag = sainthood_piety1 }
			}
			AND = {
				piety = 500
				NOT = { has_character_flag = sainthood_piety2 }
			}
			AND = {
				piety = 1000
				NOT = { has_character_flag = sainthood_piety3 }
			}
			AND = {
				piety = 2000
				NOT = { has_character_flag = sainthood_piety4 }
			}
		}
		NOR = {
			is_inaccessible_trigger = yes
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		if = {
			limit = {
				piety = 250
				NOT = { has_character_flag = sainthood_piety1 }
			}
			set_character_flag = sainthood_piety1
			break = yes
		}
		if = {
			limit = {
				piety = 500
				NOT = { has_character_flag = sainthood_piety2 }
			}
			set_character_flag = sainthood_piety2
			break = yes
		}
		if = {
			limit = {
				piety = 1000
				NOT = { has_character_flag = sainthood_piety3 }
			}
			set_character_flag = sainthood_piety3
			break = yes
		}
		if = {
			limit = {
				piety = 2000
				NOT = { has_character_flag = sainthood_piety4 }
			}
			set_character_flag = sainthood_piety4
			break = yes
		}
	}
	
	option = {
		name = EXCELLENT
		piety = 25
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
}

# Exceptional Learning
character_event = {
	id = Plus.2623
	desc = EVTDESC_Plus_2623
	picture = GFX_evt_monk
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		learning = 15
		NOR = {
			has_character_flag = sainthood_high_learning
			check_variable = { which = "theosis_ambition" value = 10 }
		}
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_high_learning
	}
	
	option = {
		name = EXCELLENT
		piety = 25
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
}

# Exceptional Diplomacy
character_event = {
	id = Plus.2624
	desc = EVTDESC_Plus_2624
	picture = GFX_evt_emissary
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		diplomacy = 15
		NOR = {
			has_character_flag = sainthood_high_diplomacy
			check_variable = { which = "theosis_ambition" value = 10 }
		}
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_high_diplomacy
	}
	
	option = {
		name = EXCELLENT
		piety = 25
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
}

# Exceptional Martial
character_event = {
	id = Plus.2625
	desc = EVTDESC_Plus_2625
	picture = GFX_evt_large_army
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		martial = 15
		OR = {
			trait = crusader
			trait = holy_warrior
			has_character_modifier = true_christian_knight
		}
		NOR = {
			has_character_flag = sainthood_high_martial
			check_variable = { which = "theosis_ambition" value = 10 }
		}
	}
	
	mean_time_to_happen = {
		months = 50
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_high_martial
	}
	
	option = {
		name = EXCELLENT
		piety = 25
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
}

# Homosexual/Lustful/Hedonist/Seducer/Seductress
character_event = {
	id = Plus.2626
	desc = EVTDESC_Plus_2626
	picture = GFX_evt_brothel
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	
	trigger = {
		has_ambition = obj_become_saint
		OR = {
			trait = homosexual
			trait = lustful
			trait = hedonist
			trait = seducer
			trait = seductress
		}
		NOT = {
			is_inaccessible_trigger = yes
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 1.5
			trait = stressed
		}
		modifier = {
			factor = 1.5
			trait = depressed
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	option = {
		name = EVTOPTA_Plus_2626 #Make the attempt
		random_list = {
			50 = {
				modifier = {
					factor = 2.0
					trait = homosexual
				}
				modifier = {
					factor = 2.0
					calc_true_if = {
						amount = 2
						trait = homosexual
						trait = lustful
						trait = hedonist
						trait = seducer
						trait = seductress
					}
				}
				modifier = {
					factor = 2.0
					calc_true_if = {
						amount = 3
						trait = homosexual
						trait = lustful
						trait = hedonist
						trait = seducer
						trait = seductress
					}
				}
				modifier = {
					factor = 2.0
					calc_true_if = {
						amount = 4
						trait = homosexual
						trait = lustful
						trait = hedonist
						trait = seducer
						trait = seductress
					}
				}
				custom_tooltip = {
					text = ATTEMPT_FAILS
					hidden_tooltip = {
						set_character_flag = lustful_fail
						character_event = { id = Plus.2637 days = 15 }
					}
				}
			}
			50 = {
				modifier = {
					factor = 1.5
					trait = zealous
				}
				modifier = {
					factor = 1.2
					trait = diligent
				}
				modifier = {
					factor = 1.2
					trait = temperate
				}
				modifier = {
					factor = 0.8
					trait = slothful
				}
				modifier = {
					factor = 0.8
					trait = gluttonous
				}
				modifier = {
					factor = 0.8
					trait = stressed
				}
				modifier = {
					factor = 0.8
					trait = depressed
				}
				modifier = {
					factor = 0.5
					trait = drunkard
				}
				tooltip = {
					if = {
						limit = { trait = homosexual }
						remove_trait = homosexual
					}
					if = {
						limit = { trait = lustful }
						remove_trait = lustful
					}
					if = {
						limit = { trait = hedonist }
						remove_trait = hedonist
					}
					if = {
						limit = { trait = seducer }
						remove_trait = seducer
					}
					if = {
						limit = { trait = seductress }
						remove_trait = seductress
					}
				}
				custom_tooltip = {
					text = ATTEMPT_SUCCEEDS
					hidden_tooltip = {
						set_character_flag = lustful_succeed
						character_event = { id = Plus.2638 days = 15 }
					}
				}
			}
		}
		hidden_tooltip = {
			add_character_modifier = {
				name = do_not_disturb
				duration = 15
				hidden = yes
			}
		}
	}
	option = {
		name = EVTOPTB_Plus_2626 #It's not worth it
		trigger = { ai = no }
		piety = -50
		cancel_ambition = yes
	}
}

# Gluttonous
character_event = {
	id = Plus.2627
	desc = EVTDESC_Plus_2627
	picture = GFX_evt_feast
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	is_sick = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = gluttonous
		#is_ill = no
		NOT = {
			is_inaccessible_trigger = yes
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 1.5
			trait = stressed
		}
		modifier = {
			factor = 1.5
			trait = depressed
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	option = {
		name = EVTOPTA_Plus_2626 #Make the attempt
		random_list = {
			50 = {
				modifier = {
					factor = 1.5
					NOT = { health = 4 }
				}
				custom_tooltip = {
					text = ATTEMPT_FAILS
					hidden_tooltip = {
						set_character_flag = gluttonous_fail
						character_event = { id = Plus.2637 days = 15 }
					}
				}
			}
			50 = {
				modifier = {
					factor = 1.5
					trait = zealous
				}
				modifier = {
					factor = 1.2
					trait = diligent
				}
				modifier = {
					factor = 0.8
					trait = slothful
				}
				modifier = {
					factor = 0.8
					trait = greedy
				}
				modifier = {
					factor = 0.8
					trait = stressed
				}
				modifier = {
					factor = 0.8
					trait = depressed
				}
				modifier = {
					factor = 0.5
					trait = drunkard
				}
				modifier = {
					factor = 1.2
					health = 6
				}
				modifier = {
					factor = 1.2
					health = 7
				}
				custom_tooltip = {
					text = ATTEMPT_SUCCEEDS
					tooltip = { remove_trait = gluttonous }
					hidden_tooltip = {
						set_character_flag = gluttonous_succeed
						character_event = { id = Plus.2638 days = 15 }
					}
				}
			}
		}
		hidden_tooltip = {
			add_character_modifier = {
				name = do_not_disturb
				duration = 15
				hidden = yes
			}
		}
	}
	option = {
		name = EVTOPTB_Plus_2626 #It's not worth it
		trigger = { ai = no }
		piety = -50
		cancel_ambition = yes
	}
}

# Greedy
character_event = {
	id = Plus.2628
	desc = EVTDESC_Plus_2628
	picture = GFX_evt_market
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = greedy
		NOR = {
			is_inaccessible_trigger = yes
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 1.5
			trait = stressed
		}
		modifier = {
			factor = 1.5
			trait = depressed
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	option = {
		name = EVTOPTA_Plus_2626 #Make the attempt
		random_list = {
			50 = {
				custom_tooltip = {
					text = ATTEMPT_FAILS
					hidden_tooltip = {
						set_character_flag = greedy_fail
						character_event = { id = Plus.2637 days = 15 }
					}
				}
			}
			50 = {
				modifier = {
					factor = 1.2
					trait = zealous
				}
				modifier = {
					factor = 1.5
					trait = humble
				}
				modifier = {
					factor = 1.2
					trait = diligent
				}
				modifier = {
					factor = 1.2
					trait = kind
				}
				modifier = {
					factor = 0.8
					trait = slothful
				}
				modifier = {
					factor = 0.5
					trait = envious
				}
				modifier = {
					factor = 0.8
					trait = proud
				}
				modifier = {
					factor = 0.8
					trait = stressed
				}
				modifier = {
					factor = 0.8
					trait = depressed
				}
				tooltip = { remove_trait = greedy }
				custom_tooltip = {
					text = ATTEMPT_SUCCEEDS
					hidden_tooltip = {
						set_character_flag = greedy_succeed
						character_event = { id = Plus.2638 days = 15 }
					}
				}
			}
		}
		hidden_tooltip = {
			add_character_modifier = {
				name = do_not_disturb
				duration = 15
				hidden = yes
			}
		}
	}
	option = {
		name = EVTOPTB_Plus_2626 #It's not worth it
		trigger = { ai = no }
		piety = -50
		cancel_ambition = yes
	}
}

# Slothful
character_event = {
	id = Plus.2629
	desc = EVTDESC_Plus_2629
	picture = GFX_evt_illness
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	is_sick = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = slothful
		#is_ill = no
		NOT = {
			is_inaccessible_trigger = yes
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 1.5
			trait = stressed
		}
		modifier = {
			factor = 1.5
			trait = depressed
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	option = {
		name = EVTOPTA_Plus_2626 #Make the attempt
		random_list = {
			50 = {
				custom_tooltip = {
					text = ATTEMPT_FAILS
					hidden_tooltip = {
						set_character_flag = slothful_fail
						character_event = { id = Plus.2637 days = 15 }
					}
				}
			}
			50 = {
				modifier = {
					factor = 1.5
					trait = zealous
				}
				modifier = {
					factor = 1.2
					is_strong_trigger = yes
				}
				modifier = {
					factor = 1.2
					trait = ambitious
				}
				modifier = {
					factor = 0.8
					is_weak_trigger = yes
				}
				modifier = {
					factor = 0.5
					trait = envious
				}
				modifier = {
					factor = 0.8
					trait = content
				}
				modifier = {
					factor = 0.8
					trait = stressed
				}
				modifier = {
					factor = 0.8
					trait = depressed
				}
				tooltip = { remove_trait = slothful }
				custom_tooltip = {
					text = ATTEMPT_SUCCEEDS
					hidden_tooltip = {
						set_character_flag = slothful_succeed
						character_event = { id = Plus.2638 days = 15 }
					}
				}
			}
		}
		hidden_tooltip = {
			add_character_modifier = {
				name = do_not_disturb
				duration = 15
				hidden = yes
			}
		}
	}
	option = {
		name = EVTOPTB_Plus_2626 #It's not worth it
		trigger = { ai = no }
		piety = -50
		cancel_ambition = yes
	}
}

# Envious
character_event = {
	id = Plus.2630
	desc = EVTDESC_Plus_2630
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = envious
		NOT = {
			is_inaccessible_trigger = yes
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 1.5
			trait = stressed
		}
		modifier = {
			factor = 1.5
			trait = depressed
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	option = {
		name = EVTOPTA_Plus_2626 #Make the attempt
		random_list = {
			50 = {
				custom_tooltip = {
					text = ATTEMPT_FAILS
					hidden_tooltip = {
						set_character_flag = envious_fail
						character_event = { id = Plus.2637 days = 15 }
					}
				}
			}
			50 = {
				modifier = {
					factor = 1.2
					trait = zealous
				}
				modifier = {
					factor = 1.5
					trait = humble
				}
				modifier = {
					factor = 1.2
					trait = diligent
				}
				modifier = {
					factor = 1.2
					trait = kind
				}
				modifier = {
					factor = 0.8
					trait = slothful
				}
				modifier = {
					factor = 0.5
					trait = greedy
				}
				modifier = {
					factor = 0.8
					trait = proud
				}
				modifier = {
					factor = 0.8
					trait = stressed
				}
				modifier = {
					factor = 0.8
					trait = depressed
				}
				tooltip = { remove_trait = envious }
				custom_tooltip = {
					text = ATTEMPT_SUCCEEDS
					hidden_tooltip = {
						set_character_flag = envious_succeed
						character_event = { id = Plus.2638 days = 15 }
					}
				}
			}
		}
		hidden_tooltip = {
			add_character_modifier = {
				name = do_not_disturb
				duration = 15
				hidden = yes
			}
		}
	}
	option = {
		name = EVTOPTB_Plus_2626 #It's not worth it
		trigger = { ai = no }
		piety = -50
		cancel_ambition = yes
	}
}

# Cruel
character_event = {
	id = Plus.2631
	desc = EVTDESC_Plus_2631
	picture = GFX_evt_sainthood
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = cruel
		NOT = {
			is_inaccessible_trigger = yes
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 1.5
			trait = stressed
		}
		modifier = {
			factor = 1.5
			trait = depressed
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	option = {
		name = EVTOPTA_Plus_2626 #Make the attempt
		random_list = {
			50 = {
				modifier = {
					factor = 2.0
					trait = impaler
				}
				custom_tooltip = {
					text = ATTEMPT_FAILS
					hidden_tooltip = {
						set_character_flag = cruel_fail
						character_event = { id = Plus.2637 days = 15 }
					}
				}
			}
			50 = {
				modifier = {
					factor = 0.8
					trait = zealous
				}
				modifier = {
					factor = 1.5
					trait = humble
				}
				modifier = {
					factor = 1.2
					trait = patient
				}
				modifier = {
					factor = 1.2
					trait = diligent
				}
				modifier = {
					factor = 1.2
					trait = slothful
				}
				modifier = {
					factor = 0.8
					trait = greedy
				}
				modifier = {
					factor = 0.8
					trait = envious
				}
				modifier = {
					factor = 0.8
					trait = proud
				}
				modifier = {
					factor = 0.8
					trait = stressed
				}
				modifier = {
					factor = 0.8
					trait = depressed
				}
				modifier = {
					factor = 0.5
					trait = drunkard
				}
				tooltip = { remove_trait = cruel }
				custom_tooltip = {
					text = ATTEMPT_SUCCEEDS
					hidden_tooltip = {
						set_character_flag = cruel_succeed
						character_event = { id = Plus.2638 days = 15 }
					}
				}
			}
		}
		hidden_tooltip = {
			add_character_modifier = {
				name = do_not_disturb
				duration = 15
				hidden = yes
			}
		}
	}
	option = {
		name = EVTOPTB_Plus_2626 #It's not worth it
		trigger = { ai = no }
		piety = -50
		cancel_ambition = yes
	}
}

# Wroth
character_event = {
	id = Plus.2632
	desc = EVTDESC_Plus_2632
	picture = GFX_evt_burning_house
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = wroth
		NOT = {
			is_inaccessible_trigger = yes
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 1.5
			trait = stressed
		}
		modifier = {
			factor = 1.5
			trait = depressed
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	option = {
		name = EVTOPTA_Plus_2626 #Make the attempt
		random_list = {
			50 = {
				modifier = {
					factor = 1.5
					OR = {
						trait = duelist
						trait = impaler
					}
				}
				custom_tooltip = {
					text = ATTEMPT_FAILS
					hidden_tooltip = {
						set_character_flag = wroth_fail
						character_event = { id = Plus.2637 days = 15 }
					}
				}
			}
			50 = {
				modifier = {
					factor = 0.8
					trait = zealous
				}
				modifier = {
					factor = 1.5
					trait = humble
				}
				modifier = {
					factor = 1.2
					trait = patient
				}
				modifier = {
					factor = 1.2
					trait = diligent
				}
				modifier = {
					factor = 1.2
					trait = slothful
				}
				modifier = {
					factor = 0.8
					trait = greedy
				}
				modifier = {
					factor = 0.8
					trait = envious
				}
				modifier = {
					factor = 0.8
					trait = proud
				}
				modifier = {
					factor = 0.8
					trait = stressed
				}
				modifier = {
					factor = 0.8
					trait = depressed
				}
				modifier = {
					factor = 0.5
					trait = drunkard
				}
				modifier = {
					factor = 1.2
					NOT = { martial = 8 }
				}
				modifier = {
					factor = 0.8
					martial = 12
				}
				tooltip = { remove_trait = wroth }
				custom_tooltip = {
					text = ATTEMPT_SUCCEEDS
					hidden_tooltip = {
						set_character_flag = wroth_succeed
						character_event = { id = Plus.2638 days = 15 }
					}
				}
			}
		}
		hidden_tooltip = {
			add_character_modifier = {
				name = do_not_disturb
				duration = 15
				hidden = yes
			}
		}
	}
	option = {
		name = EVTOPTB_Plus_2626 #It's not worth it
		trigger = { ai = no }
		piety = -50
		cancel_ambition = yes
	}
}

# Proud
character_event = {
	id = Plus.2633
	desc = EVTDESC_Plus_2633
	picture = GFX_evt_victory_arch_byzantine
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = proud
		NOT = {
			is_inaccessible_trigger = yes
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 1.5
			trait = stressed
		}
		modifier = {
			factor = 1.5
			trait = depressed
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	option = {
		name = EVTOPTA_Plus_2626 #Make the attempt
		random_list = {
			50 = {
				modifier = {
					factor = 1.5
					is_ruler = yes
					lower_tier_than = DUKE
				}
				modifier = {
					factor = 2.0
					is_ruler = yes
					higher_tier_than = COUNT
				}
				modifier = {
					factor = 1.5
					prestige = 1000
				}
				custom_tooltip = {
					text = ATTEMPT_FAILS
					hidden_tooltip = {
						set_character_flag = proud_fail
						character_event = { id = Plus.2637 days = 15 }
					}
				}
			}
			50 = {
				modifier = {
					factor = 1.5
					is_ruler = no
				}
				modifier = {
					factor = 1.5
					trait = content
				}
				modifier = {
					factor = 1.2
					trait = zealous
				}
				modifier = {
					factor = 1.2
					trait = patient
				}
				modifier = {
					factor = 1.2
					trait = diligent
				}
				modifier = {
					factor = 1.2
					trait = slothful
				}
				modifier = {
					factor = 0.8
					trait = greedy
				}
				modifier = {
					factor = 0.8
					trait = envious
				}
				modifier = {
					factor = 0.5
					trait = ambitious
				}
				modifier = {
					factor = 0.8
					trait = stressed
				}
				modifier = {
					factor = 0.8
					trait = depressed
				}
				modifier = {
					factor = 0.8
					trait = drunkard
				}
				modifier = {
					factor = 1.2
					NOT = { martial = 8 }
				}
				modifier = {
					factor = 0.8
					martial = 12
				}
				tooltip = { remove_trait = proud }
				custom_tooltip = {
					text = ATTEMPT_SUCCEEDS
					hidden_tooltip = {
						set_character_flag = proud_succeed
						character_event = { id = Plus.2638 days = 15 }
					}
				}
			}
		}
		hidden_tooltip = {
			add_character_modifier = {
				name = do_not_disturb
				duration = 15
				hidden = yes
			}
		}
	}
	option = {
		name = EVTOPTB_Plus_2626 #It's not worth it
		trigger = { ai = no }
		piety = -50
		cancel_ambition = yes
	}
}

# Deceitful
character_event = {
	id = Plus.2634
	desc = EVTDESC_Plus_2634
	picture = GFX_evt_scandal
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = deceitful
		NOT = {
			is_inaccessible_trigger = yes
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 1.5
			trait = stressed
		}
		modifier = {
			factor = 1.5
			trait = depressed
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	option = {
		name = EVTOPTA_Plus_2626 #Make the attempt
		random_list = {
			50 = {
				custom_tooltip = {
					text = ATTEMPT_FAILS
					hidden_tooltip = {
						set_character_flag = deceitful_fail
						character_event = { id = Plus.2637 days = 15 }
					}
				}
			}
			50 = {
				modifier = {
					factor = 1.5
					trait = kind
				}
				modifier = {
					factor = 1.5
					trait = just
				}
				modifier = {
					factor = 1.2
					trait = content
				}
				modifier = {
					factor = 1.2
					trait = zealous
				}
				modifier = {
					factor = 1.2
					trait = patient
				}
				modifier = {
					factor = 1.2
					trait = diligent
				}
				modifier = {
					factor = 0.8
					trait = greedy
				}
				modifier = {
					factor = 0.8
					trait = envious
				}
				modifier = {
					factor = 0.8
					trait = ambitious
				}
				modifier = {
					factor = 0.8
					trait = stressed
				}
				modifier = {
					factor = 0.8
					trait = depressed
				}
				modifier = {
					factor = 0.5
					trait = cruel
				}
				modifier = {
					factor = 0.5
					trait = arbitrary
				}
				modifier = {
					factor = 1.2
					NOT = { intrigue = 8 }
				}
				modifier = {
					factor = 0.8
					intrigue = 12
				}
				tooltip = { remove_trait = deceitful  }
				custom_tooltip = {
					text = ATTEMPT_SUCCEEDS
					hidden_tooltip = {
						set_character_flag = deceitful_succeed
						character_event = { id = Plus.2638 days = 15 }
					}
				}
			}
		}
		hidden_tooltip = {
			add_character_modifier = {
				name = do_not_disturb
				duration = 15
				hidden = yes
			}
		}
	}
	option = {
		name = EVTOPTB_Plus_2626 #It's not worth it
		trigger = { ai = no }
		piety = -50
		cancel_ambition = yes
	}
}

# Ambitious
character_event = {
	id = Plus.2635
	desc = EVTDESC_Plus_2635
	picture = GFX_evt_throne_room
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = ambitious
		NOT = {
			is_inaccessible_trigger = yes
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 1.5
			trait = stressed
		}
		modifier = {
			factor = 1.5
			trait = depressed
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	option = {
		name = EVTOPTA_Plus_2626 #Make the attempt
		random_list = {
			50 = {
				modifier = {
					factor = 1.5
					prestige = 1000
				}
				custom_tooltip = {
					text = ATTEMPT_FAILS
					hidden_tooltip = {
						set_character_flag = ambitious_fail
						character_event = { id = Plus.2637 days = 15 }
					}
				}
			}
			50 = {
				modifier = {
					factor = 1.5
					trait = humble
				}
				modifier = {
					factor = 1.2
					trait = zealous
				}
				modifier = {
					factor = 1.2
					trait = patient
				}
				modifier = {
					factor = 1.2
					trait = diligent
				}
				modifier = {
					factor = 1.2
					trait = slothful
				}
				modifier = {
					factor = 0.8
					trait = greedy
				}
				modifier = {
					factor = 0.8
					trait = envious
				}
				modifier = {
					factor = 0.5
					trait = proud
				}
				modifier = {
					factor = 0.8
					trait = stressed
				}
				modifier = {
					factor = 0.8
					trait = depressed
				}
				modifier = {
					factor = 0.8
					trait = drunkard
				}
				tooltip = { remove_trait = ambitious }
				custom_tooltip = {
					text = ATTEMPT_SUCCEEDS
					hidden_tooltip = {
						set_character_flag = ambitious_succeed
						character_event = { id = Plus.2638 days = 15 }
					}
				}
			}
		}
		hidden_tooltip = {
			add_character_modifier = {
				name = do_not_disturb
				duration = 15
				hidden = yes
			}
		}
	}
	option = {
		name = EVTOPTB_Plus_2626 #It's not worth it
		trigger = { ai = no }
		piety = -50
		cancel_ambition = yes
	}
}

# Arbitrary
character_event = {
	id = Plus.2636
	desc = EVTDESC_Plus_2636
	picture = GFX_evt_throne_room
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	war = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = arbitrary
		NOT = {
			is_inaccessible_trigger = yes
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 1.5
			trait = stressed
		}
		modifier = {
			factor = 1.5
			trait = depressed
		}
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	option = {
		name = EVTOPTA_Plus_2626 #Make the attempt
		random_list = {
			50 = {
				custom_tooltip = {
					text = ATTEMPT_FAILS
					hidden_tooltip = {
						set_character_flag = arbitrary_fail
						character_event = { id = Plus.2637 days = 15 }
					}
				}
			}
			50 = {
				modifier = {
					factor = 1.5
					trait = kind
				}
				modifier = {
					factor = 1.2
					trait = trusting
				}
				modifier = {
					factor = 1.2
					trait = humble
				}
				modifier = {
					factor = 1.2
					trait = zealous
				}
				modifier = {
					factor = 1.2
					trait = patient
				}
				modifier = {
					factor = 1.2
					trait = diligent
				}
				modifier = {
					factor = 0.8
					trait = slothful
				}
				modifier = {
					factor = 0.8
					trait = envious
				}
				modifier = {
					factor = 0.5
					trait = wroth
				}
				modifier = {
					factor = 0.8
					trait = stressed
				}
				modifier = {
					factor = 0.8
					trait = depressed
				}
				modifier = {
					factor = 0.8
					trait = drunkard
				}
				tooltip = { remove_trait = arbitrary }
				custom_tooltip = {
					text = ATTEMPT_SUCCEEDS
					hidden_tooltip = {
						set_character_flag = arbitrary_succeed
						character_event = { id = Plus.2638 days = 15 }
					}
				}
			}
		}
		hidden_tooltip = {
			add_character_modifier = {
				name = do_not_disturb
				duration = 15
				hidden = yes
			}
		}
	}
	option = {
		name = EVTOPTB_Plus_2626 #It's not worth it
		trigger = { ai = no }
		piety = -50
		cancel_ambition = yes
	}
}

# Attempt to remove negative trait fails
character_event = {
	id = Plus.2637
	picture = GFX_evt_sainthood
	border = GFX_event_normal_frame_religion
	
	desc = {
		text = EVTDESC_Plus_2637_lustful
		trigger = { has_character_flag = lustful_fail }
	}
	desc = {
		text = EVTDESC_Plus_2637_gluttonous
		trigger = { has_character_flag = gluttonous_fail }
	}
	desc = {
		text = EVTDESC_Plus_2637_greedy
		trigger = { has_character_flag = greedy_fail }
	}
	desc = {
		text = EVTDESC_Plus_2637_slothful
		trigger = { has_character_flag = slothful_fail }
	}
	desc = {
		text = EVTDESC_Plus_2637_envious
		trigger = { has_character_flag = envious_fail }
	}
	desc = {
		text = EVTDESC_Plus_2637_cruel
		trigger = { has_character_flag = cruel_fail }
	}
	desc = {
		text = EVTDESC_Plus_2637_wroth
		trigger = { has_character_flag = wroth_fail }
	}
	desc = {
		text = EVTDESC_Plus_2637_proud
		trigger = { has_character_flag = proud_fail }
	}
	desc = {
		text = EVTDESC_Plus_2637_deceitful
		trigger = { has_character_flag = deceitful_fail }
	}
	desc = {
		text = EVTDESC_Plus_2637_ambitious
		trigger = { has_character_flag = ambitious_fail }
	}
	desc = {
		text = EVTDESC_Plus_2637_arbitrary
		trigger = { has_character_flag = arbitrary_fail }
	}
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_Plus_2637
		piety = -25
		random_list = {
			1 = {
				modifier = {
					factor = 0
					trait = lunatic
				}
				add_trait = lunatic
			}
			2 = {
				modifier = {
					factor = 0
					trait = possessed
				}
				add_trait = possessed
				add_character_modifier = {
					name = voice_of_jesus
					duration = -1
				}
			}
			2 = {
				modifier = {
					factor = 0
					trait = possessed
				}
				add_trait = possessed
				add_character_modifier = {
					name = voice_of_satan
					duration = -1
				}
			}
			50 = {
				modifier = {
					factor = 0
					NOT = { has_character_flag = gluttonous_fail }
				}
				health = -0.5
				hidden_tooltip = {
					change_variable = { which = "health_lost" value = 0.5 }
				}
			}
			25 = {
				modifier = {
					factor = 0
					NOR = { 
						has_character_flag = greedy_fail
						has_character_flag = envious_fail
					}
				}
				change_stewardship = -1
			}
			25 = {
				modifier = {
					factor = 0
					NOR = { 
						has_character_flag = greedy_fail
						has_character_flag = envious_fail
						has_character_flag = cruel_fail
						has_character_flag = proud_fail
					}
				}
				change_diplomacy = -1
			}
			25 = {
				modifier = {
					factor = 0
					NOR = { 
						has_character_flag = wroth_fail
						has_character_flag = cruel_fail
						has_character_flag = deceitful_fail
					}
				}
				modifier = {
					factor = 2
					has_character_flag = deceitful_fail
				}
				change_intrigue = -1
			}
			25 = {
				modifier = {
					factor = 0
					NOR = {
						has_character_flag = slothful_fail
						has_character_flag = gluttonous_fail
					}
				}
				modifier = {
					factor = 0
					trait = drunkard
				}
				add_trait = drunkard
			}
			25 = {
				modifier = {
					factor = 0
					trait = stressed
				}
				modifier = {
					factor = 0
					trait = depressed
				}
				add_trait = stressed
			}
			25 = {
				modifier = {
					factor = 0
					trait = stressed
				}
				modifier = {
					factor = 0
					trait = depressed
				}
				modifier = {
					factor = 2
					OR = {
						has_character_flag = proud_fail
						has_character_flag = ambitious_fail
					}
				}
				add_trait = depressed
			}
			45 = {
				modifier = {
					factor = 0.75
					check_variable = { which = "remove_trait_failure" value = 1 }
				}
				modifier = {
					factor = 0.75
					check_variable = { which = "remove_trait_failure" value = 2 }
				}
				modifier = {
					factor = 0.75
					check_variable = { which = "remove_trait_failure" value = 3 }
				}
			}
		}
		hidden_tooltip = {
			clr_character_flag = lustful_fail
			clr_character_flag = gluttonous_fail
			clr_character_flag = greedy_fail
			clr_character_flag = slothful_fail
			clr_character_flag = envious_fail
			clr_character_flag = cruel_fail
			clr_character_flag = wroth_fail
			clr_character_flag = proud_fail
			clr_character_flag = deceitful_fail
			clr_character_flag = ambitious_fail
			clr_character_flag = arbitrary_fail
			change_variable = { which = "remove_trait_failure" value = 1 }
			change_variable = { which = "theosis_ambition" value = -1 }
		}
	}
}

# Attempt to remove negative trait succeeds
character_event = {
	id = Plus.2638
	picture = GFX_evt_sainthood
	border = GFX_event_normal_frame_religion
	
	desc = {
		text = EVTDESC_Plus_2638_lustful
		trigger = { has_character_flag = lustful_succeed }
	}
	desc = {
		text = EVTDESC_Plus_2638_gluttonous
		trigger = { has_character_flag = gluttonous_succeed }
	}
	desc = {
		text = EVTDESC_Plus_2638_greedy
		trigger = { has_character_flag = greedy_succeed }
	}
	desc = {
		text = EVTDESC_Plus_2638_slothful
		trigger = { has_character_flag = slothful_succeed }
	}
	desc = {
		text = EVTDESC_Plus_2638_envious
		trigger = { has_character_flag = envious_succeed }
	}
	desc = {
		text = EVTDESC_Plus_2638_cruel
		trigger = { has_character_flag = cruel_succeed }
	}
	desc = {
		text = EVTDESC_Plus_2638_wroth
		trigger = { has_character_flag = wroth_succeed }
	}
	desc = {
		text = EVTDESC_Plus_2638_proud
		trigger = { has_character_flag = proud_succeed }
	}
	desc = {
		text = EVTDESC_Plus_2638_deceitful
		trigger = { has_character_flag = deceitful_succeed }
	}
	desc = {
		text = EVTDESC_Plus_2638_ambitious
		trigger = { has_character_flag = ambitious_succeed }
	}
	desc = {
		text = EVTDESC_Plus_2638_arbitrary
		trigger = { has_character_flag = arbitrary_succeed }
	}
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTA_Plus_2638
		piety = 50
		if = {
			limit = { has_character_flag = lustful_succeed }
			clr_character_flag = lustful_succeed
			if = {
				limit = { trait = homosexual }
				remove_trait = homosexual
			}
			if = {
				limit = { trait = lustful }
				remove_trait = lustful
			}
			if = {
				limit = { trait = hedonist }
				remove_trait = hedonist
			}
			if = {
				limit = { trait = seducer }
				remove_trait = seducer
			}
			if = {
				limit = { trait = seductress }
				remove_trait = seductress
			}
			random_list = {
				50 = {
					modifier = {
						factor = 0
						trait = humble
					}
					add_trait = humble
				}
				20 = {
					modifier = {
						factor = 0
						trait = chaste
					}
					add_trait = chaste
				}
				50 = {
					modifier = {
						factor = 0
						trait = celibate
					}
					add_trait = celibate
				}
				20 = {}
			}
		}
		if = {
			limit = { has_character_flag = gluttonous_succeed }
			clr_character_flag = gluttonous_succeed
			remove_trait = gluttonous
			health = -0.5
			hidden_tooltip = {
				change_variable = { which = "health_lost" value = 0.5 }
			}
		}
		if = {
			limit = { has_character_flag = greedy_succeed }
			clr_character_flag = greedy_succeed
			remove_trait = greedy
			prestige = -100
			random_list = {
				5 = { change_diplomacy = -1 }
				5 = { change_stewardship = -1 }
				20 = { add_trait = depressed }
				20 = { add_trait = stressed }
				50 = {}
			}
		}
		if = {
			limit = { has_character_flag = slothful_succeed }
			clr_character_flag = slothful_succeed
			remove_trait = slothful
			random_list = {
				50 = { add_trait = stressed }
				50 = { give_ill_effect = yes }
				25 = {}
			}
		}
		if = {
			limit = { has_character_flag = envious_succeed }
			clr_character_flag = envious_succeed
			remove_trait = envious
			prestige = -100
			random_list = {
				5 = { change_diplomacy = -1 }
				5 = { change_stewardship = -1 }
				20 = { add_trait = depressed }
				20 = { add_trait = stressed }
				50 = {}
			}
		}
		if = {
			limit = { has_character_flag = cruel_succeed }
			clr_character_flag = cruel_succeed
			remove_trait = cruel
			prestige = -100
			random_list = {
				5 = { change_diplomacy = -1 }
				5 = { change_intrigue = -1 }
				20 = { add_trait = depressed }
				20 = { add_trait = stressed }
				50 = {}
			}
		}
		if = {
			limit = { has_character_flag = wroth_succeed }
			clr_character_flag = wroth_succeed
			remove_trait = wroth
			prestige = -100
			random_list = {
				5 = { change_diplomacy = -1 }
				5 = { change_intrigue = -1 }
				20 = { add_trait = depressed }
				20 = { add_trait = stressed }
				50 = {}
			}
		}
		if = {
			limit = { has_character_flag = proud_succeed }
			clr_character_flag = proud_succeed
			remove_trait = proud
			prestige = -250
		}
		if = {
			limit = { has_character_flag = deceitful_succeed }
			clr_character_flag = deceitful_succeed
			remove_trait = deceitful
			
			prestige = -100
			change_intrigue = -2
		}
		if = {
			limit = { has_character_flag = ambitious_succeed }
			clr_character_flag = ambitious_succeed
			remove_trait = ambitious
			prestige = -100
			random = {
				chance = 50
				add_trait = depressed
			}
		}
		if = {
			limit = { has_character_flag = arbitrary_succeed }
			clr_character_flag = arbitrary_succeed
			remove_trait = arbitrary
			prestige = -100
			random_list = {
				25 = { 
					modifier = {
						factor = 0
						trait = depressed
					}
					add_trait = depressed
					hidden_tooltip = {
						character_event = {
							id = 38288 #Notify Depressed
						}
					}
				}
				25 = {
					modifier = {
						factor = 0
						trait = stressed
					}
					modifier = {
						factor = 0
						trait = depressed
					}
					add_trait = stressed
					hidden_tooltip = {
						character_event = {
							id = 38282 #Notify Stressed
						}
					}
				}
				50 = { }
			}
		}
		hidden_tooltip = {
			set_variable = { which = "remove_trait_failure" value = 0 }
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
}

# Mystic
character_event = {
	id = Plus.2639
	desc = EVTDESC_Plus_2639
	picture = GFX_evt_comet
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = mystic
		NOR = {
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_mystic
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_mystic
	}
	
	option = {
		name = EVTOPTA_Plus_2639 #Am I not a good Christian?
		random_list = {
			50 = {
				piety = -50
				hidden_tooltip = {
					change_variable = { which = "theosis_ambition" value = -1 }
				}
			}
			50 = {
				piety = 50
				hidden_tooltip = {
					change_variable = { which = "theosis_ambition" value = 1 }
				}
			}
		}
	}
}

# Impaler
character_event = {
	id = Plus.2640
	desc = EVTDESC_Plus_2640
	picture = GFX_evt_burning_house
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = impaler
		NOR = {
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_impaler
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_impaler
	}
	
	option = {
		name = EVTOPTA_Plus_2640 #I do what I do for God!
		random_list = {
			50 = {
				piety = -50
				hidden_tooltip = {
					change_variable = { which = "theosis_ambition" value = -1 }
				}
			}
			50 = {
				piety = 50
				hidden_tooltip = {
					change_variable = { which = "theosis_ambition" value = 1 }
				}
			}
		}
	}
}

# Chaste
character_event = {
	id = Plus.2641
	desc = EVTDESC_Plus_2641
	picture = GFX_evt_sainthood
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = chaste
		NOR = {
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_chaste
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_chaste
	}
	
	option = {
		name = EVTOPTA_Plus_2641 #All should strive for virtue
		piety = 25
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
}

# Celibate
character_event = {
	id = Plus.2642
	desc = EVTDESC_Plus_2642
	picture = GFX_evt_sainthood
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = celibate
		NOR = {
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_celibate
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_celibate
	}
	
	option = {
		name = EVTOPTA_Plus_2641 #All should strive for virtue
		piety = 25
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
}

# Charitable
character_event = {
	id = Plus.2643
	desc = EVTDESC_Plus_2643
	picture = GFX_evt_market
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = charitable
		NOR = {
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_charitable
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_charitable
	}
	
	option = {
		name = EVTOPTA_Plus_2641 #All should strive for virtue
		piety = 25
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
}

# Kind
character_event = {
	id = Plus.2644
	desc = EVTDESC_Plus_2644
	picture = GFX_evt_garden
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = kind
		NOR = {
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_kind
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_kind
	}
	
	option = {
		name = EVTOPTA_Plus_2641 #All should strive for virtue
		piety = 25
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
}

# Humble
character_event = {
	id = Plus.2645
	desc = EVTDESC_Plus_2645
	picture = GFX_evt_stone_church
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = humble
		NOR = {
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_humble
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_humble
	}
	
	option = {
		name = EVTOPTA_Plus_2641 #All should strive for virtue
		piety = 25
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
}

# Honest
character_event = {
	id = Plus.2646
	desc = EVTDESC_Plus_2646
	picture = GFX_evt_stone_church
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = honest
		NOR = {
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_honest
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_honest
	}
	
	option = {
		name = EVTOPTA_Plus_2641 #All should strive for virtue
		piety = 25
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
}

# Just
character_event = {
	id = Plus.2647
	desc = EVTDESC_Plus_2647
	picture = GFX_evt_throne_room
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = just
		NOR = {
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_just
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_just
	}
	
	option = {
		name = EVTOPTA_Plus_2641 #All should strive for virtue
		piety = 25
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
}

# Theologian
character_event = {
	id = Plus.2648
	desc = EVTDESC_Plus_2648
	picture = GFX_evt_bishop
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = theologian
		NOR = {
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_theologian
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.5
			NOT = { check_variable = { which = "theosis_ambition" value = 5 } }
		}
	}
	
	immediate = {
		set_character_flag = sainthood_theologian
	}
	
	option = {
		name = EVTOPTA_Plus_2641 #All should strive for virtue
		piety = 25
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}
	}
}

# Voice of Jesus
character_event = {
	id = Plus.2649
	desc = EVTDESC_Plus_2649
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = possessed
		has_character_modifier = voice_of_jesus
		check_variable = { which = "theosis_ambition" value = 5 }
		NOR = {
			is_inaccessible_trigger = yes
			has_character_flag = sainthood_voice_of_jesus
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 50
	}
	
	immediate = {
		set_character_flag = sainthood_voice_of_jesus
	}
	
	option = {
		name = EVTOPTA_Plus_2649 #Jesus shall guide me
		piety = 100
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 2 }
		}
	}
}

# Stressed
character_event = {
	id = Plus.1550
	desc = EVTDESC_Plus_1550
	picture = GFX_evt_bad_news
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = stressed
		NOT = {
			is_inaccessible_trigger = yes
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 25
	}
	
	option = {
		name = EVTOPTA_Plus_1550 #I will renew my dedication to God
		remove_trait = stressed
	}
}

# Depressed
character_event = {
	id = Plus.1551
	desc = EVTDESC_Plus_1551
	picture = GFX_evt_bad_news
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = depressed
		NOT = {
			is_inaccessible_trigger = yes
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 25
	}
	
	option = {
		name = EVTOPTA_Plus_1550 #I will renew my dedication to God
		remove_trait = depressed
	}
}

# Drunkard
character_event = {
	id = Plus.1552
	desc = EVTDESC_Plus_1552
	picture = GFX_evt_bad_news
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		trait = drunkard
		NOT = {
			is_inaccessible_trigger = yes
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 100
	}
	
	option = {
		name = EVTOPTA_Plus_1550 #I will renew my dedication to God
		remove_trait = drunkard
		health = -0.5
		hidden_tooltip = {
			change_variable = { which = "health_lost" value = 0.5 }
		}
	}
}

# Random Event: Ambition Progress
character_event = {
	id = Plus.1553
	desc = EVTDESC_Plus_1553
	picture = GFX_evt_sainthood
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		NOR = {
			is_inaccessible_trigger = yes
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 240
		modifier = {
			factor = 0.8
			OR = {
				trait = chaste
				trait = celibate
			}
		}
		modifier = {
			factor = 0.8
			trait = temperate
		}
		modifier = {
			factor = 0.8
			trait = charitable
		}
		modifier = {
			factor = 0.8
			trait = diligent
		}
		modifier = {
			factor = 0.8
			trait = kind
		}
		modifier = {
			factor = 0.8
			trait = patient
		}
		modifier = {
			factor = 0.8
			trait = honest
		}
		modifier = {
			factor = 0.8
			trait = just
		}
		modifier = {
			factor = 0.7
			trait = zealous
		}
		modifier = {
			factor = 0.7
			trait = humble
		}
	}

	option = {
		name = EVTOPTA_Plus_1553
		piety = 25
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = 1 }
		}		
	}
}

# Random Event: Ambition Setback
character_event = {
	id = Plus.1554
	desc = EVTDESC_Plus_1554
	picture = GFX_evt_bad_news
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		check_variable = { which = "theosis_ambition" value = -5 }
		NOR = {
			is_inaccessible_trigger = yes
			check_variable = { which = "theosis_ambition" value = 10 }
		}
		is_not_busy_trigger = yes
	}
	
	mean_time_to_happen = {
		months = 240
		modifier = {
			factor = 0.8
			trait = homosexual
		}
		modifier = {
			factor = 0.8
			OR = {
				trait = lustful
				trait = hedonist
				trait = seducer
				trait = seductress
			}
		}
		modifier = {
			factor = 0.8
			trait = gluttonous
		}
		modifier = {
			factor = 0.8
			trait = greedy
		}
		modifier = {
			factor = 0.8
			trait = slothful
		}
		modifier = {
			factor = 0.8
			trait = envious
		}
		modifier = {
			factor = 0.8
			trait = cruel
		}
		modifier = {
			factor = 0.8
			trait = wroth
		}
		modifier = {
			factor = 0.8
			trait = deceitful
		}
		modifier = {
			factor = 0.8
			trait = arbitrary
		}
		modifier = {
			factor = 0.7
			trait = proud
		}
		modifier = {
			factor = 1.5
			check_variable = { which = "theosis_ambition" value = 5 }
		}
	}

	option = {
		name = EVTOPTA_Plus_1554
		piety = -25
		hidden_tooltip = {
			change_variable = { which = "theosis_ambition" value = -1 }
		}		
	}
}

# Failure - Ambition Abandoned
character_event = {
	id = Plus.1555
	picture = GFX_evt_bad_news
	border = GFX_event_normal_frame_religion
	
	desc = {
		text = EVTDESC_Plus_1555_fail1
		trigger = { NOT = { check_variable = { which = "theosis_ambition" value = -4 } } }
	}
	desc = {
		text = EVTDESC_Plus_1555_fail2
		trigger = { check_variable = { which = "theosis_ambition" value = -4 } }
	}

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		OR = {
			NOT = { check_variable = { which = "theosis_ambition" value = -4 } }
			AND = {
				check_variable = { which = "theosis_ambition" value = 10 }
				OR = {
					trait = homosexual
					trait = lustful
					trait = hedonist
					trait = seducer
					trait = seductress
					trait = gluttonous
					trait = greedy
					trait = slothful
					trait = envious
					trait = cruel
					trait = wroth
					trait = proud
					trait = deceitful
					trait = arbitrary
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 6
	}
	
	option = {
		name = EVTOPTA_Plus_1555 #I simply cannot do it...
		set_character_flag = failed_become_saint
		cancel_ambition = yes
	}
}

# Success - Ambition Completed
character_event = {
	id = Plus.1556
	desc = EVTDESC_Plus_1556
	picture = GFX_evt_sainthood
	border = GFX_event_normal_frame_religion

	hide_from = yes
	
	religion_group = christian
	min_age = 16
	capable_only = yes
	prisoner = no
	
	trigger = {
		has_ambition = obj_become_saint
		check_variable = { which = "theosis_ambition" value = 10 }
		NOR = {
			trait = homosexual
			trait = lustful
			trait = hedonist
			trait = seducer
			trait = seductress
			trait = gluttonous
			trait = greedy
			trait = slothful
			trait = envious
			trait = cruel
			trait = wroth
			trait = proud
			trait = deceitful
			trait = arbitrary
		}
	}
	
	mean_time_to_happen = {
		months = 1
	}
	
	option = {
		name = EVTOPTA_Plus_1556 #I am but a servant of God
		add_trait = paragon
		random_list = {
			5 = {
				give_nickname = nick_the_rel_group
			}
			40 = {
				give_nickname = nick_the_saint
			}
			20 = {
				give_nickname = nick_the_pious
			}
			20 = {
				give_nickname = nick_the_blessed
			}
			20 = {
				give_nickname = nick_the_holy
			}
			20 = {
				modifier = {
					factor = 0
					NOR = {
						trait = kind
						trait = just
						trait = charitable
					}
				}
				give_nickname = nick_the_good
			}
			20 = {
				modifier = {
					factor = 0
					NOT = { trait = just }
				}
				give_nickname = nick_the_just
			}
			20 = {
				modifier = {
					factor = 0
					NAND = {
						trait = zealous
						trait = just
					}
				}
				give_nickname = nick_the_righteous
			}
			20 = {
				modifier = {
					factor = 0
					OR = {
						trait = arbitrary
						trait = wroth
						is_dumb_trigger = yes
						trait = inbred
					}
					NOR = {
						is_smart_trigger = yes
						trait = just
						trait = patient
						trait = scholar
						trait = theologian
						learning = 12
					}
				}
				give_nickname = nick_the_wise
			}
			20 = {
				modifier = {
					factor = 0
					NOT = { trait = kind }
				}
				give_nickname = nick_the_kind
			}
			20 = {
				modifier = {
					factor = 0
					NOT = { trait = scholar }
				}
				give_nickname = nick_the_scholar
			}
			20 = {
				modifier = {
					factor = 0
					NOT = { trait = crusader }
				}
				give_nickname = nick_the_crusader
			}
			20 = {
				modifier = {
					factor = 0
					NOT = { trait = zealous }
				}
				give_nickname = nick_the_zealot
			}
			40 = {}
		}
	}
}

