namespace = CIML

#### Mandean events
# invite mandeans
character_event = {
	id = CIML.349
	title = EVTNAMECIML.349
	desc = EVTDESCCIML.349

	picture = GFX_evt_desert
	
	is_triggered_only = yes

	option = {
		name = EVTOPTACIML.349
		piety = 15
		prestige = 15
		}

	after = {
	}
}

# Risamma elected
narrative_event = {
	id = CIML.808
	title = EVTNAMECIML.808
	desc = EVTDESCCIML.808

	picture = GFX_evt_desert
	
	is_triggered_only = yes

	option = {
		name = EVTOPTACIML.808
		trigger = {
			religion = mandean
		}
	}
	option = {
		name = EVTOPTBCIML.808
		trigger = {
			OR = {
				religion = miaphysite
				religion = monophysite
				religion = judaizer
			}
		}
	}
	option = {
		name = EVTOPTCCIML.808
		trigger = {
			NOR = {
				religion = miaphysite
				religion = monophysite
				religion = judaizer
				religion = mandean
			}
		}
	}

	after = {
	}
}

# Masiqta Ascent of the Dead
character_event = {
	id = CIML.809
	title = EVTNAMECIML.809
	desc = EVTDESCCIML.809

	picture = GFX_evt_feast
	
	is_triggered_only = yes

	option = {
		name = EVTOPTACIML.809
		add_character_modifier = { 
		name = mandean_requiem_dynasty
		months = 48
		}
	}

	option = {
		name = EVTOPTBCIML.809 
		add_character_modifier = { 
		name = mandean_requiem_army
		months = 36
		}
	}

	option = {
		name = EVTOPTCCIML.809 
		add_character_modifier = { 
		name = mandean_requiem_poor
		months = 36
		}
	}

	option = {
		name = EVTOPTDCIML.809 
		add_character_modifier = { 
		name = mandean_requiem_church
		months = 36
		}
	}

	after = {
	}
}

# Mandean incantation bowl
character_event = {
	id = CIML.810
	title = EVTNAMECIML.810
	desc = EVTDESCCIML.810

	picture = GFX_evt_ritual_scroll
	
	is_triggered_only = yes

	option = {
		name = EVTOPTACIML.810
		if = { 
			limit = { 
				trait = lunatic
			} 
			random = { 
				chance = 10
				remove_trait = lunatic
			}
		} 
		if = { 
			limit = { 
				trait = possessed
			} 
			random = { 
				chance = 10 
				remove_trait = possessed
			}
		} 
		if = { 
			limit = { 
				trait = paranoid
			} 
			random = { 
				chance = 10 
				remove_trait = paranoid
			}
		} 
	}

	after = {
	}
}

#### Yarsan events
# yarsen fast
character_event = {
	id = CIML.350
	title = EVTNAMECIML.350
	desc = EVTDESCCIML.350

	picture = GFX_evt_desert
	
	is_triggered_only = yes

	option = {
		name = EVTOPTACIML.350
		piety = 10
		}

	after = {
	}
}

# yarsen childhood event
character_event = {
	id = CIML.351
	title = EVTNAMECIML.351
	desc = EVTDESCCIML.351

	picture = GFX_evt_child_reading
	
	only_playable = yes
	min_age = 3
	max_age = 15
	only_capable = yes
	
	trigger = {
		prisoner = no
		in_seclusion = no
		is_female = no
		is_ill = no
		religion = yarsan
		NOT = {
			has_character_modifier = yarsan_initiation
		}
	}
	
	mean_time_to_happen = {	months = 12 }
	
	option = {
		name = EVTOPTACIML.351
		random = { 
			chance = 50  
			change_learning = 1
		}
		piety = 10
	}

	after = {
		add_character_modifier = { 
			name = yarsan_initiation
			years = 14 
		}
	}
}