decisions = {

	form_council_of_illumination = {
		only_independent = yes
		is_high_prio = yes
		ai_check_interval = 36
	
		potential = {
			is_playable = yes
			religion = neognostic
			NOT = {
				has_alternate_start_parameter = { key = religion_names value = random }
			}
			NOT = { is_title_active = d_neognostic }
			has_dlc = "Sons of Abraham"
		}
		
		allow = {
			piety = 1000
			OR = {
				owns = 389 # Denver
				any_realm_lord = {
					owns = 389
				}
			}
			NOT = { government = tribal_government }
			higher_tier_than = DUKE
		}
		
		effect = {
			activate_title = { title = d_neognostic status = yes }
			hidden_tooltip = {
				create_random_priest = {
					dynasty = none
					random_traits = yes
				}
				new_character = {
					character_event = { id = misc.3 } #Diversity
					character_event = { id = misc.4 } # Physique
					d_neognostic = {
						grant_title = PREV
					}
					wealth = 500
					opinion = {
						who = ROOT
						modifier = opinion_creator_of_rel_heal
					}
				}
				
				religion_authority = {
					modifier = papacy_instituted
					years = 20
				}
			}
			piety = 1000
		}
		
		revoke_allowed = {
			always = no
		}
		
		ai_will_do = {
			factor = 1
		}
	}
	make_perfectus_perfect = {
		is_high_prio = yes
		ai_check_interval = 36
	
		potential = {
			has_title = d_neognostic
		}
		
		allow = {
			NOT = {
				OR = {
					has_trait = nun
					has_trait = monk
				}
			}
		}
		
		effect = {
			
		add_trait = celibate
		if = {
			limit = {
				female = no
			}
			add_trait = monk
		}
		else_if = {
			limit = {
				female = yes
			}
			add_trait = nun
		}
	}
}