# regula_initialize_decision = {
# 	picture = "gfx/interface/illustrations/decisions/regula_initialize_decision.dds"
# 	major = yes
# 	title = regula_initialize_decision.t
# 	desc = regula_initialize_decision_desc
# 	selection_tooltip = regula_initialize_decision_tooltip


# 	ai_check_interval = 0 #AI won't consider.

# 	is_shown = {
# 		is_ruler = yes
# 		is_male = yes
# 		is_ai = no
# 		age >= 16
# 		NOT = { has_global_variable = regula_initialized }
# 		NOT = { has_global_variable = regula_covert_initialized }
# 		NOT = { has_character_flag = regula_decision_taken }
# 	}

# 	is_valid = {
# 		# is_independent_ruler = yes
# 	}

# 	is_valid_showing_failures_only = {
# 		is_available = yes
# 		is_male = yes
# 		age >= 16
# 		custom_description = {
# 			text = regula_faith_head_trigger
# 			NOT = { root.faith.religious_head = root }
# 		}
# 	}

# 	cost = {
# 		gold = 300
# 		prestige = 1000
# 		piety = 400
# 	}

	
# 	effect = {
# 		custom_tooltip = "regula_initialize_decision_tooltip_effect"
# 		add_character_flag = regula_decision_taken
# 		trigger_event = { 
# 			id = regula_initialize_event.0001 
# 			days = { 15 45 }
# 		} 
# 	}

# 	confirm_text = regula_initialize_decision_confirm.a

# 	ai_will_do = {
# 		base = 0
# 	}
# }

regula_initialize_decision_minor = {
	picture = "gfx/interface/illustrations/decisions/regula_initialize_decision.dds"
	major = no
	title = regula_initialize_decision_minor.t
	desc = regula_initialize_decision_minor_desc
	selection_tooltip = regula_initialize_decision_minor_tooltip

	ai_check_interval = 0 #AI won't consider.

	is_shown = {
		is_ruler = yes
		is_male = yes
		is_ai = no
		age >= 16
		OR = { 
			AND = {
				has_global_variable = regula_initialized
				has_global_variable = regula_burned
			}
			AND = {
				has_global_variable = regula_covert_initialized
				NOT = { any_secret = { secret_type = regula_covert_conversion } }
			}
		}
		NOT = { has_character_flag = regula_decision_taken }
		NOT = { 
			has_trait = magister_trait_group 
			has_character_flag = regula_destroyed_character
		}
	}

	is_valid = {
		# is_independent_ruler = yes
	}

	is_valid_showing_failures_only = {
		is_available = yes
	}

	effect = {
		custom_tooltip = "regula_initialize_decision_minor_tooltip_effect"
		add_character_flag = regula_decision_taken
		trigger_event = { 
			id = regula_initialize_event.0011 
			days = { 1 7 }
		} 
	}

	confirm_text = regula_initialize_decision_minor_confirm.a

	ai_will_do = {
		base = 0
	}
}

regula_initialize_covert_decision = {
	picture = "gfx/interface/illustrations/decisions/regula_peddler.dds"
	major = yes
	title = regula_initialize_covert_decision.t
	desc = regula_initialize_covert_decision_desc
	selection_tooltip = regula_initialize_covert_decision_tooltip

	ai_check_interval = 0 #AI won't consider.

	is_shown = {
		is_ruler = yes
		is_ai = no
		NOT = { has_global_variable = regula_initialized }
		NOT = { has_global_variable = regula_covert_initialized }
		NOT = { has_character_flag = regula_decision_taken }
		NOT = { any_secret = { secret_type = regula_covert_conversion } }
	}

	is_valid = {
	}

	is_valid_showing_failures_only = {
		is_available = yes
		is_male = yes
		age >= 16

		custom_description = {
			text = regula_choir_conversion_trigger
			NOT = { 
				faith = {
					religion_tag = regula_religion
				}
			}
		}
	}

	cost = {
		gold = 125
	}

	
	effect = {
		custom_tooltip = "regula_initialize_covert_decision_tooltip_effect"
		add_character_flag = regula_decision_taken
		trigger_event = { 
			id = regula_initialize_event.0003
			days = { 15 45 }
		} 
	}

	confirm_text = regula_initialize_covert_decision_confirm.a

	ai_will_do = {
		base = 0
	}
}

regula_initialize_reveal_decision = { # Switch from covert to active.
	picture = "gfx/interface/illustrations/decisions/regula_initialize_decision.dds"
	major = yes
	title = regula_initialize_reveal_decision.t
	desc = regula_initialize_reveal_decision_desc
	selection_tooltip = regula_initialize_reveal_decision_tooltip

	ai_check_interval = 0 #AI won't consider.

	is_shown = {
		is_ruler = yes
		is_male = yes
		is_ai = no
		age >= 16
		any_secret = { 
			secret_type = regula_covert_conversion
		}
		NOT = { has_global_variable = regula_initialized }
		NOT = { has_character_flag = regula_decision_taken }
		any_secret = { secret_type = regula_covert_conversion }

	}

	is_valid = {
		highest_held_title_tier >=3
		custom_description = {
			text = regula_spouse_entranced_trigger
			primary_spouse = {
				any_secret = {
					secret_type = regula_covert_conversion
				}
			}
		}
		custom_description = {
			text = regula_2_covert_powerful_vassals_trigger
			regula_num_covert_powerful_vassals >= 2
		}

	}

	is_valid_showing_failures_only = {
		is_available = yes
		is_male = yes
		is_married = yes
		age >= 16
		custom_description = {
			text = regula_faith_head_trigger
			NOT = { root.faith.religious_head = root }
		}
	}

	cost = {
	}
	
	effect = {
		custom_tooltip = "regula_initialize_reveal_decision_tooltip_effect"
		custom_tooltip = "regula_initialize_reveal_decision_tooltip_effect_religion"
		custom_tooltip = "regula_initialize_reveal_decision_tooltip_effect_domina"
		custom_tooltip = "regula_initialize_reveal_decision_tooltip_effect_mulsa"
		add_character_flag = regula_decision_taken
		trigger_event = { 
			id = regula_initialize_event.0001
			days = { 5 15 }
		} 
	}

	confirm_text = regula_initialize_reveal_decision_confirm.a

	ai_will_do = {
		base = 0
	}
}
