decisions = {

consult_exorcist_possesed = { 
  is_high_prio = yes
  ai_check_interval = 200 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
	OR = {
			religion = catholic
			religion = fraticelli
			religion = miaphysite
			religion = monophysite
			religion = judaizer
			religion = nestorian
			religion = apollinarian
			religion = chaldean
			religion = orthodox
			religion = iconoclast
			religion = monothelite
			trait = utraquist
			religion = adoptionist
			religion = barlaamite
	}
	trait = possessed
  }
  
  allow = {	
  prisoner = no
  in_seclusion = no
  NOT = { trait = incapable }
  NOT = {
	OR = {
		AND = { 
			trait = cynical
			trait = proud
		}
		AND = { 
			trait = cynical
			trait = stubborn
		}
	society_is_devil_worshiper = yes
	has_secret_religion = yes
	has_character_modifier = exorcist_consulted
	}
  }
 }

  effect = {
	character_event = { id = CIML.342 }
	add_character_modifier = { 
	name = exorcist_consulted
	months = 48 
	}
  }
}

consult_exorcist_lunatic = { 
  is_high_prio = yes
  ai_check_interval = 200 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
	OR = {
			religion = catholic
			religion = fraticelli
			religion = miaphysite
			religion = monophysite
			religion = judaizer
			religion = nestorian
			religion = apollinarian
			religion = chaldean
			religion = orthodox
			religion = iconoclast
			religion = monothelite
			trait = utraquist
			religion = adoptionist
			religion = barlaamite
	}
	trait = lunatic
  }
  
  allow = {
  prisoner = no
  in_seclusion = no
  NOT = { trait = incapable }
  NOT = {
	OR = {
		AND = { 
			trait = cynical
			trait = proud
		}
		AND = { 
			trait = cynical
			trait = stubborn
		}
		society_is_devil_worshiper = yes
		has_secret_religion = yes
		has_character_modifier = exorcist_consulted
	}
  }
 }

  effect = {
	character_event = { id = CIML.341 }
	add_character_modifier = { 
	name = exorcist_consulted
	months = 48 
	}
  }
}

get_last_rites = { 
  is_high_prio = yes
  ai_check_interval = 6 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
	AND = {
		is_ill = yes
		OR = {
			religion = catholic
			religion = fraticelli
			religion = miaphysite
			religion = monophysite
			religion = judaizer
			religion = nestorian
			religion = apollinarian
			religion = chaldean
			religion = orthodox
			religion = iconoclast
			religion = monothelite
			trait = utraquist
			religion = adoptionist
			religion = barlaamite
		}
	}
  }
  
  allow = {
	prisoner = no
	in_seclusion = no
	NOT = {
	 OR = {
		AND = { 
			trait = cynical
			trait = proud
		}
		AND = { 
			trait = cynical
			trait = stubborn
		}
		society_is_devil_worshiper = yes
		has_secret_religion = yes
		has_character_modifier = last_rite
		trait = incapable
	}
   }
  }

  effect = {
	character_event = { id = CIML.343 }
	add_character_modifier = { 
	name = last_rite
	months = 24 
	}
  }
}

order_requiem_mass = { 
  ai_check_interval = 350 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
	OR = {
			religion = catholic
			religion = fraticelli
			trait = utraquist
			religion = adoptionist
	}
  }
  
  allow = {	
	wealth = 125
	prisoner = no
	in_seclusion = no
	NOT = { trait = incapable }
	NOT = { trait = cynical }
	NOT = { trait = greedy }
	NOT = { has_character_modifier = requiem_mass_dynasty }
	NOT = { has_character_modifier = requiem_mass_army }
	NOT = { has_character_modifier = requiem_mass_poor }
	NOT = { has_character_modifier = requiem_mass_church }
	OR = {
		trait = charitable
		AND {
			trait = zealous
			trait = kind
		}
		ai = no
	}
  }

  effect = {
	character_event = { id = CIML.345 }
	scaled_wealth = -0.20
  }
}

order_memorial_mass = { 
  ai_check_interval = 350 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
	OR = {
			religion = miaphysite
			religion = monophysite
			religion = judaizer
			religion = nestorian
			religion = apollinarian
			religion = chaldean
			religion = orthodox
			religion = iconoclast
			religion = monothelite
			religion = barlaamite
	}
  }
  
  allow = {
	wealth = 125
	prisoner = no
	in_seclusion = no
	NOT = { trait = incapable }
	NOT = { trait = cynical }
	NOT = { trait = greedy }
	NOT = { has_character_modifier = requiem_mass_dynasty }
	NOT = { has_character_modifier = requiem_mass_army }
	NOT = { has_character_modifier = requiem_mass_poor }
	NOT = { has_character_modifier = requiem_mass_church }
	OR = {
		trait = charitable
		AND {
			trait = zealous
			trait = kind
		}
		ai = no
	}
  }

  effect = {
	character_event = { id = CIML.346 }
	scaled_wealth = -0.20
  }
}


}