decisions = {

# Join monastery as christian man
ciml_christian_man_join_monastery = { 
  is_high_prio = no
  ai = no
  ai_check_interval = 9000 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
	ai = no
	is_female = no
	NOT = { 
		trait = travelling 
	}
	OR = {
		religion = catholic
		religion = orthodox
		religion = miaphysite
		religion = nestorian
		religion = fraticelli
		trait = utraquist
		religion = monophysite
		religion = monothelite
		religion = iconoclast
		religion = judaizer
		religion = chaldean
		religion = apollinarian
		religion = adoptionist
		religion = barlaamite
		religion = free_spirits
	}
  }
  
	allow = {
		prisoner = no
		is_incapable = no
		is_adult = yes
		is_married = no
		piety = 50
		wealth = 10
		NOR = {
			any_child = { is_adult = no }
			trait = imbecile
			trait = gluttonous
			trait = lustful
			trait = greedy
			trait = ambitious
			trait = cynical
			trait = excommunicated
			trait = severely_injured
			trait = mangled
			trait = possessed
			trait = infirm
			trait = lunatic
			has_secret_religion = yes
			society_is_devil_worshiper = yes
		}
		OR = {
			AND = {
				is_in_society = yes
				OR = {
					is_society = monastic_order_benedictine
					is_society = monastic_order_dominican
					is_society = monastic_order_orthodox
					is_society = monastic_order_nestorian
					is_society = monastic_order_monophysite
				}
				society_rank >= 2
			}
			AND = {
				OR = {
					trait = humble
					trait = content
					trait = celibate
				}
				has_focus = focus_theology
			}
		}
	}
	effect = {
		character_event = { id = CIML.550 days = 7 }
		add_trait = travelling
	}
	ai_will_do = {
		#Factors for an AI character to take the decision (1 = 100% chance)
	}
}

# Join monastery as christian lady
ciml_christian_lady_join_monastery = { 
  is_high_prio = no
  ai = no
  ai_check_interval = 9000 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
	ai = no
	is_female = yes
	NOT = { 
		trait = travelling 
	}
	OR = {
		religion = catholic
		religion = orthodox
		religion = miaphysite
		religion = nestorian
		religion = fraticelli
		trait = utraquist
		religion = monophysite
		religion = monothelite
		religion = iconoclast
		religion = judaizer
		religion = chaldean
		religion = apollinarian
		religion = adoptionist
		religion = barlaamite
		religion = free_spirits
	}
  }
  
	allow = {
		prisoner = no
		is_incapable = no
		is_adult = yes
		is_married = no
		piety = 50
		wealth = 10
		NOR = {
			any_child = { is_adult = no }
			trait = imbecile
			trait = gluttonous
			trait = lustful
			trait = greedy
			trait = ambitious
			trait = cynical
			trait = excommunicated
			trait = severely_injured
			trait = mangled
			trait = possessed
			trait = infirm
			trait = lunatic
			has_secret_religion = yes
			society_is_devil_worshiper = yes
		}
		OR = {
			AND = {
				is_in_society = yes
				OR = {
					is_society = monastic_order_benedictine
					is_society = monastic_order_dominican
					is_society = monastic_order_orthodox
					is_society = monastic_order_nestorian
					is_society = monastic_order_monophysite
				}
				society_rank >= 2
			}
			AND = {
				OR = {
					trait = humble
					trait = content
					trait = celibate
				}
				has_focus = focus_theology
			}
		}
	}
	effect = {
		character_event = { id = CIML.551 days = 7 }
		add_trait = travelling
	}
	ai_will_do = {
		#Factors for an AI character to take the decision (1 = 100% chance)
	}
}

# Join monastery as buddhist man
ciml_eastern_man_join_monastery = { 
  is_high_prio = no
  ai = no
  ai_check_interval = 9000 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
	ai = no
	is_female = no
	NOT = { 
		trait = travelling 
	}
	religion = buddhist
  }
  
	allow = {
		prisoner = no
		is_incapable = no
		is_adult = yes
		is_married = no
		piety = 50
		wealth = 10
		NOR = {
			any_child = { is_adult = no }
			trait = imbecile
			trait = gluttonous
			trait = lustful
			trait = greedy
			trait = ambitious
			trait = cynical
			trait = severely_injured
			trait = mangled
			trait = possessed
			trait = infirm
			trait = lunatic
			has_secret_religion = yes
			society_is_devil_worshiper = yes
		}
		OR = {
			AND = {
				is_in_society = yes
				OR = {
					is_society = monastic_order_buddhist
				}
				society_rank >= 2
			}
			AND = {
				OR = {
					trait = humble
					trait = content
					trait = celibate
				}
				has_focus = focus_theology
			}
		}
	}
	effect = {
		character_event = { id = CIML.552 days = 7 }
		add_trait = travelling
	}
	ai_will_do = {
		#Factors for an AI character to take the decision (1 = 100% chance)
	}
}

# Join monastery as buddhist lady
ciml_eastern_lady_join_monastery = { 
  is_high_prio = no
  ai = no
  ai_check_interval = 9000 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
	ai = no
	is_female = yes
	NOT = { 
		trait = travelling 
	}
	religion = buddhist
  }
  
	allow = {
		prisoner = no
		is_incapable = no
		is_adult = yes
		is_married = no
		piety = 50
		wealth = 10
		NOR = {
			any_child = { is_adult = no }
			trait = imbecile
			trait = gluttonous
			trait = lustful
			trait = greedy
			trait = ambitious
			trait = cynical
			trait = severely_injured
			trait = mangled
			trait = possessed
			trait = infirm
			trait = lunatic
			has_secret_religion = yes
			society_is_devil_worshiper = yes
		}
		OR = {
			AND = {
				is_in_society = yes
				OR = {
					is_society = monastic_order_buddhist
				}
				society_rank >= 2
			}
			AND = {
				OR = {
					trait = humble
					trait = content
					trait = celibate
				}
				has_focus = focus_theology
			}
		}
	}
	effect = {
		character_event = { id = CIML.553 days = 7 }
		add_trait = travelling
	}
	ai_will_do = {
		#Factors for an AI character to take the decision (1 = 100% chance)
	}
}

# Join monastery as jain man
ciml_jain_man_join_monastery = { 
  is_high_prio = no
  ai = no
  ai_check_interval = 9000 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
	ai = no
	is_female = no
	NOT = { 
		trait = travelling 
	}
	religion = jain
  }
  
	allow = {
		prisoner = no
		is_incapable = no
		is_adult = yes
		is_married = no
		piety = 50
		wealth = 10
		NOR = {
			any_child = { is_adult = no }
			trait = imbecile
			trait = gluttonous
			trait = lustful
			trait = greedy
			trait = ambitious
			trait = cynical
			trait = severely_injured
			trait = mangled
			trait = possessed
			trait = infirm
			trait = lunatic
			has_secret_religion = yes
			society_is_devil_worshiper = yes
		}
		OR = {
			AND = {
				is_in_society = yes
				OR = {
					is_society = monastic_order_jain
				}
				society_rank >= 2
			}
			AND = {
				OR = {
					trait = humble
					trait = content
					trait = celibate
				}
				has_focus = focus_theology
			}
		}
	}
	effect = {
		character_event = { id = CIML.554 days = 7 }
		add_trait = travelling
	}
	ai_will_do = {
		#Factors for an AI character to take the decision (1 = 100% chance)
	}
}

# Join monastery as jain lady
ciml_jain_lady_join_monastery = { 
  is_high_prio = no
  ai = no
  ai_check_interval = 9000 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
	ai = no
	is_female = yes
	NOT = { 
		trait = travelling 
	}
	religion = jain
  }
  
	allow = {
		prisoner = no
		is_incapable = no
		is_adult = yes
		is_married = no
		piety = 50
		wealth = 10
		NOR = {
			any_child = { is_adult = no }
			trait = imbecile
			trait = gluttonous
			trait = lustful
			trait = greedy
			trait = ambitious
			trait = cynical
			trait = severely_injured
			trait = mangled
			trait = possessed
			trait = infirm
			trait = lunatic
			has_secret_religion = yes
			society_is_devil_worshiper = yes
		}
		OR = {
			AND = {
				is_in_society = yes
				OR = {
					is_society = monastic_order_jain
				}
				society_rank >= 2
			}
			AND = {
				OR = {
					trait = humble
					trait = content
					trait = celibate
				}
				has_focus = focus_theology
			}
		}
	}
	effect = {
		character_event = { id = CIML.555 days = 7 }
		add_trait = travelling
	}
	ai_will_do = {
		#Factors for an AI character to take the decision (1 = 100% chance)
	}
}

# Join monastery as hindu man
ciml_hindu_man_join_monastery = { 
  is_high_prio = no
  ai = no
  ai_check_interval = 9000 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
	ai = no
	is_female = no
	NOT = { 
		trait = travelling 
	}
	religion = hindu
  }
  
	allow = {
		prisoner = no
		is_incapable = no
		is_adult = yes
		is_married = no
		piety = 50
		wealth = 10
		NOR = {
			any_child = { is_adult = no }
			trait = imbecile
			trait = gluttonous
			trait = lustful
			trait = greedy
			trait = ambitious
			trait = cynical
			trait = severely_injured
			trait = mangled
			trait = possessed
			trait = infirm
			trait = lunatic
			has_secret_religion = yes
			society_is_devil_worshiper = yes
		}
		OR = {
			AND = {
				is_in_society = yes
				OR = {
					is_society = monastic_order_hindu
				}
				society_rank >= 2
			}
			AND = {
				OR = {
					trait = humble
					trait = content
					trait = celibate
				}
				has_focus = focus_theology
			}
		}
	}
	effect = {
		character_event = { id = CIML.556 days = 7 }
		add_trait = travelling
	}
	ai_will_do = {
		#Factors for an AI character to take the decision (1 = 100% chance)
	}
}

# Join monastery as hindu lady
ciml_hindu_lady_join_monastery = { 
  is_high_prio = no
  ai = no
  ai_check_interval = 9000 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
	ai = no
	is_female = yes
	NOT = { 
		trait = travelling 
	}
	religion = hindu
  }
  
	allow = {
		prisoner = no
		is_incapable = no
		is_adult = yes
		is_married = no
		piety = 50
		wealth = 10
		NOR = {
			any_child = { is_adult = no }
			trait = imbecile
			trait = gluttonous
			trait = lustful
			trait = greedy
			trait = ambitious
			trait = cynical
			trait = severely_injured
			trait = mangled
			trait = possessed
			trait = infirm
			trait = lunatic
			has_secret_religion = yes
			society_is_devil_worshiper = yes
		}
		OR = {
			AND = {
				is_in_society = yes
				OR = {
					is_society = monastic_order_hindu
				}
				society_rank >= 2
			}
			AND = {
				OR = {
					trait = humble
					trait = content
					trait = celibate
				}
				has_focus = focus_theology
			}
		}
	}
	effect = {
		character_event = { id = CIML.557 days = 7 }
		add_trait = travelling
	}
	ai_will_do = {
		#Factors for an AI character to take the decision (1 = 100% chance)
	}
}

# Pope quits hermetics
ciml_pope_quits_hermetics = { 
  is_high_prio = yes
  only_playable = yes
  ai_check_interval = 18 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  potential = {
	religion = catholic
	controls_religion = yes
  }
  
	allow = {
		AND = {
				is_in_society = yes
				OR = {
					is_society = hermetics
				}
			}
	}
	effect = {
		leave_society = yes
	}
	ai_will_do = {
		#Factors for an AI character to take the decision (1 = 100% chance)
	}
}

}