###MONASTIC ORDER###
monastic_order_benedictine = {
	primary_attribute = stewardship
	opinion_to_other_members = +10
	opinion_per_rank_above = +5
	sound = monastic_orders_interface
	society_ranks_gfx = monk_ranks

	indestructible = yes
	is_religious = yes
	society_influence = no

	non_interference = {
		always = yes
	}

	active = {
		has_dlc = "Mystics"
	}

	show_society = {
		trigger_if = {
			limit = {
				NOT = { society_member_of = monastic_order_benedictine }
			}

			is_catholic_branch = yes
			is_heretic = no
		}
	}

	can_join_society = {
		trigger_if = {
			limit = { ai = yes }

			NOT = {
				is_society_rank_full = {
					society = monastic_order_benedictine
					rank = 1
				}
			}
		}

		trigger_if = {
			limit = { has_character_flag = betrayed_monastic_order_benedictine }

			custom_tooltip = {
				text = did_not_betray_society

				NOT = { has_character_flag = betrayed_monastic_order_benedictine }
			}
		}
		trigger_else_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			is_catholic_branch = yes
			is_adult = yes
			prisoner = no
			is_heretic = no
			NOT = { trait = excommunicated }
			scaled_wealth >= 0.25
		}
	}

	potential = {
		is_catholic_branch = yes
		is_heretic = no
	}

	society_rank = {
		level = 1
		limit = 100
		startup_limit = 10

		modifier = {
			monthly_character_piety = 0.05
			fertility = -0.15
		}

		custom_tooltip = monastic_order_education_power_tt
	}

	society_rank = {
		level = 2
		limit = 50
		startup_limit = 6

		modifier = {
			monthly_character_piety = 0.1
			stewardship = 1
			fertility = -0.15
		}

		decisions = {
			monastic_orders_go_celibate # Power: toggle celibacy
			monastic_orders_stop_celibate
			monastic_orders_spiritual_guidance
		}
	}

	society_rank = {
		level = 3
		limit = 25
		startup_limit = 3

		modifier = {
			monthly_character_piety = 0.2
			stewardship = 2
			build_cost_temple_modifier = -0.25
			fertility = -0.15
		}

		decisions = {
			monastic_orders_invite_ascetic
			monastic_orders_teach_virtue
		}
	}

	society_rank = {
		level = 4
		limit = 5
		startup_limit = 1

		modifier = {
			monthly_character_piety = 0.5
			stewardship = 3
			build_cost_temple_modifier = -0.5
			fertility = -0.15
		}

		decisions = {
			monastic_order_convert_county
		}

		custom_tooltip = benedictine_power_diligent_tt
	}

	monthly_currency_gain = {
		name = currency_name_monastic_order_benedictine

		per_attribute = {
			name = stewardship
			value = 0.5
		}

		has_trait = {
			trait = monk
			value = 5
		}

		has_trait = {
			trait = nun
			value = 5
		}

		has_trait = {
			trait = diligent
			value = 3
		}

		has_trait = {
			trait = celibate
			value = 3
		}

		has_trait = {
			trait = chaste
			value = 3
		}

		has_trait = {
			trait = temperate
			value = 3
		}

		has_trait = {
			trait = charitable
			value = 1
		}

		has_trait = {
			trait = kind
			value = 1
		}

		has_trait = {
			trait = patient
			value = 1
		}

		has_trait = {
			trait = humble
			value = 1
		}

		has_trait = {
			trait = zealous
			value = 1
		}

		has_trait = {
			trait = honest
			value = 1
		}

		has_trait = {
			trait = erudite
			value = 1
		}

		has_trait = {
			trait = pilgrim
			value = 1
		}

		has_trait = {
			trait = theologian
			value = 1
		}

		has_trait = {
			trait = gardener
			value = 1
		}

		society_rank = {
			rank = 4
			value = 10
		}

		triggered_gain = {
			desc = saintly_monastic_gain
			value = 3

			trigger = {
				any_owned_bloodline = {
					has_bloodline_flag = monastic_saintly_bloodline
					bloodline_is_active_for = PREV
				}
			}
		}

		# CK2Plus
		has_trait = {
			trait = paragon
			value = 5
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		mult_modifier = {
			factor = 10
			is_priest = yes
		}

		mult_modifier = {
			factor = 5
			trait = monk
		}

		mult_modifier = {
			factor = 5
			trait = nun
		}

		mult_modifier = {
			factor = 1.3
			trait = diligent
		}

		mult_modifier = {
			factor = 1.3
			trait = celibate
		}

		mult_modifier = {
			factor = 1.3
			trait = chaste
		}

		mult_modifier = {
			factor = 1.3
			trait = temperate
		}

		mult_modifier = {
			factor = 1.1
			trait = charitable
		}

		mult_modifier = {
			factor = 1.1
			trait = kind
		}

		mult_modifier = {
			factor = 1.1
			trait = patient
		}

		mult_modifier = {
			factor = 1.1
			trait = humble
		}

		mult_modifier = {
			factor = 1.1
			trait = zealous
		}

		mult_modifier = {
			factor = 1.1
			trait = honest
		}

		mult_modifier = {
			factor = 1.1
			trait = erudite
		}

		mult_modifier = {
			factor = 1.1
			trait = pilgrim
		}

		mult_modifier = {
			factor = 1.1
			trait = theologian
		}

		mult_modifier = {
			factor = 1.1
			trait = gardener
		}
	}

	startup_populate = {
		trigger = {
			OR = { # is_catholic_branch doesn't work for Chalcedonian starts, since rite traits aren't applied in time
				religion = catholic

				trigger_if = {
					limit = { religion = chalcedonian }

					trigger_if = {
						limit = { location = { NOT = { region = custom_latin_rites } } }

						OR = {
							culture_group = latin
							culture_group = italian_group
						}
					}
				}
			}

			is_adult = yes
			lower_real_tier_than = KING
			ai = yes
			is_heretic = no
			controls_religion = no
			holy_order = no
			mercenary = no
			has_secret_religion = no
			is_in_society = no

			OR = {
				trait = zealous
				trait = scholar
				trait = theologian
				trait = gardener
				trait = monk
				trait = nun
				learning >= 16
				is_priest = yes
			}

			NOR = {
				trait = cynical
				trait = excommunicated
			}
		}
	}
}

monastic_order_dominican = {
	primary_attribute = learning
	opinion_to_other_members = +10
	opinion_per_rank_above = +5
	sound = monastic_orders_interface
	society_ranks_gfx = monk_ranks

	indestructible = yes
	is_religious = yes
	society_influence = no

	non_interference = {
		always = yes
	}

	active = {
		has_dlc = "Mystics"
		is_title_active = k_papacy
	}

	show_society = {
		trigger_if = {
			limit = {
				NOT = { society_member_of = monastic_order_dominican }
			}

			catholic_or_latin_chalcedonian_trigger = yes
		}
	}

	can_join_society = {
		trigger_if = {
			limit = { ai = yes }

			NOT = {
				is_society_rank_full = {
					society = monastic_order_dominican
					rank = 1
				}
			}
		}

		trigger_if = {
			limit = { has_character_flag = betrayed_monastic_order_dominican }

			custom_tooltip = {
				text = did_not_betray_society

				NOT = { has_character_flag = betrayed_monastic_order_dominican }
			}
		}
		trigger_else_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			catholic_or_latin_chalcedonian_trigger = yes
			is_adult = yes
			prisoner = no
			NOT = { trait = excommunicated }
			scaled_wealth >= 0.25
		}
	}

	potential = { # To remain in society
		catholic_or_latin_chalcedonian_trigger = yes
	}

	society_rank = {
		level = 1
		limit = 100
		startup_limit = 10

		modifier = {
			monthly_character_piety = 0.05
			fertility = -0.15
		}

		custom_tooltip = monastic_order_education_power_tt
	}

	society_rank = {
		level = 2
		limit = 50
		startup_limit = 6

		modifier = {
			monthly_character_piety = 0.1
			learning = 1
			fertility = -0.15
		}

		decisions = {
			monastic_orders_go_celibate # Power: toggle celibacy
			monastic_orders_stop_celibate
			monastic_orders_spiritual_guidance
		}
	}

	society_rank = {
		level = 3
		limit = 25
		startup_limit = 3

		modifier = {
			monthly_character_piety = 0.2
			learning = 2
			build_cost_temple_modifier = -0.25
			fertility = -0.15
		}

		decisions = {
			monastic_orders_invite_ascetic
			monastic_orders_teach_virtue
		}
	}

	society_rank = {
		level = 4
		limit = 5
		startup_limit = 1

		modifier = {
			monthly_character_piety = 0.5
			learning = 3
			build_cost_temple_modifier = -0.5
			fertility = -0.15
		}

		decisions = {
			monastic_order_convert_county
		}
	}

	monthly_currency_gain = {
		name = currency_name_monastic_order_dominican

		per_attribute = {
			name = learning
			value = 0.5
		}

		has_trait = {
			trait = monk
			value = 5
		}

		has_trait = {
			trait = nun
			value = 5
		}

		has_trait = {
			trait = zealous
			value = 3
		}

		has_trait = {
			trait = scholar
			value = 3
		}

		has_trait = {
			trait = theologian
			value = 3
		}

		has_trait = {
			trait = celibate
			value = 2
		}

		has_trait = {
			trait = diligent
			value = 1
		}

		has_trait = {
			trait = chaste
			value = 1
		}

		has_trait = {
			trait = temperate
			value = 1
		}

		has_trait = {
			trait = charitable
			value = 1
		}

		has_trait = {
			trait = kind
			value = 1
		}

		has_trait = {
			trait = patient
			value = 1
		}

		has_trait = {
			trait = humble
			value = 1
		}

		has_trait = {
			trait = honest
			value = 1
		}

		has_trait = {
			trait = erudite
			value = 1
		}

		has_trait = {
			trait = pilgrim
			value = 1
		}

		society_rank = {
			rank = 4
			value = 10
		}

		triggered_gain = {
			desc = saintly_monastic_gain
			value = 3

			trigger = {
				any_owned_bloodline = {
					has_bloodline_flag = monastic_saintly_bloodline
					bloodline_is_active_for = PREV
				}
			}
		}

		# CK2Plus
		has_trait = {
			trait = paragon
			value = 5
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		mult_modifier = {
			factor = 10
			is_priest = yes
		}

		mult_modifier = {
			factor = 5
			trait = monk
		}

		mult_modifier = {
			factor = 5
			trait = nun
		}

		mult_modifier = {
			factor = 1.3
			trait = zealous
		}

		mult_modifier = {
			factor = 1.3
			trait = scholar
		}

		mult_modifier = {
			factor = 1.3
			trait = theologian
		}

		mult_modifier = {
			factor = 1.2
			trait = celibate
		}

		mult_modifier = {
			factor = 1.2
			trait = diligent
		}

		mult_modifier = {
			factor = 1.1
			trait = chaste
		}

		mult_modifier = {
			factor = 1.1
			trait = temperate
		}

		mult_modifier = {
			factor = 1.1
			trait = charitable
		}

		mult_modifier = {
			factor = 1.1
			trait = kind
		}

		mult_modifier = {
			factor = 1.1
			trait = patient
		}

		mult_modifier = {
			factor = 1.1
			trait = humble
		}

		mult_modifier = {
			factor = 1.1
			trait = honest
		}

		mult_modifier = {
			factor = 1.1
			trait = erudite
		}

		mult_modifier = {
			factor = 1.1
			trait = pilgrim
		}
	}

	startup_populate = {
		trigger = {
			OR = { # is_catholic_branch doesn't work for Chalcedonian starts, since rite traits aren't applied in time
				religion = catholic

				trigger_if = {
					limit = { religion = chalcedonian }

					trigger_if = {
						limit = { location = { NOT = { region = custom_latin_rites } } }

						OR = {
							culture_group = latin
							culture_group = italian_group
						}
					}
				}
			}

			is_adult = yes
			lower_real_tier_than = KING
			ai = yes
			controls_religion = no
			holy_order = no
			mercenary = no
			has_secret_religion = no
			is_in_society = no

			OR = {
				trait = zealous
				trait = scholar
				trait = theologian
				trait = monk
				trait = nun
				learning >= 16
				is_priest = yes
			}

			NOR = {
				trait = cynical
				trait = excommunicated
			}
		}
	}
}

monastic_order_orthodox = {
	primary_attribute = learning
	opinion_to_other_members = +10
	opinion_per_rank_above = +5
	sound = monastic_orders_interface
	society_ranks_gfx = monk_ranks

	indestructible = yes
	is_religious = yes
	society_influence = no

	non_interference = {
		always = yes
	}

	active = {
		has_dlc = "Mystics"
	}

	show_society = {
		trigger_if = {
			limit = {
				NOT = { society_member_of = monastic_order_orthodox }
			}

			is_orthodox_branch = yes
			is_heretic = no
		}
	}

	can_join_society = {
		trigger_if = {
			limit = { ai = yes }

			NOT = {
				is_society_rank_full = {
					society = monastic_order_orthodox
					rank = 1
				}
			}
		}

		trigger_if = {
			limit = { has_character_flag = betrayed_monastic_order_orthodox }

			custom_tooltip = {
				text = did_not_betray_society

				NOT = { has_character_flag = betrayed_monastic_order_orthodox }
			}
		}
		trigger_else_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			is_orthodox_branch = yes
			is_adult = yes
			prisoner = no
			is_heretic = no
			NOT = { trait = excommunicated }
			scaled_wealth >= 0.25
		}
	}

	potential = { # To remain in society
		is_orthodox_branch = yes
		is_heretic = no
	}

	society_rank = {
		level = 1
		limit = 50
		startup_limit = 10

		modifier = {
			monthly_character_piety = 0.05
			fertility = -0.15
		}

		custom_tooltip = monastic_order_education_power_tt
	}

	society_rank = {
		level = 2
		limit = 20
		startup_limit = 6

		modifier = {
			monthly_character_piety = 0.1
			learning = 1
			fertility = -0.15
		}

		decisions = {
			monastic_orders_go_celibate # Power: toggle celibacy
			monastic_orders_stop_celibate
			monastic_orders_spiritual_guidance
		}
	}

	society_rank = {
		level = 3
		limit = 10
		startup_limit = 3

		modifier = {
			monthly_character_piety = 0.2
			learning = 2
			build_cost_temple_modifier = -0.25
			fertility = -0.15
		}

		decisions = {
			monastic_orders_invite_ascetic
			monastic_orders_teach_virtue
		}
	}

	society_rank = {
		level = 4
		limit = 5
		startup_limit = 1

		modifier = {
			monthly_character_piety = 0.5
			temple_vassal_tax_modifier = 0.1
			learning = 3
			build_cost_temple_modifier = -0.5
			fertility = -0.15
		}

		decisions = {
			monastic_order_convert_county
		}
	}

	monthly_currency_gain = {
		name = currency_name_monastic_order_orthodox

		per_attribute = {
			name = learning
			value = 0.5
		}

		has_trait = {
			trait = monk
			value = 5
		}

		has_trait = {
			trait = nun
			value = 5
		}

		has_trait = {
			trait = scholar
			value = 3
		}

		has_trait = {
			trait = theologian
			value = 3
		}

		has_trait = {
			trait = celibate
			value = 2
		}

		has_trait = {
			trait = diligent
			value = 1
		}

		has_trait = {
			trait = chaste
			value = 1
		}

		has_trait = {
			trait = temperate
			value = 1
		}

		has_trait = {
			trait = charitable
			value = 1
		}

		has_trait = {
			trait = kind
			value = 1
		}

		has_trait = {
			trait = patient
			value = 1
		}

		has_trait = {
			trait = humble
			value = 1
		}

		has_trait = {
			trait = honest
			value = 1
		}

		has_trait = {
			trait = erudite
			value = 1
		}

		has_trait = {
			trait = pilgrim
			value = 1
		}

		has_trait = {
			trait = zealous
			value = 1
		}

		society_rank = {
			rank = 4
			value = 10
		}

		triggered_gain = {
			desc = saintly_monastic_gain
			value = 3

			trigger = {
				any_owned_bloodline = {
					has_bloodline_flag = monastic_saintly_bloodline
					bloodline_is_active_for = PREV
				}
			}
		}

		# CK2Plus
		has_trait = {
			trait = paragon
			value = 5
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		mult_modifier = {
			factor = 10
			is_priest = yes
		}

		mult_modifier = {
			factor = 5
			trait = monk
		}

		mult_modifier = {
			factor = 5
			trait = nun
		}

		mult_modifier = {
			factor = 1.3
			trait = scholar
		}

		mult_modifier = {
			factor = 1.3
			trait = theologian
		}

		mult_modifier = {
			factor = 1.2
			trait = celibate
		}

		mult_modifier = {
			factor = 1.2
			trait = diligent
		}

		mult_modifier = {
			factor = 1.1
			trait = chaste
		}

		mult_modifier = {
			factor = 1.1
			trait = temperate
		}

		mult_modifier = {
			factor = 1.1
			trait = charitable
		}

		mult_modifier = {
			factor = 1.1
			trait = kind
		}

		mult_modifier = {
			factor = 1.1
			trait = patient
		}

		mult_modifier = {
			factor = 1.1
			trait = humble
		}

		mult_modifier = {
			factor = 1.1
			trait = honest
		}

		mult_modifier = {
			factor = 1.1
			trait = erudite
		}

		mult_modifier = {
			factor = 1.1
			trait = pilgrim
		}

		mult_modifier = {
			factor = 1.1
			trait = zealous
		}
	}

	startup_populate = {
		trigger = {
			OR = { # is_orthodox_branch doesn't work for Chalcedonian starts, since rite traits aren't applied in time
				religion = orthodox

				trigger_if = {
					limit = { religion = chalcedonian }

					OR = {
						culture_group = byzantine
						culture_group = east_slavic

						trigger_if = {
							limit = { culture_group = south_slavic }

							OR = {
								culture = bulgarian
								culture = serbian
							}
						}
					}
				}
			}

			is_adult = yes
			lower_real_tier_than = KING
			ai = yes
			is_heretic = no
			controls_religion = no
			holy_order = no
			mercenary = no
			has_secret_religion = no
			is_in_society = no

			OR = {
				trait = zealous
				trait = scholar
				trait = theologian
				trait = monk
				trait = nun
				learning >= 16
				is_priest = yes
			}

			NOR = {
				trait = cynical
				trait = excommunicated
			}
		}
	}
}

monastic_order_nestorian = {
	primary_attribute = learning
	opinion_to_other_members = +10
	opinion_per_rank_above = +5
	sound = monastic_orders_interface
	society_ranks_gfx = monk_ranks

	indestructible = yes
	is_religious = yes
	society_influence = no

	non_interference = {
		always = yes
	}

	active = {
		has_dlc = "Mystics"
	}

	show_society = {
		trigger_if = {
			limit = {
				NOT = { society_member_of = monastic_order_nestorian }
			}

			is_nestorian_branch = yes
			is_heretic = no
		}
	}

	can_join_society = {
		trigger_if = {
			limit = { ai = yes }

			NOT = {
				is_society_rank_full = {
					society = monastic_order_nestorian
					rank = 1
				}
			}
		}

		trigger_if = {
			limit = { has_character_flag = betrayed_monastic_order_nestorian }

			custom_tooltip = {
				text = did_not_betray_society

				NOT = { has_character_flag = betrayed_monastic_order_nestorian }
			}
		}
		trigger_else_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			is_nestorian_branch = yes
			is_adult = yes
			prisoner = no
			is_heretic = no
			NOT = { trait = excommunicated }
			scaled_wealth >= 0.25
		}
	}

	potential = { # To remain in society
		is_nestorian_branch = yes
		is_heretic = no
	}

	society_rank = {
		level = 1
		limit = 50
		startup_limit = 10

		modifier = {
			monthly_character_piety = 0.05
			fertility = -0.15
		}

		custom_tooltip = monastic_order_education_power_tt
	}

	society_rank = {
		level = 2
		limit = 20
		startup_limit = 6

		modifier = {
			monthly_character_piety = 0.1
			learning = 1
			fertility = -0.15
		}

		decisions = {
			monastic_orders_go_celibate # Power: toggle celibacy
			monastic_orders_stop_celibate
			monastic_orders_spiritual_guidance
		}
	}

	society_rank = {
		level = 3
		limit = 10
		startup_limit = 3

		modifier = {
			monthly_character_piety = 0.2
			learning = 2
			build_cost_temple_modifier = -0.25
			fertility = -0.15
		}

		decisions = {
			monastic_orders_invite_ascetic
			monastic_orders_teach_virtue
		}
	}

	society_rank = {
		level = 4
		limit = 5
		startup_limit = 1

		modifier = {
			monthly_character_piety = 0.5
			temple_vassal_tax_modifier = 0.1
			build_cost_temple_modifier = -0.5
			learning = 3
			fertility = -0.15
		}

		decisions = {
			monastic_order_convert_county
		}
	}

	monthly_currency_gain = {
		name = currency_name_monastic_order_nestorian

		per_attribute = {
			name = learning
			value = 0.5
		}

		has_trait = {
			trait = monk
			value = 5
		}

		has_trait = {
			trait = nun
			value = 5
		}

		has_trait = {
			trait = scholar
			value = 3
		}

		has_trait = {
			trait = theologian
			value = 3
		}

		has_trait = {
			trait = celibate
			value = 2
		}

		has_trait = {
			trait = diligent
			value = 1
		}

		has_trait = {
			trait = chaste
			value = 1
		}

		has_trait = {
			trait = temperate
			value = 1
		}

		has_trait = {
			trait = charitable
			value = 1
		}

		has_trait = {
			trait = kind
			value = 1
		}

		has_trait = {
			trait = patient
			value = 1
		}

		has_trait = {
			trait = humble
			value = 1
		}

		has_trait = {
			trait = honest
			value = 1
		}

		has_trait = {
			trait = erudite
			value = 1
		}

		has_trait = {
			trait = pilgrim
			value = 1
		}

		has_trait = {
			trait = zealous
			value = 1
		}

		society_rank = {
			rank = 4
			value = 10
		}

		triggered_gain = {
			desc = saintly_monastic_gain
			value = 3

			trigger = {
				any_owned_bloodline = {
					has_bloodline_flag = monastic_saintly_bloodline
					bloodline_is_active_for = PREV
				}
			}
		}

		# CK2Plus
		has_trait = {
			trait = paragon
			value = 5
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		mult_modifier = {
			factor = 10
			is_priest = yes
		}

		mult_modifier = {
			factor = 5
			trait = monk
		}

		mult_modifier = {
			factor = 5
			trait = nun
		}

		mult_modifier = {
			factor = 1.3
			trait = scholar
		}

		mult_modifier = {
			factor = 1.3
			trait = theologian
		}

		mult_modifier = {
			factor = 1.2
			trait = celibate
		}

		mult_modifier = {
			factor = 1.2
			trait = diligent
		}

		mult_modifier = {
			factor = 1.1
			trait = chaste
		}

		mult_modifier = {
			factor = 1.1
			trait = temperate
		}

		mult_modifier = {
			factor = 1.1
			trait = charitable
		}

		mult_modifier = {
			factor = 1.1
			trait = kind
		}

		mult_modifier = {
			factor = 1.1
			trait = patient
		}

		mult_modifier = {
			factor = 1.1
			trait = humble
		}

		mult_modifier = {
			factor = 1.1
			trait = honest
		}

		mult_modifier = {
			factor = 1.1
			trait = erudite
		}

		mult_modifier = {
			factor = 1.1
			trait = pilgrim
		}

		mult_modifier = {
			factor = 1.1
			trait = zealous
		}
	}

	startup_populate = {
		trigger = {
			is_nestorian_branch = yes
			is_adult = yes
			lower_real_tier_than = KING
			ai = yes
			is_heretic = no
			controls_religion = no
			holy_order = no
			mercenary = no
			has_secret_religion = no
			is_in_society = no

			OR = {
				trait = zealous
				trait = scholar
				trait = theologian
				trait = monk
				trait = nun
				learning >= 16
				is_priest = yes
			}

			NOR = {
				trait = cynical
				trait = excommunicated
			}
		}
	}
}

monastic_order_monophysite = {
	primary_attribute = learning
	opinion_to_other_members = +10
	opinion_per_rank_above = +5
	sound = monastic_orders_interface
	society_ranks_gfx = monk_ranks

	indestructible = yes
	is_religious = yes
	society_influence = no

	non_interference = {
		always = yes
	}

	active = {
		has_dlc = "Mystics"
	}

	show_society = {
		trigger_if = {
			limit = {
				NOT = { society_member_of = monastic_order_monophysite }
			}

			is_miaphysite_branch = yes
			is_heretic = no
		}
	}

	can_join_society = {
		trigger_if = {
			limit = { ai = yes }

			NOT = {
				is_society_rank_full = {
					society = monastic_order_monophysite
					rank = 1
				}
			}
		}

		trigger_if = {
			limit = { has_character_flag = betrayed_monastic_order_monophysite }

			custom_tooltip = {
				text = did_not_betray_society

				NOT = { has_character_flag = betrayed_monastic_order_monophysite }
			}
		}
		trigger_else_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			is_miaphysite_branch = yes
			is_adult = yes
			prisoner = no
			is_heretic = no
			NOT = { trait = excommunicated }
			scaled_wealth >= 0.25
		}
	}

	potential = { # To remain in society
		is_miaphysite_branch = yes
		is_heretic = no
	}

	society_rank = {
		level = 1
		limit = 50
		startup_limit = 10

		modifier = {
			monthly_character_piety = 0.05
			fertility = -0.15
		}

		custom_tooltip = monastic_order_education_power_tt
	}

	society_rank = {
		level = 2
		limit = 20
		startup_limit = 6

		modifier = {
			monthly_character_piety = 0.1
			learning = 1
			fertility = -0.15
		}

		decisions = {
			monastic_orders_go_celibate # Power: toggle celibacy
			monastic_orders_stop_celibate
			monastic_orders_spiritual_guidance
		}
	}

	society_rank = {
		level = 3
		limit = 10
		startup_limit = 3

		modifier = {
			monthly_character_piety = 0.2
			learning = 2
			build_cost_temple_modifier = -0.25
			fertility = -0.15
		}

		decisions = {
			monastic_orders_invite_ascetic
			monastic_orders_teach_virtue
		}
	}

	society_rank = {
		level = 4
		limit = 5
		startup_limit = 1

		modifier = {
			monthly_character_piety = 0.5
			temple_vassal_tax_modifier = 0.1
			build_cost_temple_modifier = -0.5
			learning = 3
			fertility = -0.15
		}

		decisions = {
			monastic_order_convert_county
		}
	}

	plots = {
	}

	ambitions = {
	}

	monthly_currency_gain = {
		name = currency_name_monastic_order_monophysite

		per_attribute = {
			name = learning
			value = 0.5
		}

		has_trait = {
			trait = monk
			value = 5
		}

		has_trait = {
			trait = nun
			value = 5
		}

		has_trait = {
			trait = scholar
			value = 3
		}

		has_trait = {
			trait = theologian
			value = 3
		}

		has_trait = {
			trait = celibate
			value = 2
		}

		has_trait = {
			trait = diligent
			value = 1
		}

		has_trait = {
			trait = chaste
			value = 1
		}

		has_trait = {
			trait = temperate
			value = 1
		}

		has_trait = {
			trait = charitable
			value = 1
		}

		has_trait = {
			trait = kind
			value = 1
		}

		has_trait = {
			trait = patient
			value = 1
		}

		has_trait = {
			trait = humble
			value = 1
		}

		has_trait = {
			trait = honest
			value = 1
		}

		has_trait = {
			trait = erudite
			value = 1
		}

		has_trait = {
			trait = pilgrim
			value = 1
		}

		has_trait = {
			trait = zealous
			value = 1
		}

		society_rank = {
			rank = 4
			value = 10
		}

		triggered_gain = {
			desc = saintly_monastic_gain
			value = 3

			trigger = {
				any_owned_bloodline = {
					has_bloodline_flag = monastic_saintly_bloodline
					bloodline_is_active_for = PREV
				}
			}
		}

		# CK2Plus
		has_trait = {
			trait = paragon
			value = 5
		}

		# CK2Plus
		has_trait = {
			trait = desert_father
			value = 5
		}

		# CK2Plus
		has_trait = {
			trait = desert_mother
			value = 5
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		mult_modifier = {
			factor = 10
			is_priest = yes
		}

		mult_modifier = {
			factor = 5
			trait = monk
		}

		mult_modifier = {
			factor = 5
			trait = nun
		}

		mult_modifier = {
			factor = 1.3
			trait = scholar
		}

		mult_modifier = {
			factor = 1.3
			trait = theologian
		}

		mult_modifier = {
			factor = 1.2
			trait = celibate
		}

		mult_modifier = {
			factor = 1.2
			trait = diligent
		}

		mult_modifier = {
			factor = 1.1
			trait = chaste
		}

		mult_modifier = {
			factor = 1.1
			trait = temperate
		}

		mult_modifier = {
			factor = 1.1
			trait = charitable
		}

		mult_modifier = {
			factor = 1.1
			trait = kind
		}

		mult_modifier = {
			factor = 1.1
			trait = patient
		}

		mult_modifier = {
			factor = 1.1
			trait = humble
		}

		mult_modifier = {
			factor = 1.1
			trait = honest
		}

		mult_modifier = {
			factor = 1.1
			trait = erudite
		}

		mult_modifier = {
			factor = 1.1
			trait = pilgrim
		}

		mult_modifier = {
			factor = 1.1
			trait = zealous
		}
	}

	startup_populate = {
		trigger = {
			is_miaphysite_branch = yes
			is_adult = yes
			lower_real_tier_than = KING
			ai = yes
			is_heretic = no
			controls_religion = no
			holy_order = no
			mercenary = no
			has_secret_religion = no
			is_in_society = no

			OR = {
				trait = zealous
				trait = scholar
				trait = theologian
				trait = monk
				trait = nun
				learning >= 16
				is_priest = yes
			}

			NOR = {
				trait = cynical
				trait = excommunicated
			}
		}
	}
}

monastic_order_hindu = {
	primary_attribute = learning
	opinion_to_other_members = +10
	opinion_per_rank_above = +5
	sound = monastic_orders_indian_interface
	society_ranks_gfx = monk_ranks

	indestructible = yes
	is_religious = yes
	society_influence = no

	non_interference = {
		always = yes
	}

	active = {
		has_dlc = "Mystics"
	}

	show_society = {
		trigger_if = {
			limit = {
				NOT = { society_member_of = monastic_order_hindu }
			}

			religion = hindu
		}
	}

	can_join_society = {
		trigger_if = {
			limit = { ai = yes }

			NOT = {
				is_society_rank_full = {
					society = monastic_order_hindu
					rank = 1
				}
			}
		}

		trigger_if = {
			limit = { has_character_flag = betrayed_monastic_order_hindu }

			custom_tooltip = {
				text = did_not_betray_society

				NOT = { has_character_flag = betrayed_monastic_order_hindu }
			}
		}
		trigger_else_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			religion = hindu
			is_adult = yes
			prisoner = no
			scaled_wealth >= 0.25
		}
	}

	potential = { # To remain in society
		religion = hindu
	}

	society_rank = {
		level = 1
		limit = 50
		startup_limit = 10

		modifier = {
			monthly_character_piety = 0.05
			fertility = -0.15
		}

		custom_tooltip = monastic_order_education_power_tt
	}

	society_rank = {
		level = 2
		limit = 20
		startup_limit = 6

		modifier = {
			monthly_character_piety = 0.1
			learning = 1
			fertility = -0.15
		}

		decisions = {
			monastic_orders_go_celibate # Power: toggle celibacy
			monastic_orders_stop_celibate
			monastic_orders_spiritual_guidance
		}
	}

	society_rank = {
		level = 3
		limit = 10
		startup_limit = 3

		modifier = {
			monthly_character_piety = 0.2
			learning = 2
			build_cost_temple_modifier = -0.25
			fertility = -0.15
		}

		decisions = {
			monastic_orders_invite_ascetic
			monastic_orders_teach_virtue
		}
	}

	society_rank = {
		level = 4
		limit = 5
		startup_limit = 1

		modifier = {
			monthly_character_piety = 0.5
			learning = 3
			build_cost_temple_modifier = -0.5
			health = 1
			fertility = 0.15
		}

		decisions = {
			monastic_order_convert_county
		}
	}

	monthly_currency_gain = {
		name = currency_name_monastic_order_hindu

		per_attribute = {
			name = learning
			value = 0.5
		}

		has_trait = {
			trait = brahmin
			value = 5
		}

		has_trait = {
			trait = content
			value = 3
		}

		has_trait = {
			trait = erudite
			value = 3
		}

		has_trait = {
			trait = scholar
			value = 3
		}

		has_trait = {
			trait = theologian
			value = 3
		}

		has_trait = {
			trait = diligent
			value = 1
		}

		has_trait = {
			trait = patient
			value = 1
		}

		has_trait = {
			trait = temperate
			value = 1
		}

		has_trait = {
			trait = charitable
			value = 1
		}

		has_trait = {
			trait = kind
			value = 1
		}

		has_trait = {
			trait = humble
			value = 1
		}

		has_trait = {
			trait = honest
			value = 1
		}

		society_rank = {
			rank = 4
			value = 10
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		mult_modifier = {
			factor = 10
			is_priest = yes
		}

		mult_modifier = {
			factor = 5
			trait = brahmin
		}

		mult_modifier = {
			factor = 1.3
			trait = content
		}

		mult_modifier = {
			factor = 1.3
			trait = erudite
		}

		mult_modifier = {
			factor = 1.3
			trait = scholar
		}

		mult_modifier = {
			factor = 1.3
			trait = theologian
		}

		mult_modifier = {
			factor = 1.1
			trait = diligent
		}

		mult_modifier = {
			factor = 1.1
			trait = patient
		}

		mult_modifier = {
			factor = 1.1
			trait = temperate
		}

		mult_modifier = {
			factor = 1.1
			trait = charitable
		}

		mult_modifier = {
			factor = 1.1
			trait = kind
		}

		mult_modifier = {
			factor = 1.1
			trait = humble
		}

		mult_modifier = {
			factor = 1.1
			trait = honest
		}
	}

	startup_populate = {
		trigger = {
			religion = hindu
			is_adult = yes
			lower_real_tier_than = KING
			ai = yes
			controls_religion = no
			holy_order = no
			mercenary = no
			has_secret_religion = no
			is_in_society = no
			NOT = { trait = cynical }

			OR = {
				trait = zealous
				trait = scholar
				trait = theologian
				trait = brahmin
				learning >= 16
				is_priest = yes
			}
		}
	}
}

monastic_order_buddhist = {
	primary_attribute = diplomacy
	opinion_to_other_members = +10
	opinion_per_rank_above = +5
	sound = monastic_orders_indian_interface
	society_ranks_gfx = monk_ranks

	indestructible = yes
	is_religious = yes
	society_influence = no

	non_interference = {
		always = yes
	}

	active = {
		has_dlc = "Mystics"
	}

	show_society = {
		trigger_if = {
			limit = {
				NOT = { society_member_of = monastic_order_buddhist }
			}

			religion = buddhist
		}
	}

	can_join_society = {
		trigger_if = {
			limit = { ai = yes }

			NOT = {
				is_society_rank_full = {
					society = monastic_order_buddhist
					rank = 1
				}
			}
		}

		trigger_if = {
			limit = { has_character_flag = betrayed_monastic_order_buddhist }

			custom_tooltip = {
				text = did_not_betray_society

				NOT = { has_character_flag = betrayed_monastic_order_buddhist }
			}
		}
		trigger_else_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			religion = buddhist
			is_adult = yes
			prisoner = no
			scaled_wealth >= 0.25
		}
	}

	potential = { # To remain in society
		religion = buddhist
	}

	society_rank = {
		level = 1
		limit = 50
		startup_limit = 10

		modifier = {
			monthly_character_piety = 0.05
			fertility = -0.15
		}

		custom_tooltip = dharmic_good_trait_power_tt
	}

	society_rank = {
		level = 2
		limit = 20
		startup_limit = 6

		modifier = {
			monthly_character_piety = 0.1
			diplomacy = 1
			fertility = -0.15
		}

		decisions = {
			monastic_orders_go_celibate # Power: toggle celibacy
			monastic_orders_stop_celibate
			monastic_orders_spiritual_guidance
		}
	}

	society_rank = {
		level = 3
		limit = 10
		startup_limit = 3

		modifier = {
			monthly_character_piety = 0.2
			diplomacy = 2
			build_cost_temple_modifier = -0.25
			fertility = -0.15
		}

		decisions = {
			monastic_orders_invite_ascetic
			monastic_orders_teach_virtue
		}
	}

	society_rank = {
		level = 4
		limit = 5
		startup_limit = 1

		modifier = {
			monthly_character_piety = 0.5
			diplomacy = 3
			build_cost_temple_modifier = -0.5
			global_revolt_risk = -0.08
			fertility = -0.15
		}

		decisions = {
			monastic_order_convert_county
		}
	}

	monthly_currency_gain = {
		name = currency_name_monastic_order_buddhist

		per_attribute = {
			name = diplomacy
			value = 0.5
		}

		has_trait = {
			trait = brahmin
			value = 5
		}

		has_trait = {
			trait = content
			value = 3
		}

		has_trait = {
			trait = kind
			value = 3
		}

		has_trait = {
			trait = patient
			value = 3
		}

		has_trait = {
			trait = diligent
			value = 1
		}

		has_trait = {
			trait = temperate
			value = 1
		}

		has_trait = {
			trait = charitable
			value = 1
		}

		has_trait = {
			trait = humble
			value = 1
		}

		has_trait = {
			trait = chaste
			value = 1
		}

		has_trait = {
			trait = celibate
			value = 1
		}

		has_trait = {
			trait = honest
			value = 1
		}

		has_trait = {
			trait = theologian
			value = 1
		}

		society_rank = {
			rank = 4
			value = 10
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		mult_modifier = {
			factor = 10
			is_priest = yes
		}

		mult_modifier = {
			factor = 5
			trait = brahmin
		}

		mult_modifier = {
			factor = 1.3
			trait = content
		}

		mult_modifier = {
			factor = 1.3
			trait = kind
		}

		mult_modifier = {
			factor = 1.3
			trait = patient
		}

		mult_modifier = {
			factor = 1.1
			trait = diligent
		}

		mult_modifier = {
			factor = 1.1
			trait = temperate
		}

		mult_modifier = {
			factor = 1.1
			trait = charitable
		}

		mult_modifier = {
			factor = 1.1
			trait = humble
		}

		mult_modifier = {
			factor = 1.1
			trait = chaste
		}

		mult_modifier = {
			factor = 1.1
			trait = celibate
		}

		mult_modifier = {
			factor = 1.1
			trait = honest
		}

		mult_modifier = {
			factor = 1.1
			trait = theologian
		}
	}

	startup_populate = {
		trigger = {
			religion = buddhist
			is_adult = yes
			lower_real_tier_than = KING
			ai = yes
			controls_religion = no
			holy_order = no
			mercenary = no
			has_secret_religion = no
			is_in_society = no
			NOT = { trait = cynical }

			OR = {
				trait = zealous
				trait = scholar
				trait = theologian
				trait = brahmin
				learning >= 16
				is_priest = yes
			}
		}
	}
}

monastic_order_jain = {
	primary_attribute = learning
	opinion_to_other_members = +10
	opinion_per_rank_above = +5
	sound = monastic_orders_indian_interface
	society_ranks_gfx = monk_ranks

	indestructible = yes
	is_religious = yes
	society_influence = no

	non_interference = {
		always = yes
	}

	active = {
		has_dlc = "Mystics"
	}

	show_society = {
		trigger_if = {
			limit = {
				NOT = { society_member_of = monastic_order_jain }
			}

			religion = jain
		}
	}

	can_join_society = {
		trigger_if = {
			limit = { ai = yes }

			NOT = {
				is_society_rank_full = {
					society = monastic_order_jain
					rank = 1
				}
			}
		}

		trigger_if = {
			limit = { has_character_flag = betrayed_monastic_order_jain }

			custom_tooltip = {
				text = did_not_betray_society

				NOT = { has_character_flag = betrayed_monastic_order_jain }
			}
		}
		trigger_else_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			religion = jain
			is_adult = yes
			prisoner = no
			scaled_wealth >= 0.25
		}
	}

	potential = { # To remain in society
		religion = jain
	}

	society_rank = {
		level = 1
		limit = 50
		startup_limit = 10

		modifier = {
			monthly_character_piety = 0.05
			fertility = -0.15
		}

		custom_tooltip = dharmic_good_trait_power_tt
	}

	society_rank = {
		level = 2
		limit = 20
		startup_limit = 6

		modifier = {
			monthly_character_piety = 0.1
			learning = 1
			fertility = -0.15
		}

		decisions = {
			monastic_orders_go_celibate # Power: toggle celibacy
			monastic_orders_stop_celibate
			monastic_orders_spiritual_guidance
		}
	}

	society_rank = {
		level = 3
		limit = 10
		startup_limit = 3

		modifier = {
			monthly_character_piety = 0.2
			learning = 2
			build_cost_temple_modifier = -0.25
			fertility = -0.15
		}

		decisions = {
			monastic_orders_invite_ascetic
			monastic_orders_teach_virtue
		}
	}

	society_rank = {
		level = 4
		limit = 5
		startup_limit = 1

		modifier = {
			monthly_character_piety = 0.5
			learning = 3
			build_cost_temple_modifier = -0.5
			same_religion_opinion = 30
			hindu_opinion = 15
			buddhist_opinion = 15
			fertility = -0.15
		}

		decisions = {
			monastic_order_convert_county
		}
	}

	plots = {
	}

	ambitions = {
	}

	monthly_currency_gain = {
		name = currency_name_monastic_order_jain

		per_attribute = {
			name = learning
			value = 0.5
		}

		has_trait = {
			trait = brahmin
			value = 5
		}

		has_trait = {
			trait = content
			value = 3
		}

		has_trait = {
			trait = kind
			value = 3
		}

		has_trait = {
			trait = patient
			value = 3
		}

		has_trait = {
			trait = diligent
			value = 1
		}

		has_trait = {
			trait = temperate
			value = 1
		}

		has_trait = {
			trait = charitable
			value = 1
		}

		has_trait = {
			trait = humble
			value = 1
		}

		has_trait = {
			trait = chaste
			value = 1
		}

		has_trait = {
			trait = celibate
			value = 1
		}

		has_trait = {
			trait = honest
			value = 1
		}

		has_trait = {
			trait = theologian
			value = 1
		}

		society_rank = {
			rank = 4
			value = 10
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		mult_modifier = {
			factor = 10
			is_priest = yes
		}

		mult_modifier = {
			factor = 5
			trait = brahmin
		}

		mult_modifier = {
			factor = 1.5
			trait = brahmin
		}

		mult_modifier = {
			factor = 1.3
			trait = content
		}

		mult_modifier = {
			factor = 1.3
			trait = kind
		}

		mult_modifier = {
			factor = 1.3
			trait = patient
		}

		mult_modifier = {
			factor = 1.1
			trait = diligent
		}

		mult_modifier = {
			factor = 1.1
			trait = temperate
		}

		mult_modifier = {
			factor = 1.1
			trait = charitable
		}

		mult_modifier = {
			factor = 1.1
			trait = humble
		}

		mult_modifier = {
			factor = 1.1
			trait = chaste
		}

		mult_modifier = {
			factor = 1.1
			trait = celibate
		}

		mult_modifier = {
			factor = 1.1
			trait = honest
		}

		mult_modifier = {
			factor = 1.1
			trait = theologian
		}
	}

	startup_populate = {
		trigger = {
			religion = jain
			is_adult = yes
			lower_real_tier_than = KING
			ai = yes
			controls_religion = no
			holy_order = no
			mercenary = no
			has_secret_religion = no
			is_in_society = no
			NOT = { trait = cynical }

			OR = {
				trait = zealous
				trait = scholar
				trait = theologian
				trait = brahmin
				learning >= 16
				is_priest = yes
			}
		}
	}
}

monastic_order_stoics = {
	primary_attribute = learning
	opinion_to_other_members = +10
	opinion_per_rank_above = +5
	sound = monastic_orders_interface
	society_ranks_gfx = generic_ranks

	indestructible = yes
	is_religious = yes
	society_influence = no

	non_interference = {
		always = yes
	}

	active = {
		has_dlc = "Mystics"
		has_global_flag = flag_restored_stoic_intelligentia
	}

	show_society = {
		trigger_if = {
			limit = {
				NOT = { society_member_of = monastic_order_stoics }
			}

			is_tribal = no
			is_nomadic = no

			trigger_if = {
				limit = { culture = roman }

				OR = {
					religion_openly_hellenic_or_reformed_trigger = yes
					# Somewhat compatible when mixed with Roman culture
					religion_group = christian
					religion_group = jewish_group
					religion = buddhist
					religion_openly_bon_or_reformed_trigger = yes
				}
			}
			trigger_else = {
				religion_openly_hellenic_or_reformed_trigger = yes
			}
		}
	}

	can_join_society = {
		trigger_if = {
			limit = { ai = yes }

			NOT = {
				is_society_rank_full = {
					society = monastic_order_stoics
					rank = 1
				}
			}
		}

		trigger_if = {
			limit = { has_character_flag = betrayed_monastic_order_stoics }

			custom_tooltip = {
				text = did_not_betray_society

				NOT = { has_character_flag = betrayed_monastic_order_stoics }
			}
		}
		trigger_else_if = {
			limit = { has_character_flag = society_join_block }
			always = no
		}
		trigger_else = {
			is_adult = yes
			prisoner = no
			is_tribal = no
			is_nomadic = no

			trigger_if = {
				limit = { culture = roman }

				OR = {
					religion_openly_hellenic_or_reformed_trigger = yes
					# Somewhat compatible when mixed with Roman culture
					religion_group = christian
					religion_group = jewish_group
					religion = buddhist
					religion_openly_bon_or_reformed_trigger = yes
				}
			}
			trigger_else = {
				religion_openly_hellenic_or_reformed_trigger = yes
			}

			NOT = { trait = excommunicated }
			scaled_wealth >= 0.25
		}
	}

	potential = { # To remain in society
		is_tribal = no
		is_nomadic = no
	}

	society_rank = {
		level = 1
		limit = 60
		startup_limit = 10

		modifier = {
			monthly_character_piety = 0.05
			fertility = -0.15
		}

		custom_tooltip = monastic_order_education_power_tt
	}

	society_rank = {
		level = 2
		limit = 30
		startup_limit = 6

		modifier = {
			monthly_character_piety = 0.1
			learning = 1
			fertility = -0.15
		}

		decisions = {
			monastic_orders_go_celibate # Power: toggle celibacy
			monastic_orders_stop_celibate
			monastic_orders_spiritual_guidance
		}
	}

	society_rank = {
		level = 3
		limit = 25
		startup_limit = 4

		modifier = {
			monthly_character_piety = 0.2
			diplomacy = 1
			learning = 1
			build_cost_city_modifier = -0.25
			fertility = -0.15
		}

		decisions = {
			monastic_orders_invite_ascetic
			monastic_orders_teach_virtue
		}
	}

	society_rank = {
		level = 4
		limit = 8
		startup_limit = 2

		modifier = {
			monthly_character_piety = 0.5
			diplomacy = 1
			learning = 2
			build_cost_city_modifier = -0.5
			fertility = -0.15
		}

		decisions = {
			stoic_order_culture_convert_county
		}
	}

	monthly_currency_gain = {
		name = currency_name_monastic_order_stoics

		per_attribute = {
			name = learning
			value = 0.5
		}

		has_trait = {
			trait = scholar
			value = 4
		}

		has_trait = {
			trait = theologian
			value = 4
		}

		has_trait = {
			trait = temperate
			value = 4
		}

		has_trait = {
			trait = diligent
			value = 4
		}

		has_trait = {
			trait = erudite
			value = 3
		}

		has_trait = {
			trait = monk
			value = 2
		}

		has_trait = {
			trait = nun
			value = 2
		}

		has_trait = {
			trait = just
			value = 2
		}

		has_trait = {
			trait = mystic
			value = 2
		}

		has_trait = {
			trait = celibate
			value = 1
		}

		has_trait = {
			trait = chaste
			value = 1
		}

		has_trait = {
			trait = charitable
			value = 1
		}

		has_trait = {
			trait = kind
			value = 1
		}

		has_trait = {
			trait = patient
			value = 1
		}

		has_trait = {
			trait = humble
			value = 1
		}

		has_trait = {
			trait = honest
			value = 1
		}

		has_trait = {
			trait = erudite
			value = 1
		}

		has_trait = {
			trait = pilgrim
			value = 1
		}

		society_rank = {
			rank = 4
			value = 10
		}
	}

	member_score_per_attribute = 3
	member_score_per_rank = 100

	member_score = {
		value = 10

		mult_modifier = {
			factor = 5
			trait = scholar
		}

		mult_modifier = {
			factor = 3
			trait = theologian
		}

		mult_modifier = {
			factor = 2
			trait = diligent
		}

		mult_modifier = {
			factor = 2
			trait = erudite
		}

		mult_modifier = {
			factor = 2
			trait = just
		}

		mult_modifier = {
			factor = 1.2
			trait = celibate
		}

		mult_modifier = {
			factor = 1.1
			trait = chaste
		}

		mult_modifier = {
			factor = 1.1
			trait = temperate
		}

		mult_modifier = {
			factor = 1.1
			trait = charitable
		}

		mult_modifier = {
			factor = 1.1
			trait = kind
		}

		mult_modifier = {
			factor = 1.1
			trait = patient
		}

		mult_modifier = {
			factor = 1.1
			trait = humble
		}

		mult_modifier = {
			factor = 1.1
			trait = honest
		}

		mult_modifier = {
			factor = 1.1
			trait = pilgrim
		}
	}

	startup_populate = {
		trigger = {
			trigger_if = {
				limit = { culture = roman }

				OR = {
					religion_openly_hellenic_or_reformed_trigger = yes
					# Somewhat compatible when mixed with Roman culture
					religion_group = christian
					religion_group = jewish_group
					religion = buddhist
					religion_openly_bon_or_reformed_trigger = yes
				}
			}
			trigger_else = {
				religion_openly_hellenic_or_reformed_trigger = yes
			}

			is_adult = yes
			lower_real_tier_than = KING
			ai = yes
			controls_religion = no
			holy_order = no
			is_tribal = no
			is_nomadic = no
			mercenary = no
			has_secret_religion = no
			is_in_society = no
			NOT = { trait = excommunicated }

			OR = {
				trait = zealous
				trait = scholar
				trait = theologian
				trait = erudite
				trait = diligent
				learning >= 16
			}
		}
	}
}