decisions = {

# Adoptionist decisions
form_adoptionist_papacy = { 
  is_high_prio = yes
  ai_check_interval = 12 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
    religion = adoptionist
	is_adult = yes
	d_adoptionist = {
		has_holder = no
	}
  }
  
  allow = {
	primary_title = { higher_tier_than = DUKE }
	prisoner = no
	independent = yes
	prestige = 500
	wealth = 120
	NOT = {
		AND = {
			trait = humble 
			ai = yes
		}
	}
	any_vassal = {
		AND = {
			religion = adoptionist
			is_theocracy = yes 
		}
	}
  }
  effect = {
    narrative_event = { id = CIML.540 }
	wealth = -120
	random_vassal = {
		limit = {
			AND = {
				religion = adoptionist
				is_theocracy = yes 
			}
		}
		d_adoptionist = {
			grant_title = PREV
		}
		opinion = {
			who = ROOT
			modifier = opinion_creator_of_rel_heal
		}
		set_defacto_liege = ROOT
	}
	religion_authority = {
		modifier = patriarchy_instituted
		years = 3
	}
  }
  ai_will_do = {
    #Factors for an AI character to take the decision (1 = 100% chance)
  }
}

# Free Spirits decisions
become_beghard = {
  is_high_prio = yes 
  ai_check_interval = 12 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
    religion = free_spirits
	is_adult = yes
	is_female = no
	NOT = { trait = beghard }
  }
  
  allow = {
	prisoner = no
	OR = { 
		wealth = 15
		ai = yes
	}
	OR = {
		trait = charitable
		trait = zealous
		trait = kind
	}
	NOR = {
		trait = greedy
		trait = cynical
		trait = proud
		trait = cruel
	}
  }
  
  effect = {
	add_trait = beghard
	if = { 
		limit = { 
			ai = no
		} 
		wealth = -15
		}
	}
	
  ai_will_do = {
    #Factors for an AI character to take the decision (1 = 100% chance)
  }
}

become_beguine = { 
  is_high_prio = yes
  ai_check_interval = 12 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
    religion = free_spirits
	is_adult = yes
	is_female = yes
	NOT = { trait = beguine }
	
  }
  
  allow = {
	prisoner = no
	OR = { 
		wealth = 15
		ai = yes
	}
	OR = {
		trait = charitable
		trait = zealous
		trait = kind
	}
	NOR = {
		trait = greedy
		trait = cynical
		trait = proud
		trait = cruel
	}
  }
  
  effect = {
	add_trait = beguine
	if = { 
		limit = { 
			ai = no
		} 
		wealth = -15
		}
	}
	
  ai_will_do = {
    #Factors for an AI character to take the decision (1 = 100% chance)
  }
}

}
