decisions = {
great_german_pilgrimage_ciml = { 
  ai_check_interval = 240 # Determines how seldom the AI checks whether they can and should do the decision, in months. By default 1 (every month).
  only_rulers = yes

  potential = {
	has_dlc = "Sons of Abraham"
	OR = {
		culture = german
		culture = old_saxon
	}
    religion = catholic
	is_theocracy = yes
	total_years_played = 20
	year = 800
	NOT = { year = 1066 }
	NOT = {
		has_alternate_start_parameter = { key = religion_names value = random }
	}
	NOT = { has_global_flag = ciml_great_german_pilgrimage }
	capital_scope = {
		OR = {
			region = world_europe_north
			region = world_europe_east
			region = world_europe_south
			region = world_europe_west					
		}
	}
  }
  
  allow = {
	NOR = {
		has_global_flag = ciml_catholic_crisis_ongoing
		has_global_flag = christian_crusades_unlocked
		has_secret_religion = yes
		society_is_devil_worshiper = yes
		trait = excommunicated
		trait = cannibal_trait
		trait = cynical
		trait = slothful
		trait = craven
		trait = infirm
		trait = lunatic
		trait = possessed
	}
	OR = {
		trait = chaste
		trait = temperate
		trait = charitable
		trait = diligent
		trait = patient
		trait = kind
		trait = zealous
		trait = proud
		trait = brave
	}
	is_heretic = no
	is_ill = no
	is_incapable = no
  }
  
  effect = {
	set_character_flag = ciml_joined_german_pilgrimage
	set_global_flag = ciml_great_german_pilgrimage
	if = { 
		limit = { 
			has_dlc = "Holy Fury"
		}
		add_trait = adventurer
	}
	add_trait = on_pilgrimage
	character_event = { id = CIML.1110 days = 380 }
	any_playable_ruler = {
		limit = {
			ai = no
		}
		narrative_event = { id = CIML.1101 }
	}
	any_character = {
		limit = {
			OR = {
				culture = german
				culture = old_saxon
			}
			religion = catholic
			is_adult = yes
			is_ill = no
			is_incapable = no
			prisoner = no
			is_married = no
			ai = yes
			is_pregnant = no
			NOR = {
				has_secret_religion = yes
				society_is_devil_worshiper = yes
				trait = excommunicated
				trait = cannibal_trait
				trait = cynical
				trait = slothful
				trait = craven
				trait = infirm
				trait = lunatic
				trait = possessed
				trait = on_pilgrimage
				trait = travelling 
			}
		}
		narrative_event = { id = CIML.1101 }
	}
  }
  ai_will_do = {
	factor = 1
  }
}

}