########################################################
# RELIGIOUS TITLES
# Titles given out by the religious head
########################################################
#	religion: Religion that owns this title.
#	can_elect_head: If holders of this title can elect a new head.
#	grant_limit: Max number of holders.
#	realm_in_name: Append the name of the country after the title (Queen [of Sweden])
#	allow: conditions for the character to hold the title
#	gain_effect: fires when the title is granted
#	lose_effect: fires when a title is lost if dismissal_trigger evaluates to false
#	message: should fire a message to the its owner when set
#	The other fields are all character modifiers.

title_bogomilist_advisor = {
	religion = bogomilist
	can_elect_head = yes
	revoke_allowed = no
	
	grant_limit = 5
	
	realm_in_name = no
	show_as_title = yes
	
	opinion_effect = 20
	dignity = 0.9
	
	monthly_salary = 0.1
	monthly_prestige = 0.5
	
	allow = {
		religion = bogomilist
		trait = perfecti
		ai = yes
		d_bogomilist = {
			holder_scope = {
				is_within_diplo_range = ROOT
			}
		}
	}
	
	gain_effect = {
		character_event = { id = GoPagan.155 }
	}
	
	lose_effect = {
	}

	message = no
}

title_cathar_deacon = {
	religion = cathar
	can_elect_head = yes
	revoke_allowed = no
	
	grant_limit = 9
	
	realm_in_name = no
	show_as_title = yes
	
	opinion_effect = 20
	dignity = 0.9
	
	monthly_salary = 0.1
	monthly_prestige = 0.5
	
	allow = {
		religion = cathar
		trait = perfecti
		ai = yes
		d_cathar = {
			holder_scope = {
				is_within_diplo_range = ROOT
			}
		}
	}
	
	gain_effect = {
		character_event = { id = GoPagan.155 }
	}
	
	lose_effect = {
	}

	message = no
}

title_chalcedonian_cardinal = {
	religion = chalcedonian
	can_elect_head = yes
	revoke_allowed = no
	
	grant_limit = 9
	
	realm_in_name = no
	show_as_title = yes
	
	opinion_effect = 20
	dignity = 0.9
	
	monthly_salary = 0.1
	monthly_prestige = 0.5
	
	allow = {
		religion = chalcedonian
		is_theocracy = yes
		k_chalcedonian = {
			holder_scope = {
				is_within_diplo_range = ROOT
			}
		}
	}
	
	gain_effect = {
	}
	
	lose_effect = {
	}

	message = yes
}

title_druid_circle_member = {
	religion = celtic_pagan_reformed
	can_elect_head = yes
	revoke_allowed = no
	
	grant_limit = 9
	
	realm_in_name = no
	show_as_title = no # Not actually a title.
	
	opinion_effect = 20
	dignity = 0.9
	
	monthly_salary = 0.1
	monthly_prestige = 0.5
	
	allow = {
		religion = celtic_pagan_reformed
		is_theocracy = yes
		trait = druid
		d_celtic_pagan_reformed = {
			holder_scope = {
				is_within_diplo_range = ROOT
			}
		}
	}
	
	gain_effect = {
		character_event = { id = GoPagan.155 }
	}
	
	lose_effect = {
	}

	message = no
}

title_manichean_apostle = {
	religion = manichean
	can_elect_head = yes
	revoke_allowed = no
	
	grant_limit = 5
	
	realm_in_name = no
	show_as_title = yes
	
	opinion_effect = 20
	dignity = 0.9
	
	monthly_salary = 0.1
	monthly_prestige = 0.5
	
	allow = {
		religion = manichean
		is_theocracy = yes
		d_manichean = {
			holder_scope = {
				is_within_diplo_range = ROOT
			}
		}
	}
	
	gain_effect = {
		character_event = { id = GoPagan.155 }
	}
	
	lose_effect = {
	}

	message = no
}

title_hellenic_pontiff = {
	religion = roman_pagan
	can_elect_head = yes
	revoke_allowed = no
	
	grant_limit = 9
	
	realm_in_name = no
	show_as_title = yes
	
	opinion_effect = 20
	dignity = 0.9
	
	monthly_salary = 0.1
	monthly_prestige = 0.5
	
	allow = {
		religion = roman_pagan
		is_theocracy = yes
		d_pontifex_maximus = {
			holder_scope = {
				is_within_diplo_range = ROOT
			}
		}
	}
	
	gain_effect = {
		character_event = { id = GoPagan.155 }
	}
	
	lose_effect = {
	}

	message = no
}