
###########################################
#                                         #
# Indian Pilgrimage Events                #
#                                         #
# ID MNM.8000-8093                        #
#                                         #
###########################################

# Adopted to Dharmic Religions by Henrik Lohmander

namespace = MNM

# Confirm decision and check religion
character_event = {
	id = MNM.8000
	desc = EVTDESC_MNM_8000
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes # indian_pilgrimage, minor_decisions.txt

	option = {
		name = EVTOPTA_MNM_8000

		piety = 20
		set_character_flag = preparing_indian_pilgrimage
		clr_character_flag = activated_indian_pilgrimage

		trigger_switch = {
			on_trigger = religion

			buddhist  = { character_event = { id = MNM.8001 } } # Buddhist sites
			jain      = { character_event = { id = MNM.8002 } } # Jain Sites
			hindu     = { character_event = { id = MNM.8003 } } # Hindu Sites
			bon_pagan = { character_event = { id = MNM.8094 } } # Bn Sites
		}
	}
}

# Choose destination as Buddhist
character_event = {
	id = MNM.8001
	desc = EVTDESC_MNM_8001
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8001

		trigger = {
			NOT = { capital_scope = { province_id = c_varanasi } }
		}

		set_character_flag = pilgrimage_to_sarnath
		character_event = { id = MNM.8004 days = 30 }

		if = {
			limit = { ai = no }

			chronicle = {
				entry = CHRONICLE_PILGRIMAGE_TO_SARNATH
				picture = GFX_evt_dharmic_pilgrims
			}
		}
	}

	option = {
		name = EVTOPTB_MNM_8001

		trigger = {
			NOT = { capital_scope = { province_id = c_gaya } } # Bodh Gaya
		}

		set_character_flag = pilgrimage_to_bodh_gaya
		character_event = { id = MNM.8005 days = 30 }

		if = {
			limit = { ai = no }

			chronicle = {
				entry = CHRONICLE_PILGRIMAGE_TO_BODH_GAYA
				picture = GFX_evt_dharmic_pilgrims
			}
		}
	}
	option = {
		name = EVTOPTC_MNM_8001

		trigger = {
			NOT = { capital_scope = { province_id = c_vidisa } }
		}

		set_character_flag = pilgrimage_to_sanchi
		character_event = { id = MNM.8006 days = 30 }

		if = {
			limit = { ai = no }

			chronicle = {
				entry = CHRONICLE_PILGRIMAGE_TO_SANCHI
				picture = GFX_evt_dharmic_pilgrims
			}
		}
	}
}

# Choose destination as Jain
character_event = {
	id = MNM.8002
	desc = EVTDESC_MNM_8002
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8002

		trigger = {
			NOT = { capital_scope = { province_id = c_srirangapatna } }
		}

		set_character_flag = pilgrimage_to_shravanabeagola
		character_event = { id = MNM.8007 days = 30 }

		if = {
			limit = { ai = no }

			chronicle = {
				entry = CHRONICLE_PILGRIMAGE_TO_SHRAVANABELAGOLA
				picture = GFX_evt_dharmic_pilgrims
			}
		}
	}

	option = {
		name = EVTOPTB_MNM_8002

		trigger = {
			NOT = { capital_scope = { province_id = c_bhumilka } }
		}

		set_character_flag = pilgrimage_to_girnar
		character_event = { id = MNM.8008 days = 30 }

		if = {
			limit = { ai = no }

			chronicle = {
				entry = CHRONICLE_PILGRIMAGE_TO_GIRNAR
				picture = GFX_evt_dharmic_pilgrims
			}
		}
	}
	option = {
		name = EVTOPTC_MNM_8002

		trigger = {
			NOT = { capital_scope = { province_id = c_damin_i_koh } }
		}

		set_character_flag = pilgrimage_to_shikarji
		character_event = { id = MNM.8009 days = 30 }

		if = {
			limit = { ai = no }

			chronicle = {
				entry = CHRONICLE_PILGRIMAGE_TO_SHIKARJI
				picture = GFX_evt_dharmic_pilgrims
			}
		}
	}
}

# Choose destination as Hindu
character_event = {
	id = MNM.8003
	desc = EVTDESC_MNM_8003
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8003

		trigger = {
			NOT = { capital_scope = { province_id = c_srirangapatna } }
		}

		set_character_flag = pilgrimage_to_varanasi
		character_event = { id = MNM.8011 days = 30 }

		if = {
			limit = { ai = no }

			chronicle = {
				entry = CHRONICLE_PILGRIMAGE_TO_VARANASI
				picture = GFX_evt_dharmic_pilgrims
			}
		}
	}

	option = {
		name = EVTOPTB_MNM_8003

		trigger = {
			NOT = { capital_scope = { province_id = c_bhumilka } }
		}

		set_character_flag = pilgrimage_to_girnar
		character_event = { id = MNM.8008 days = 30 }

		if = {
			limit = { ai = no }

			chronicle = {
				entry = CHRONICLE_PILGRIMAGE_TO_GIRNAR
				picture = GFX_evt_dharmic_pilgrims
			}
		}
	}
	option = {
		name = EVTOPTC_MNM_8003

		trigger = {
			NOT = { capital_scope = { province_id = c_damin_i_koh } }
		}

		set_character_flag = pilgrimage_to_mathura
		character_event = { id = MNM.8010 days = 30 }

		if = {
			limit = { ai = no }

			chronicle = {
				entry = CHRONICLE_PILGRIMAGE_TO_MATHURA
				picture = GFX_evt_dharmic_pilgrims
			}
		}
	}
}

# Choose destination as Bon
character_event = {
	id = MNM.8094
	desc = EVTDESC_MNM_8001
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8094
		trigger = {
			NOT = { capital_scope = { province_id = c_purang } }
		}
		set_character_flag = pilgrimage_to_purang
		hidden_tooltip = {
			character_event = { id = MNM.8012 days = 30 }
		}
	}

	option = {
		name = EVTOPTB_MNM_8094 #Offmap
		set_character_flag = pilgrimage_to_kawagarbo
		hidden_tooltip = {
			character_event = { id = MNM.8013 days = 30 }
		}
	}
	option = {
		name = EVTOPTC_MNM_8094
		trigger = {
			NOT = { capital_scope = { province_id = c_lhasa } }
		}
		set_character_flag = pilgrimage_to_lhasa
		hidden_tooltip = {
			character_event = { id = MNM.8014 days = 30 }
		}
	}
}


# Journey

# Setting out for Sarnath
character_event = {
	id = MNM.8004
	desc = EVTDESC_MNM_8004
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8004

		clr_character_flag = preparing_indian_pilgrimage
		set_character_flag = good_pilgrimage
		narrative_event = { id = MNM.8050 days = 45 } # Arrival in Sarnath

		hidden_effect = {
			add_trait = on_indian_pilgrimage

			if = {
				limit = {
					location = {
						distance = {
							where = c_varanasi # Sarnath
							value >= 300 # Longer journey
						}
					}
				}

				random_list = { # Long Journey
					10 = { # Monsoon Troubles
						trigger = {
							OR = {
								month <  6
								month >= 9
							}
						}

						character_event = { id = MNM.8020 days = 15 random = 9 }
					}

					10 = { # Dry Season Troubles
						trigger = { month >= 4 }
						character_event = { id = MNM.8021 days = 15 random = 9 }
					}

					10 = { character_event = { id = MNM.8022 days = 15 random = 9 } } # Getting lost in the Jungle
					10 = { character_event = { id = MNM.8023 days = 15 random = 9 } } # Robbers on the road
					10 = { character_event = { id = MNM.8024 days = 15 random = 9 } } # Encounter in Dandakaranya
					10 = { character_event = { id = MNM.8037 days = 15 random = 9 } } # What's happening at home?
				}
			}

			random_list = { # Stuff that always happen
				10 = { character_event = { id = MNM.8025 days = 30 random = 7 } } # The poor villagers
				10 = { character_event = { id = MNM.8026 days = 30 random = 7 } } # Reflections about journey
				10 = { character_event = { id = MNM.8027 days = 30 random = 7 } } # Encounter with merchant
				10 = { character_event = { id = MNM.8028 days = 30 random = 7 } } # You get sick
				10 = { character_event = { id = MNM.8029 days = 30 random = 7 } } # Water tanks
				10 = { character_event = { id = MNM.8030 days = 30 random = 7 } } # Village Pipal Tree
				10 = { character_event = { id = MNM.8031 days = 30 random = 7 } } # Splendid City
			}
		}
	}
}

# Setting out for Bodh Gaya
character_event = {
	id = MNM.8005
	desc = EVTDESC_MNM_8005
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8005

		clr_character_flag = preparing_indian_pilgrimage
		set_character_flag = good_pilgrimage
		narrative_event = { id = MNM.8051 days = 45 } # Arrival in Bodh Gaya

		hidden_effect = {
			add_trait = on_indian_pilgrimage

			if = {
				limit = {
					location = {
						distance = {
							where = c_gaya # Bodh Gaya
							value >= 300 # Longer journey
						}
					}
				}

				random_list = { # Long Journey
					10 = { # Monsoon Troubles
						trigger = {
							OR = {
								month <  6
								month >= 9
							}
						}

						character_event = { id = MNM.8020 days = 15 random = 9 }
					}

					10 = { # Dry Season Troubles
						trigger = { month >= 4 }
						character_event = { id = MNM.8021 days = 15 random = 9 }
					}

					10 = { character_event = { id = MNM.8022 days = 15 random = 9 } } # Getting lost in the Jungle
					10 = { character_event = { id = MNM.8023 days = 15 random = 9 } } # Robbers on the road
					10 = { character_event = { id = MNM.8024 days = 15 random = 9 } } # Encounter in Dandakaranya
					10 = { character_event = { id = MNM.8037 days = 15 random = 9 } } # What's happening at home?
				}
			}

			random_list = { # Stuff that always happen
				10 = { character_event = { id = MNM.8025 days = 30 random = 7 } } # The poor villagers
				10 = { character_event = { id = MNM.8026 days = 30 random = 7 } } # Reflections about journey
				10 = { character_event = { id = MNM.8027 days = 30 random = 7 } } # Encounter with merchant
				10 = { character_event = { id = MNM.8028 days = 30 random = 7 } } # You get sick
				10 = { character_event = { id = MNM.8029 days = 30 random = 7 } } # Water tanks
				10 = { character_event = { id = MNM.8030 days = 30 random = 7 } } # Village Pipal Tree
				10 = { character_event = { id = MNM.8031 days = 30 random = 7 } } # Splendid City
			}
		}
	}
}

# Setting out for Sanchi
character_event = {
	id = MNM.8006
	desc = EVTDESC_MNM_8006
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8006

		clr_character_flag = preparing_indian_pilgrimage
		set_character_flag = good_pilgrimage
		narrative_event = { id = MNM.8052 days = 45 } # Arrival in Sanchi

		hidden_effect = {
			add_trait = on_indian_pilgrimage

			if = {
				limit = {
					location = {
						distance = {
							where = c_vidisa # Sanchi
							value >= 300 # Longer journey
						}
					}
				}

				random_list = { # Long Journey
					10 = { # Monsoon Troubles
						trigger = {
							OR = {
								month <  6
								month >= 9
							}
						}

						character_event = { id = MNM.8020 days = 15 random = 9 }
					}

					10 = { # Dry Season Troubles
						trigger = { month >= 4 }
						character_event = { id = MNM.8021 days = 15 random = 9 }
					}

					10 = { character_event = { id = MNM.8022 days = 15 random = 9 } } # Getting lost in the Jungle
					10 = { character_event = { id = MNM.8023 days = 15 random = 9 } } # Robbers on the road
					10 = { character_event = { id = MNM.8024 days = 15 random = 9 } } # Encounter in Dandakaranya
					10 = { character_event = { id = MNM.8037 days = 15 random = 9 } } # What's happening at home?
				}
			}

			random_list = { # Stuff that always happen
				10 = { character_event = { id = MNM.8025 days = 30 random = 7 } } # The poor villagers
				10 = { character_event = { id = MNM.8026 days = 30 random = 7 } } # Reflections about journey
				10 = { character_event = { id = MNM.8027 days = 30 random = 7 } } # Encounter with merchant
				10 = { character_event = { id = MNM.8028 days = 30 random = 7 } } # You get sick
				10 = { character_event = { id = MNM.8029 days = 30 random = 7 } } # Water tanks
				10 = { character_event = { id = MNM.8030 days = 30 random = 7 } } # Village Pipal Tree
				10 = { character_event = { id = MNM.8031 days = 30 random = 7 } } # Splendid City
			}
		}
	}
}

# Setting out for Shravanabelagola
character_event = {
	id = MNM.8007
	desc = EVTDESC_MNM_8007
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8007

		clr_character_flag = preparing_indian_pilgrimage
		set_character_flag = good_pilgrimage
		narrative_event = { id = MNM.8053 days = 45 } # Arrival in Shravanabelagola

		hidden_effect = {
			add_trait = on_indian_pilgrimage

			if = {
				limit = {
					location = {
						distance = {
							where = c_srirangapatna # Shravanabelagola
							value >= 300 # Longer journey
						}
					}
				}

				random_list = { # Long Journey
					10 = { # Monsoon Troubles
						trigger = {
							OR = {
								month <  6
								month >= 9
							}
						}

						character_event = { id = MNM.8020 days = 15 random = 9 }
					}

					10 = { # Dry Season Troubles
						trigger = { month >= 4 }
						character_event = { id = MNM.8021 days = 15 random = 9 }
					}

					10 = { character_event = { id = MNM.8022 days = 15 random = 9 } } # Getting lost in the Jungle
					10 = { character_event = { id = MNM.8023 days = 15 random = 9 } } # Robbers on the road
					10 = { character_event = { id = MNM.8024 days = 15 random = 9 } } # Encounter in Dandakaranya
					10 = { character_event = { id = MNM.8037 days = 15 random = 9 } } # What's happening at home?
				}
			}

			random_list = { # Stuff that always happen
				10 = { character_event = { id = MNM.8025 days = 30 random = 7 } } # The poor villagers
				10 = { character_event = { id = MNM.8026 days = 30 random = 7 } } # Reflections about journey
				10 = { character_event = { id = MNM.8027 days = 30 random = 7 } } # Encounter with merchant
				10 = { character_event = { id = MNM.8028 days = 30 random = 7 } } # You get sick
				10 = { character_event = { id = MNM.8029 days = 30 random = 7 } } # Water tanks
				10 = { character_event = { id = MNM.8030 days = 30 random = 7 } } # Village Pipal Tree
				10 = { character_event = { id = MNM.8031 days = 30 random = 7 } } # Splendid City
			}
		}
	}
}

# Setting out for Girnar
character_event = {
	id = MNM.8008
	desc = EVTDESC_MNM_8008
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8008

		clr_character_flag = preparing_indian_pilgrimage
		set_character_flag = good_pilgrimage
		narrative_event = { id = MNM.8054 days = 45 } # Arrival in Girnar

		hidden_effect = {
			add_trait = on_indian_pilgrimage

			if = {
				limit = {
					location = {
						distance = {
							where = c_bhumilka # Girnar
							value >= 300 # Longer journey
						}
					}
				}

				random_list = { # Long Journey
					10 = { # Monsoon Troubles
						trigger = {
							OR = {
								month <  6
								month >= 9
							}
						}
						character_event = { id = MNM.8020 days = 15 random = 9 }

					}

					10 = { # Dry Season Troubles
						trigger = { month >= 4 }
						character_event = { id = MNM.8021 days = 15 random = 9 }
					}

					10 = { character_event = { id = MNM.8022 days = 15 random = 9 } } # Getting lost in the Jungle
					10 = { character_event = { id = MNM.8023 days = 15 random = 9 } } # Robbers on the road
					10 = { character_event = { id = MNM.8024 days = 15 random = 9 } } # Encounter in Dandakaranya
					10 = { character_event = { id = MNM.8037 days = 15 random = 9 } } # What's happening at home?
				}
			}

			random_list = { # Stuff that always happen
				10 = { character_event = { id = MNM.8025 days = 30 random = 7 } } # The poor villagers
				10 = { character_event = { id = MNM.8026 days = 30 random = 7 } } # Reflections about journey
				10 = { character_event = { id = MNM.8027 days = 30 random = 7 } } # Encounter with merchant
				10 = { character_event = { id = MNM.8028 days = 30 random = 7 } } # You get sick
				10 = { character_event = { id = MNM.8029 days = 30 random = 7 } } # Water tanks
				10 = { character_event = { id = MNM.8030 days = 30 random = 7 } } # Village Pipal Tree
				10 = { character_event = { id = MNM.8031 days = 30 random = 7 } } # Splendid City
			}
		}
	}
}

# Setting out for Shikarji
character_event = {
	id = MNM.8009
	desc = EVTDESC_MNM_8009
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8009

		clr_character_flag = preparing_indian_pilgrimage
		set_character_flag = good_pilgrimage
		narrative_event = { id = MNM.8055 days = 45 } # Arrival in Shikarji

		hidden_effect = {
			add_trait = on_indian_pilgrimage

			if = {
				limit = {
					location = {
						distance = {
							where = c_damin_i_koh # Shikarji
							value >= 300 # Longer journey
						}
					}
				}

				random_list = { # Long Journey
					10 = { # Monsoon Troubles
						trigger = {
							OR = {
								month <  6
								month >= 9
							}
						}

						character_event = { id = MNM.8020 days = 15 random = 9 }
					}

					10 = { # Dry Season Troubles
						trigger = { month >= 4 }
						character_event = { id = MNM.8021 days = 15 random = 9 }
					}

					10 = { character_event = { id = MNM.8022 days = 15 random = 9 } } # Getting lost in the Jungle
					10 = { character_event = { id = MNM.8023 days = 15 random = 9 } } # Robbers on the road
					10 = { character_event = { id = MNM.8024 days = 15 random = 9 } } # Encounter in Dandakaranya
					10 = { character_event = { id = MNM.8037 days = 15 random = 9 } } # What's happening at home?
				}
			}

			random_list = { # Stuff that always happen
				10 = { character_event = { id = MNM.8025 days = 30 random = 7 } } # The poor villagers
				10 = { character_event = { id = MNM.8026 days = 30 random = 7 } } # Reflections about journey
				10 = { character_event = { id = MNM.8027 days = 30 random = 7 } } # Encounter with merchant
				10 = { character_event = { id = MNM.8028 days = 30 random = 7 } } # You get sick
				10 = { character_event = { id = MNM.8029 days = 30 random = 7 } } # Water tanks
				10 = { character_event = { id = MNM.8030 days = 30 random = 7 } } # Village Pipal Tree
				10 = { character_event = { id = MNM.8031 days = 30 random = 7 } } # Splendid City
			}
		}
	}
}

# Setting out for Mathura
character_event = {
	id = MNM.8010
	desc = EVTDESC_MNM_8010
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8009

		clr_character_flag = preparing_indian_pilgrimage
		set_character_flag = good_pilgrimage
		narrative_event = { id = MNM.8056 days = 45 } # Arrival in Mathura

		hidden_effect = {
			add_trait = on_indian_pilgrimage

			if = {
				limit = {
					location = {
						distance = {
							where = c_mathura
							value >= 300 # Longer journey
						}
					}
				}

				random_list = { # Long Journey
					10 = { # Monsoon Troubles
						trigger = {
							OR = {
								month <  6
								month >= 9
							}
						}

						character_event = { id = MNM.8020 days = 15 random = 9 }
					}

					10 = { # Dry Season Troubles
						trigger = { month >= 4 }
						character_event = { id = MNM.8021 days = 15 random = 9 }
					}

					10 = { character_event = { id = MNM.8022 days = 15 random = 9 } } # Getting lost in the Jungle
					10 = { character_event = { id = MNM.8023 days = 15 random = 9 } } # Robbers on the road
					10 = { character_event = { id = MNM.8024 days = 15 random = 9 } } # Encounter in Dandakaranya
					10 = { character_event = { id = MNM.8037 days = 15 random = 9 } } # What's happening at home?
				}
			}

			random_list = { # Stuff that always happen
				10 = { character_event = { id = MNM.8025 days = 30 random = 7 } } # The poor villagers
				10 = { character_event = { id = MNM.8026 days = 30 random = 7 } } # Reflections about journey
				10 = { character_event = { id = MNM.8027 days = 30 random = 7 } } # Encounter with merchant
				10 = { character_event = { id = MNM.8028 days = 30 random = 7 } } # You get sick
				10 = { character_event = { id = MNM.8029 days = 30 random = 7 } } # Water tanks
				10 = { character_event = { id = MNM.8030 days = 30 random = 7 } } # Village Pipal Tree
				10 = { character_event = { id = MNM.8031 days = 30 random = 7 } } # Splendid City
			}
		}
	}
}

# Setting out for Varanasi
character_event = {
	id = MNM.8011
	desc = EVTDESC_MNM_8011
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8011

		clr_character_flag = preparing_indian_pilgrimage
		set_character_flag = good_pilgrimage
		narrative_event = { id = MNM.8057 days = 45 } # Arrival in Varanasi

		hidden_effect = {
			add_trait = on_indian_pilgrimage

			if = {
				limit = {
					location = {
						distance = {
							where = c_varanasi # Varanasi
							value >= 300 # Longer journey
						}
					}
				}

				random_list = { # Long Journey
					10 = { # Monsoon Troubles
						trigger = {
							OR = {
								month <  6
								month >= 9
							}
						}

						character_event = { id = MNM.8020 days = 15 random = 9 }
					}

					10 = { # Dry Season Troubles
						trigger = { month >= 4 }
						character_event = { id = MNM.8021 days = 15 random = 9 }
					}

					10 = { character_event = { id = MNM.8022 days = 15 random = 9 } } # Getting lost in the Jungle
					10 = { character_event = { id = MNM.8023 days = 15 random = 9 } } # Robbers on the road
					10 = { character_event = { id = MNM.8024 days = 15 random = 9 } } # Encounter in Dandakaranya
					10 = { character_event = { id = MNM.8037 days = 15 random = 9 } } # What's happening at home?
				}
			}

			random_list = { # Stuff that always happen
				10 = { character_event = { id = MNM.8025 days = 30 random = 7 } } # The poor villagers
				10 = { character_event = { id = MNM.8026 days = 30 random = 7 } } # Reflections about journey
				10 = { character_event = { id = MNM.8027 days = 30 random = 7 } } # Encounter with merchant
				10 = { character_event = { id = MNM.8028 days = 30 random = 7 } } # You get sick
				10 = { character_event = { id = MNM.8029 days = 30 random = 7 } } # Water tanks
				10 = { character_event = { id = MNM.8030 days = 30 random = 7 } } # Village Pipal Tree
				10 = { character_event = { id = MNM.8031 days = 30 random = 7 } } # Splendid City
			}
		}
	}
}

# Setting out for Purang
character_event = {
	id = MNM.8012
	desc = EVTDESC_MNM_8012
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8004
		clr_character_flag = preparing_indian_pilgrimage
		set_character_flag = good_pilgrimage
		narrative_event = { id = MNM.8040 days = 45 } # Arrival in Purang

		hidden_effect = {
			add_trait = on_indian_pilgrimage
			if = {
				limit = {
					location = {
						distance = {
							where = c_purang # Sarnath
							value >= 300	 # Longer journey
						}
					}
				}
				random_list = { #Long Journey
					10 = {
						trigger = {
							OR = {
								month < 6
								month >= 9
							}
						}
						character_event = { id = MNM.8020 days = 15 random = 9 }
					} # Monsoon Troubles
					10 = {
						trigger = { month >= 4 }
						character_event = { id = MNM.8021 days = 15 random = 9 }
					} # Dry Season Troubles
					10 = { character_event = { id = MNM.8022 days = 15 random = 9 } } # Getting lost in the Jungle
					10 = { character_event = { id = MNM.8023 days = 15 random = 9 } } # Robbers on the road
					10 = { character_event = { id = MNM.8024 days = 15 random = 9 } } # Encounter in Dandakaranya
					10 = { character_event = { id = MNM.8037 days = 15 random = 9 } } # What's happening at home?
				}
			}

			random_list = { # Stuff that always happen
				10 = { character_event = { id = MNM.8025 days = 30 random = 7 } } # The poor villagers
				10 = { character_event = { id = MNM.8026 days = 30 random = 7 } } # Reflections about journey
				10 = { character_event = { id = MNM.8027 days = 30 random = 7 } } # Encounter with merchant
				10 = { character_event = { id = MNM.8028 days = 30 random = 7 } } # You get sick
				10 = { character_event = { id = MNM.8029 days = 30 random = 7 } } # Water tanks
				10 = { character_event = { id = MNM.8030 days = 30 random = 7 } } # Village Pipal Tree
				10 = { character_event = { id = MNM.8031 days = 30 random = 7 } } # Splendid City
			}
		}
	}
}

# Setting out for Kawagarbo
character_event = {
	id = MNM.8013
	desc = EVTDESC_MNM_8013
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8004
		clr_character_flag = preparing_indian_pilgrimage
		set_character_flag = good_pilgrimage
		narrative_event = { id = MNM.8041 days = 45 } # Arrival in Kawagarbo

		hidden_effect = {
			add_trait = on_indian_pilgrimage
			random_list = { # This is offmap, so it's always a long journey
				10 = {
					trigger = {
						OR = {
							month < 6
							month >= 9
						}
					}
					character_event = { id = MNM.8020 days = 15 random = 9 }
				} # Monsoon Troubles
				10 = {
					trigger = { month >= 4 }
					character_event = { id = MNM.8021 days = 15 random = 9 }
				} # Dry Season Troubles
				10 = { character_event = { id = MNM.8022 days = 15 random = 9 } } # Getting lost in the Jungle
				10 = { character_event = { id = MNM.8023 days = 15 random = 9 } } # Robbers on the road
				10 = { character_event = { id = MNM.8024 days = 15 random = 9 } } # Encounter in Dandakaranya
				10 = { character_event = { id = MNM.8037 days = 15 random = 9 } } # What's happening at home?
			}

			random_list = { #Stuff that always happen
				10 = { character_event = { id = MNM.8025 days = 30 random = 7 } } # The poor villagers
				10 = { character_event = { id = MNM.8026 days = 30 random = 7 } } # Reflections about journey
				10 = { character_event = { id = MNM.8027 days = 30 random = 7 } } # Encounter with merchant
				10 = { character_event = { id = MNM.8028 days = 30 random = 7 } } # You get sick
				10 = { character_event = { id = MNM.8029 days = 30 random = 7 } } # Water tanks
				10 = { character_event = { id = MNM.8030 days = 30 random = 7 } } # Village Pipal Tree
				10 = { character_event = { id = MNM.8031 days = 30 random = 7 } } # Splendid City
			}
		}
	}
}

# Setting out for Lhasa
character_event = {
	id = MNM.8014
	desc = EVTDESC_MNM_8014
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8004
		clr_character_flag = preparing_indian_pilgrimage
		set_character_flag = good_pilgrimage
		narrative_event = { id = MNM.8042 days = 45 } # Arrival in Lhasa

		hidden_effect = {
			add_trait = on_indian_pilgrimage
			if = {
				limit = {
					location = {
						distance = {
							where = c_lhasa	# Lhasa
							value >= 300	# Longer journey
						}
					}
				}
				random_list = { # Long Journey
					10 = {
						trigger = {
							OR = {
								month < 6
								month >= 9
							}
						}
						character_event = { id = MNM.8020 days = 15 random = 9 }
					} # Monsoon Troubles
					10 = {
						trigger = { month >= 4 }
						character_event = { id = MNM.8021 days = 15 random = 9 }
					} # Dry Season Troubles
					10 = { character_event = { id = MNM.8022 days = 15 random = 9 } } # Getting lost in the Jungle
					10 = { character_event = { id = MNM.8023 days = 15 random = 9 } } # Robbers on the road
					10 = { character_event = { id = MNM.8024 days = 15 random = 9 } } # Encounter in Dandakaranya
					10 = { character_event = { id = MNM.8037 days = 15 random = 9 } } # What's happening at home?
				}
			}

			random_list = { # Stuff that always happen
				10 = { character_event = { id = MNM.8025 days = 30 random = 7 } } # The poor villagers
				10 = { character_event = { id = MNM.8026 days = 30 random = 7 } } # Reflections about journey
				10 = { character_event = { id = MNM.8027 days = 30 random = 7 } } # Encounter with merchant
				10 = { character_event = { id = MNM.8028 days = 30 random = 7 } } # You get sick
				10 = { character_event = { id = MNM.8029 days = 30 random = 7 } } # Water tanks
				10 = { character_event = { id = MNM.8030 days = 30 random = 7 } } # Village Pipal Tree
				10 = { character_event = { id = MNM.8031 days = 30 random = 7 } } # Splendid City
			}
		}
	}
}

# Troublesome Monsoon
character_event = {
	id = MNM.8020
	desc = EVTDESC_MNM_8020
	picture = GFX_evt_india_rural_scene
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8020

		piety = 50

		random_list = {
			10 = { give_pneumonic_effect = yes }
			30 = { give_ill_effect = yes }
			60 = { }
		}

		ai_chance = { factor = 10 }
	}

	option = {
		name = EVTOPTB_MNM_8020

		add_trait_silently_cynical_effect = yes

		random_list = {
			 5 = { give_pneumonic_effect = yes }
			15 = { give_ill_effect = yes }
			80 = { }
		}

		ai_chance = { factor = 90 }
	}
}

# Dry Season Troubles
character_event = {
	id = MNM.8021
	desc = EVTDESC_MNM_8021
	picture = GFX_evt_desert
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8021

		add_trait_silently_charitable_effect = yes
		piety = 15
		wealth = -25
	}

	option = {
		name = EVTOPTB_MNM_8021

		add_trait_silently_cynical_effect = yes
	}
}

# Getting Lost in the Jungle
character_event = {
	id = MNM.8022
	picture = GFX_evt_tiger
	border = GFX_event_normal_frame_religion

	desc = {
		trigger = { religion_openly_bon_or_reformed_trigger = no }
		text = EVTDESC_MNM_8022
	}
	desc = {
		trigger = { religion_openly_bon_or_reformed_trigger = yes }
		text = EVTDESC_MNM_8022_bon
	}

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8022

		random = {
			chance = 30
			add_trait_wroth_effect = yes
		}
	}

	option = {
		name = EVTOPTB_MNM_8022

		random = {
			chance = 30
			add_trait_patient_effect = yes
		}
	}

	option = {
		name = EVTOPTC_MNM_8022 # May be hurt, may be brave, may get leader trait. Or nothing happens.

		random = {
			chance = 10

			if = {
				limit = {
					NOR = {
						religion = bon_pagan
						trait = jungle_expert
					}
				}
				add_trait = jungle_expert
			}
			else_if = {
				limit = {
					religion = bon_pagan
					NOT = { trait = mountain_expert }
				}

				add_trait = mountain_expert
			}
		}

		random = {
			chance = 10
			add_trait_wounded_effect = yes
		}

		random = {
			chance = 10
			add_trait_brave_effect = yes
		}

		ai_chance = { factor = 0 }
	}
}

# Robber Barons of India
character_event = {
	id = MNM.8023
	desc = EVTDESC_MNM_8023
	picture = GFX_evt_bandits
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8023

		wealth = -10

		ai_chance = { factor = 90 }
	}

	option = {
		name = EVTOPTB_MNM_8023
		tooltip_info = martial

		trigger = { martial >= 10 }

		add_trait_fully_silently_brave_effect = yes

		random = {
			chance = 10
			add_trait_wounded_effect = yes
		}

		ai_chance = { factor = 10 }
	}
}

# Dandakaranya
character_event = {
	id = MNM.8024
	desc = EVTDESC_MNM_8024
	picture = GFX_evt_tiger
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8024

		add_trait_silently_craven_effect = yes

		ai_chance = { factor = 90 }
	}

	option = {
		name = EVTOPTB_MNM_8024
		tooltip_info = martial

		trigger = { martial >= 10 }

		add_trait_fully_silently_brave_effect = yes

		random = {
			chance = 10
			add_trait_wounded_effect = yes
		}

		ai_chance = { factor = 10 }
	}
}

# What's happening at home?
character_event = {
	id = MNM.8037
	desc = EVTDESC_MNM_8037
	picture = GFX_evt_throne_room_indo_aryan_group
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8037

		random_list = {
			25 = { add_trait_trusting_effect = yes }
			25 = { add_trait_brave_effect = yes }
			50 = { }
		}
	}

	option = {
		name = EVTOPTB_MNM_8037

		random_list = {
			25 = { add_trait_cynical_effect = yes }
			25 = { add_trait_paranoid_effect = yes }
			50 = { }
		}
	}
}


# The poor villagers
character_event = {
	id = MNM.8025
	desc = EVTDESC_MNM_8025
	picture = GFX_evt_market
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8025

		add_trait_partially_silently_temperate_effect = yes

		ai_chance = { factor = 90 }
	}

	option = {
		name = EVTOPTB_MNM_8025

		wealth = 25
		remove_trait_silently_kind_effect = yes
		add_trait_silently_deceitful_effect = yes

		ai_chance = { factor = 10 }
	}
}

# Philosophical ponderings (very similar to Christian Pilgrimage)
character_event = {
	id = MNM.8026
	desc = EVTDESC_MNM_8026
	picture = GFX_evt_bishop_indian_group
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8026

		if = {
			limit = {
				OR = {
					lifestyle_traits > 0
					has_dlc = "Way of Life"
				}
			}

			random_list = {
				20 = { add_trait = poet }
				20 = { add_trait_fully_zealous_effect = yes }
				10 = { add_trait_depressed_effect = yes }
				50 = { }
			}
		}
		else = {
			random_list = {
				10 = { add_trait = scholar }
				10 = { add_trait = mystic }
				10 = { add_trait = poet }
				10 = { add_trait_fully_zealous_effect = yes }
				10 = { add_trait_depressed_effect = yes }
				50 = { }
			}
		}
	}

	option = {
		name = EVTOPTB_MNM_8026

		random = {
			chance = 20
			add_trait_cynical_effect = yes
		}
	}
}

# Fellow Travellers
character_event = {
	id = MNM.8027
	desc = EVTDESC_MNM_8027
	picture = GFX_evt_throne_room_indo_aryan_group
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8027

		piety = 25
	}

	option = {
		name = EVTOPTB_MNM_8027

		add_trait_silently_proud_effect = yes
	}
}

# You get Sick
character_event = {
	id = MNM.8028
	desc = EVTDESC_MNM_8028
	picture = GFX_evt_illness
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8028

		random = {
			chance = 50

			if = {
				limit = { has_dlc = "Reapers" }
				add_symptom_effect = yes
			}
			else = {
				add_trait_ill_effect = yes
			}
		}
	}

	option = {
		name = EVTOPTB_MNM_8028

		random = {
			chance = 20

			if = {
				limit = { has_dlc = "Reapers" }
				add_symptom_effect = yes
			}
			else = {
				add_trait_ill_effect = yes
			}
		}

		random = {
			chance = 50
			add_trait_fully_cynical_effect = yes
		}
	}
}

# Water Tanks
character_event = {
	id = MNM.8029
	desc = EVTDESC_MNM_8029
	picture = GFX_evt_india_rural_scene
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8029

		random_list = {
			10 = { change_stewardship = 1 }
			40 = { economy_techpoints = 40 }
			50 = { } # Nothing
		}
	}
	option = {
		name = EVTOPTB_MNM_8029

		prestige = 20

		random = {
			chance = 30
			add_trait_fully_proud_effect = yes
		}
	}
}

# Village Pipal Tree
character_event = {
	id = MNM.8030
	desc = EVTDESC_MNM_8030
	picture = GFX_evt_india_temple
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8030

		piety = 50

		random = {
			chance = 30
			add_trait_fully_zealous_effect = yes
		}
	}

	option = {
		name = EVTOPTB_MNM_8030

		prestige = 50

		random = {
			chance = 30
			add_trait_fully_cynical_effect = yes
		}
	}
}

# Splendid City
character_event = {
	id = MNM.8031
	desc = EVTDESC_MNM_8031 # This city is loosely based on Chanderi as described by Babur
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8031

		custom_tooltip = { text = EVTOPTA_MNM_8031_TOOLTIP }

		piety = -10

		hidden_effect = {
			random_list = {
				15 = { character_event = { id = MNM.8034 } } # A new Friend
				15 = { character_event = { id = MNM.8035 } } # A new Enemy
				70 = { character_event = { id = MNM.8036 } } # A day wasted
			}
		}
	}

	option = {
		name = EVTOPTB_MNM_8031

		piety = 25
	}
}

# Splendid City - A new Friend
character_event = {
	id = MNM.8034
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	desc = {
		text = EVTDESC_MNM_8034_common_origin
		trigger = { same_realm = event_target:new_friend_far_away_from_home }
	}
	desc = {
		text = EVTDESC_MNM_8034
		trigger = {
			NOT = { same_realm = event_target:new_friend_far_away_from_home }
		}
	}

	is_triggered_only = yes

	immediate = {
		random_independent_ruler = {
			limit = {
				primary_title = { temporary = no }
				is_landed = yes
				culture_group = ROOT
				is_adult = yes

				NOR = {
					is_close_relative = ROOT
					is_friend = ROOT
					is_rival = ROOT
				}

				current_heir = {
					is_landed = no
					is_adult = yes
					ai = yes

					NOR = {
						is_close_relative = ROOT
						is_friend = ROOT
						is_rival = ROOT
					}
				}
			}

			capital_scope = {
				save_event_target_as = home_of_new_friend
			}

			current_heir = {
				save_event_target_as = new_friend_far_away_from_home
			}
		}

		if = {
			limit = {
				NOT = { event_target:new_friend_far_away_from_home = { always = yes } }
			}

			random_vassal = {
				limit = {
					current_heir = {
						is_landed = no
						is_adult = yes
						ai = yes

						NOR = {
							is_close_relative = ROOT
							is_friend = ROOT
							is_rival = ROOT
						}
					}
				}

				capital_scope = {
					save_event_target_as = home_of_new_friend
				}

				current_heir = {
					save_event_target_as = new_friend_far_away_from_home
				}
			}
		}

		# Fallback
		if = {
			limit = {
				NOT = { event_target:new_friend_far_away_from_home = { always = yes } }
			}

			random_realm_character = {
				limit = {
					is_adult = yes
					is_landed = no
					has_job_title = no

					NOR = {
						is_close_relative = ROOT
						is_friend = ROOT
						is_rival = ROOT
					}
				}

				save_event_target_as = new_friend_far_away_from_home
			}
		}
	}

	option = {
		name = EVTOPTA_MNM_8034

		add_friend = event_target:new_friend_far_away_from_home
	}
}

# Splendid City - A new Enemy
character_event = {
	id = MNM.8035
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	desc = {
		text = EVTDESC_MNM_8035_common_origin
		trigger = {
			NOT = { same_realm = event_target:new_enemy_far_away_from_home }
		}
	}
	desc = {
		text = EVTDESC_MNM_8035
		trigger = { same_realm = event_target:new_enemy_far_away_from_home }
	}

	is_triggered_only = yes

	immediate = {
		random_independent_ruler = {
			limit = {
				primary_title = { temporary = no }
				is_landed = yes
				is_adult = yes

				NOR = {
					is_close_relative = ROOT
					is_friend = ROOT
					is_rival = ROOT
				}

				capital_scope = {
					distance = {
						who = ROOT
						value < 400
					}
				}

				current_heir = {
					is_landed = no
					is_adult = yes
					ai = yes

					NOR = {
						is_close_relative = ROOT
						is_friend = ROOT
						is_rival = ROOT
					}
				}
			}

			current_heir = {
				save_event_target_as = new_enemy_far_away_from_home
			}
		}

		if = {
			limit = {
				NOT = { event_target:new_enemy_far_away_from_home = { always = yes } }
			}

			random_vassal = {
				limit = {
					current_heir = {
						is_landed = no
						is_adult = yes
						ai = yes

						NOR = {
							is_close_relative = ROOT
							is_friend = ROOT
							is_rival = ROOT
						}
					}
				}

				current_heir = {
					save_event_target_as = new_enemy_far_away_from_home
				}
			}
		}

		# Fallback
		if = {
			limit = {
				NOT = { event_target:new_enemy_far_away_from_home = { always = yes } }
			}

			random_realm_character = {
				limit = {
					is_adult = yes
					is_landed = no
					has_job_title = no

					NOR = {
						is_close_relative = ROOT
						is_friend = ROOT
						is_rival = ROOT
					}
				}

				save_event_target_as = new_enemy_far_away_from_home
			}
		}
	}

	option = {
		name = EVTOPTA_MNM_8035

		trigger = {
			NOT = { same_realm = event_target:new_enemy_far_away_from_home }
		}

		add_rival = event_target:new_enemy_far_away_from_home
	}

	option = {
		name = EVTOPTA_MNM_8035

		trigger = { same_realm = event_target:new_enemy_far_away_from_home }

		scaled_wealth = -0.1

		add_character_modifier = {
			name = big_spender
			years = 5
		}
	}
}

# Splendid City - A day wasted
character_event = {
	id = MNM.8036
	desc = EVTDESC_MNM_8036
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8036

		scaled_wealth = -0.1

		add_character_modifier = {
			name = big_spender
			years = 5
		}
	}
}

# Arrival at Pilgrimage

# Arrival in Sarnath
narrative_event = {
	id = MNM.8050
	title = EVTNAME_MNM_8050
	desc = EVTDESC_MNM_8050
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8050

		character_event = { id = MNM.8060 days = 15 }
	}
}

# Arrival in Bodh Gaya
narrative_event = {
	id = MNM.8051
	title = EVTNAME_MNM_8051
	desc = EVTDESC_MNM_8051
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8051

		character_event = { id = MNM.8060 days = 15 }
	}
}

# Arrival in Sanchi
narrative_event = {
	id = MNM.8052
	title = EVTNAME_MNM_8052
	desc = EVTDESC_MNM_8052
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8052

		character_event = { id = MNM.8060 days = 15 }
	}
}

# Arrival in Shravanabeagola
narrative_event = {
	id = MNM.8053
	title = EVTNAME_MNM_8053
	desc = EVTDESC_MNM_8053
	picture = GFX_evt_india_rural_scene
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8053

		character_event = { id = MNM.8060 days = 15 }
	}
}

# Arrival in Girnar
narrative_event = {
	id = MNM.8054
	title = EVTNAME_MNM_8054
	desc = EVTDESC_MNM_8054
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8054

		character_event = { id = MNM.8060 days = 15 }
	}
}

# Arrival at Shikarji
narrative_event = {
	id = MNM.8055
	title = EVTNAME_MNM_8055
	desc = EVTDESC_MNM_8055
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8055

		character_event = { id = MNM.8060 days = 15 }
	}
}

# Arrival in Mathura
narrative_event = {
	id = MNM.8056
	title = EVTNAME_MNM_8056
	desc = EVTDESC_MNM_8056
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8056

		character_event = { id = MNM.8060 days = 15 }
	}
}

# Arrival in Varanasi
narrative_event = {
	id = MNM.8057
	title = EVTNAME_MNM_8057
	desc = EVTDESC_MNM_8057
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8057

		character_event = { id = MNM.8060 days = 15 }
	}
}

# Arrival in Purang
narrative_event = {
	id = MNM.8040
	title = EVTNAME_MNM_8040
	desc = EVTDESC_MNM_8040
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8040
		character_event = { id = MNM.8060 days = 15 }
	}
}

# Arrival in Kawagarbo
narrative_event = {
	id = MNM.8041
	title = EVTNAME_MNM_8041
	desc = EVTDESC_MNM_8041
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8041
		character_event = { id = MNM.8060 days = 15 }
	}
}

# Arrival in Lhasa
narrative_event = {
	id = MNM.8042
	title = EVTNAME_MNM_8042
	desc = EVTDESC_MNM_8042
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_narrative_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8042
		character_event = { id = MNM.8060 days = 15 }
	}
}

# Hidden event that selects what interesting things will happen at destination
# Very close to Christian Pilgrimage
character_event = {
	id = MNM.8060

	hide_window = yes

	is_triggered_only = yes

	immediate = {
		random_list = {
			10 = {
				if = {
					limit = { trait = cynical }

					random_list = {
						20 = { character_event = { id = MNM.8062 } } # Strong religious experience
						10 = { character_event = { id = MNM.8063 } } # Disappointed in the place
						20 = { character_event = { id = MNM.8065 } } # Learns things of the world - cosmopolitan
						20 = { character_event = { id = MNM.8066 } } # Generally impressed
					}
				}
				else = {
					character_event = { id = MNM.8061 } # Stimulated to learning
				}
			}

			10 = {
				if = {
					limit = {
						OR = {
							trait = mastermind_theologian
							trait = scholarly_theologian
						}
					}

					character_event = { id = MNM.8064 } # Mastermind theologian
				}
				else = {
					random_list = {
						20 = { character_event = { id = MNM.8062 } } # Strong religious experience
						10 = { character_event = { id = MNM.8063 } } # Disappointed in the place
						20 = { character_event = { id = MNM.8065 } } # Learns things of the world - cosmopolitan
						20 = { character_event = { id = MNM.8066 } } # Generally impressed
					}
				}
			}

			10 = {
				if = {
					limit = { trait = lustful }
					character_event = { id = MNM.8067 } # Lustful
				}
				else = {
					random_list = {
						20 = { character_event = { id = MNM.8062 } } # Strong religious experience
						10 = { character_event = { id = MNM.8063 } } # Disappointed in the place
						20 = { character_event = { id = MNM.8065 } } # Learns things of the world - cosmopolitan
						20 = { character_event = { id = MNM.8066 } } # Generally impressed
					}
				}
			}

			5 = { # Cured of Disease
				if = {
					limit = {
						trigger_if = {
							limit = { is_ill = no }

							has_symptom_trigger = yes
							has_character_flag = developing_illness
						}
					}

					narrative_event = { id = MNM.8068 }
				}
				else = {
					random_list = {
						20 = { character_event = { id = MNM.8062 } } # Strong religious experience
						10 = { character_event = { id = MNM.8063 } } # Disappointed in the place
						20 = { character_event = { id = MNM.8065 } } # Learns things of the world - cosmopolitan
						20 = { character_event = { id = MNM.8066 } } # Generally impressed
					}
				}
			}

			10 = {
				if = {
					limit = {
						OR = {
							trait = lunatic
							trait = possessed
						}
					}

					character_event = { id = MNM.8070 } # Lunatic/possessed decides (s)he is God
				}
				else = {
					random_list = {
						20 = { character_event = { id = MNM.8062 } } # Strong religious experience
						10 = { character_event = { id = MNM.8063 } } # Disappointed in the place
						20 = { character_event = { id = MNM.8065 } } # Learns things of the world - cosmopolitan
						20 = { character_event = { id = MNM.8066 } } # Generally impressed
					}
				}
			}

			10 = {
				if = {
					limit = {
						OR = {
							trait = drunkard
							trait = hedonist
						}
					}

					character_event = { id = MNM.8071 } # Drunkard/hedonist event
				}
				else = {
					random_list = {
						20 = { character_event = { id = MNM.8062 } } # Strong religious experience
						10 = { character_event = { id = MNM.8063 } } # Disappointed in the place
						20 = { character_event = { id = MNM.8065 } } # Learns things of the world - cosmopolitan
						20 = { character_event = { id = MNM.8066 } } # Generally impressed
					}
				}
			}
		}
	}
}


# Stimulated to theological learning
character_event = {
	id = MNM.8061
	desc = EVTDESC_MNM_8061
	picture = GFX_evt_council
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8061

		if = {
			limit = { lifestyle_traits < 1 }
			add_trait = scholar
		}

		random = {
			chance = 20
			add_trait_zealous_effect = yes
		}
	}

	option = {
		name = EVTOPTB_MNM_8061

		piety = 30
	}

	after = {
		character_event = { id = MNM.8090 days = 20 } # Stay a little longer then go home
	}
}

# Strong religious experience
character_event = {
	id = MNM.8062
	desc = EVTDESC_MNM_8062
	picture = GFX_evt_hindu_temple_interior
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8062

		add_trait_fully_silently_zealous_effect = yes

		character_event = { id = MNM.8090 days = 20 } # Stay a little longer then go home
	}
}

# Disappointed in the place
character_event = {
	id = MNM.8063
	desc = EVTDESC_MNM_8063
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8063

		add_trait_fully_silently_cynical_effect = yes

		clr_character_flag = good_pilgrimage
		clr_character_flag = abominable_pilgrimage
		set_character_flag = bad_pilgrimage

		character_event = { id = MNM.8090 days = 20 } # Stay a little longer then go home
	}
}

# Mastermind theologian impresses everyone
character_event = {
	id = MNM.8064
	desc = EVTDESC_MNM_8064
	picture = GFX_evt_council
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8064

		prestige = 30

		character_event = { id = MNM.8090 days = 20 } # Stay a little longer then go home
	}
}

# Learns things of the big world - cosmopolitan experience
character_event = {
	id = MNM.8065
	desc = EVTDESC_MNM_8065
	picture = GFX_evt_dharmic_pilgrims
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8065

		random_list = {
			15 = { change_learning = 1 }
			15 = { change_intrigue = 1 }
			70 = { }
		}
	}

	option = {
		name = EVTOPTB_MNM_8065

		random = {
			chance = 50
			add_trait_gregarious_effect = yes
		}

		if = {
			limit = { trait = gregarious }

			random = {
				chance = 20
				change_diplomacy = 1
			}
		}
	}

	after = {
		character_event = { id = MNM.8090 days = 20 } # Stay a little longer then go home
	}
}

# Generally impressed
character_event = {
	id = MNM.8066
	desc = EVTDESC_MNM_8066
	picture = GFX_evt_ruler_riding_elephant
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8066

		piety = 20

		character_event = { id = MNM.8090 days = 20 } # Stay a little longer then go home
	}
}

# Lustful character enjoys freedom far from home
character_event = {
	id = MNM.8067
	desc = EVTDESC_MNM_8067
	picture = GFX_evt_feast_indo_aryan_group
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8067  # Let's go!

		if = {
			limit = {
				is_female = yes
				NOT = { trait = homosexual }
			}

			random = {
				chance = 50

				custom_tooltip = {
					text = becomes_pregnant_no_father
					impregnate = 0
				}

				clr_character_flag = good_pilgrimage
				clr_character_flag = abominable_pilgrimage
				set_character_flag = bad_pilgrimage
			}
		}

		if = {
			limit = { NOT = { trait = great_pox } }

			random = {
				chance = 5

				give_great_pox_effect = yes
				clr_character_flag = good_pilgrimage
				clr_character_flag = abominable_pilgrimage
				set_character_flag = bad_pilgrimage
			}
		}
	}

	option = {
		name = EVTOPTB_MNM_8067 # Control yourself

		piety = 10

		random = {
			chance = 40
			add_trait_chaste_effect = yes
		}
	}

	after = {
		character_event = { id = MNM.8090 days = 20 } # Stay a little longer then go home
	}
}

# Curing pilgrim of disease - pilgrim attributes it to divine influence
narrative_event = {
	id = MNM.8068
	title = EVTNAME_MNM_8068
	picture = GFX_evt_bishop_indian_group
	border = GFX_event_narrative_frame_religion

	desc = {
		text = EVTDESC_MNM_8068
		trigger = { has_character_flag = pilgrimage_to_varanasi }
	}
	desc = {
		text = EVTDESC_MNM_8068_b
		trigger = {
			NOT = { has_character_flag = pilgrimage_to_varanasi }
		}
	}

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8068

		add_trait_fully_silently_zealous_effect = yes

		ai_chance = { factor = 70 }
	}

	option = {
		name = EVTOPTB_MNM_8068

		trigger = { NOT = { has_character_flag = pilgrimage_to_varanasi } }

		add_trait_fully_silently_cynical_effect = yes

		ai_chance = { factor = 20 }
	}

	option = {
		name = EVTOPTC_MNM_8068

		trigger = {
			lifestyle_traits < 1
			NOT = { has_dlc = "Way of Life" }
		}

		add_trait = mystic

		ai_chance = { factor = 10 }
	}

	after = {
		if = {
			limit = { is_ill = yes }
			remove_disease_trait_effect = yes
		}
		else = {
			set_character_flag = pilgrim_blessing

			add_character_modifier = {
				name = blessing_of_health
				duration = -1
			}
		}

		if = {
			limit = { trait = wounded }
			remove_trait = wounded
			add_scarred_tiered_effect = yes
		}

		character_event = { id = MNM.8090 days = 20 } # Stay a little longer then go home
	}
}

# Blessing of health cures disease after having visited the monks
# character_event = {
# 	id = MNM.8069
# 	desc = EVTDESC_TOG_7015 # copied from Ancestor's blessing event
# 	picture = GFX_evt_religious_exultation
# 	border = GFX_event_normal_frame_religion
#
# 	is_triggered_only = yes
#
# 	trigger = { is_ill = yes }
#
# 	option = {
# 		name = EVTOPTA_MNM_8068
# 		remove_disease_trait_effect = yes
# 		remove_character_modifier = blessing_of_health
#
# 		remove_trait_silently_cynical_effect = yes
# 		clr_character_flag = pilgrim_blessing
# 	}
# }

# Lunatic/possessed pilgrim decides (s)he is God
character_event = {
	id = MNM.8070
	desc = EVTDESC_MNM_8070
	picture = GFX_evt_lunatic
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8070

		character_event = { id = MNM.8072 } # Results in speaking to the masses

		ai_chance = { factor = 10 }
	}

	option = {
		name = EVTOPTB_MNM_8070

		ai_chance = { factor = 90 }
	}

	after = {
		character_event = { id = MNM.8090 days = 20 } # Stay a little longer then go home
	}
}

# Drunkard/hedonist at holy site
character_event = {
	id = MNM.8071
	desc = EVTDESC_MNM_8071
	picture = GFX_evt_feast_indo_aryan_group
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8071

		if = {
			limit = {
				lifestyle_traits < 1
				NOT = { has_dlc = "Way of Life" }
			}

			random = {
				chance = 30
				add_trait = hedonist
			}
		}

		random = {
			chance = 30
			add_trait_drunkard_effect = yes
		}

		add_character_modifier = {
			name = good_times
			years = 2
		}

		ai_chance = { factor = 80 }
	}

	option = {
		name = EVTOPTB_MNM_8071

		piety = 10

		random = {
			chance = 30
			add_trait_stressed_effect = yes
		}

		ai_chance = { factor = 20 }
	}

	after = {
		character_event = { id = MNM.8090 days = 20 } # Stay a little longer then go home
	}
}

# Speaking to the masses
character_event = {
	id = MNM.8072
	desc = EVTDESC_MNM_8072
	picture = GFX_evt_heretic
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8072

		prestige = -10
		clr_character_flag = good_pilgrimage
		clr_character_flag = bad_pilgrimage
		set_character_flag = abominable_pilgrimage
		add_trait_silently_lunatic_effect = yes

		random = {
			chance = 50
			add_trait_wroth_effect = yes
		}
	}
}

# Homecoming
character_event = {
	id = MNM.8090

	hide_window = yes
	is_triggered_only = yes

	immediate = {
		trigger_switch = {
			on_trigger = has_character_flag

			good_pilgrimage       = { character_event = { id = MNM.8091 } }
			bad_pilgrimage        = { character_event = { id = MNM.8092 } }
			abominable_pilgrimage = { character_event = { id = MNM.8093 } }
		}

		if = {
			limit = { has_quest = quest_indian_monastic_order_pilgrimage }
			letter_event = { id = MNM.8099 days = 1 }
		}
	}
}

# Good pilgrimage
character_event = {
	id = MNM.8091
	desc = EVTDESC_MNM_8091
	picture = GFX_evt_throne_room_indo_aryan_group
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8091

		clr_character_flag = pilgrimage_to_sarnath
		clr_character_flag = pilgrimage_to_bodh_gaya
		clr_character_flag = pilgrimage_to_sanchi
		clr_character_flag = pilgrimage_to_shravanabeagola
		clr_character_flag = pilgrimage_to_girnar
		clr_character_flag = pilgrimage_to_shikarji
		clr_character_flag = pilgrimage_to_varanasi
		clr_character_flag = pilgrimage_to_mathura
		clr_character_flag = good_pilgrimage
		clr_character_flag = do_not_disturb

		add_trait = indian_pilgrim
		hidden_effect = { remove_trait = on_indian_pilgrimage }
		piety = 30
	}
}

# Disappointing pilgrimage
character_event = {
	id = MNM.8092
	desc = EVTDESC_MNM_8092
	picture = GFX_evt_throne_room_indo_aryan_group
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8092

		clr_character_flag = pilgrimage_to_sarnath
		clr_character_flag = pilgrimage_to_bodh_gaya
		clr_character_flag = pilgrimage_to_sanchi
		clr_character_flag = pilgrimage_to_shravanabeagola
		clr_character_flag = pilgrimage_to_girnar
		clr_character_flag = pilgrimage_to_shikarji
		clr_character_flag = pilgrimage_to_varanasi
		clr_character_flag = pilgrimage_to_mathura
		clr_character_flag = bad_pilgrimage
		clr_character_flag = do_not_disturb

		add_trait = indian_pilgrim
		hidden_effect = { remove_trait = on_indian_pilgrimage }
		piety = -10

		random = {
			chance = 20
			add_trait_fully_cynical_effect = yes
		}
	}
}

# Abominable pilgrimage - very unusual outcome
character_event = {
	id = MNM.8093
	desc = EVTDESC_MNM_8093
	picture = GFX_evt_lunatic
	border = GFX_event_normal_frame_religion

	is_triggered_only = yes

	option = {
		name = EVTOPTA_MNM_8093

		clr_character_flag = pilgrimage_to_sarnath
		clr_character_flag = pilgrimage_to_bodh_gaya
		clr_character_flag = pilgrimage_to_sanchi
		clr_character_flag = pilgrimage_to_shravanabeagola
		clr_character_flag = pilgrimage_to_girnar
		clr_character_flag = pilgrimage_to_shikarji
		clr_character_flag = pilgrimage_to_varanasi
		clr_character_flag = pilgrimage_to_mathura
		clr_character_flag = abominable_pilgrimage
		clr_character_flag = do_not_disturb

		add_trait = indian_pilgrim
		hidden_effect = { remove_trait = on_indian_pilgrimage }
		piety = -100
	}
}
