﻿namespace = LIL_transformation
#0100 In search of the truth (scholar transformation) 
#0400 ladys night


LIL_transformation.0100 = {
	type = character_event
	title = LIL_transformation.0100.title
	#desc = LIL_transformation.0100.desc
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					OR = {
						has_trait = education_learning_1
						has_trait = education_learning_2
						has_trait = education_learning_3
						has_trait = education_learning_4
						has_trait = scholar
						has_trait = theologian

					}

				}
				desc = LIL_transformation.0100.desc
			}
			triggered_desc = {
				trigger = {
					OR = {
						has_trait = possessed_1
						has_trait = possessed_genetic
						has_trait = mystic_1
						has_trait = mystic_2
						has_trait = mystic_3
						has_trait = witch

					}

				}
				desc = LIL_transformation.0100.desc
				#desc = LIL_transformation.0200.desc
			}
			desc = LIL_transformation.0100.desc
			#desc = LIL_transformation.0300.desc
		}
	}
 
	theme = realm
	left_portrait = {
		character = root
		animation = rage 
	}


	#  follow 
	option = {
		name = LIL_transformation.0100.a

		
		set_variable = {
			name = lilith_transformation_happened
			value = yes
		}

		trigger_event = {
			id = LIL_transformation.0101
			days = { 20 40 }
		}
	}

	option = {
		name = LIL_transformation.0100.b
		set_variable = {
			name = lilith_transformation_happened
			value = yes
		}
	}

	
}
LIL_transformation.0101 = {
	type = character_event
	title = LIL_transformation.0101.title

	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					OR = {
						has_trait = education_learning_1
						has_trait = education_learning_2
						has_trait = education_learning_3
						has_trait = education_learning_4
						has_trait = scholar
						has_trait = theologian

					}

				}
				desc = LIL_transformation.0101.desc
			}
			triggered_desc = {
				trigger = {
					OR = {
						has_trait = possessed_1
						has_trait = possessed_genetic
						has_trait = mystic_1
						has_trait = mystic_2
						has_trait = mystic_3
						has_trait = witch

					}

				}
				desc = LIL_transformation.0101.desc
				#desc = LIL_transformation.0201.desc
			}
			desc = LIL_transformation.0101.desc
			#desc = LIL_transformation.0301.desc
		}
	}
 


	#desc = LIL_transformation.0101.desc
	theme = realm
	left_portrait = {
		character = root
		animation = rage 
	}
	
	#  follow 
	option = {
		name = LIL_transformation.0101.a

		trigger_event = {
			id = LIL_transformation.1000
			days = { 20 40 }
		}
		
		
	}

	
}
#############################
####### The induction #######
#############################

LIL_transformation.1000 = {
	type = character_event
	title = LIL_transformation.1000.title
	desc = LIL_transformation.1000.desc
	theme = realm
	left_portrait = {
		character = root
		animation = idle
	}
	
	#  follow 
	option = {
		name = LIL_transformation.1000.a

		trigger_event = {
			id = LIL_transformation.1001
			days = { 10 30 }
		}
	}

	immediate = {
		add_character_flag = {
			flag = is_naked
			days = 1
		}
	}
	
}

LIL_transformation.1001 = {
	type = character_event
	title = LIL_transformation.1001.title
	desc = LIL_transformation.1001.desc
	theme = realm
	left_portrait = {
		character = root
		animation = idle
	}
	
	#  follow 
	option = {
		name = LIL_transformation.1001.a
		#add_piety = -50
		trigger_event = {
			id = LIL_transformation.1002
			days = { 10 30 }
		}
		
		
	}
	 
	immediate = {
		add_character_flag = {
			flag = is_naked
			days = 1
		}
	}
}


LIL_transformation.1002 = {
	type = character_event
	title = LIL_transformation.1002.title
	desc = LIL_transformation.1002.desc
	theme = realm
	left_portrait = {
		character = root
		animation = idle
	}
	
	#  follow 
	option = {
		name = LIL_transformation.1002.a
		#add_piety = -50
		trigger_event = {
			id = LIL_transformation.1003
			days = { 10 30 }
		}
		
		
	}
	 
	immediate = {
		add_character_flag = {
			flag = is_naked
			days = 1
		}
	}
}


LIL_transformation.1003 = {
	type = character_event
	title = LIL_transformation.1003.title
	desc = LIL_transformation.1003.desc
	theme = realm
	left_portrait = {
		character = root
		animation = idle
	}
	
	#  follow 
	option = {
		name = LIL_transformation.1003.a
		#add_piety = -50
		trigger_event = {
			id = LIL_transformation.1100
			days = { 10 30 }
		}
		
		
	}
	 
	immediate = {
		
		add_character_flag = {
			flag = is_naked
			days = 1
		}
	}
}

LIL_transformation.1100 = {
	type = character_event
	title = LIL_transformation.1100.title
	desc = LIL_transformation.1100.desc
	theme = realm
	left_portrait = {
		character = root
		animation = idle
	}
	
	
	#  follow 
	option = {
		add_trait = sisterhood_3
		name = LIL_transformation.1100.a
		add_piety = {
			value = piety
			multiply = -2
		}
		set_character_faith = faith:baahalism

		trigger_event = {
			id = LIL_transformation.1101
		}
		
	}
	option = {
		add_trait = sisterhood_3
		name = LIL_transformation.1100.b
		add_piety = {
			value = piety
			multiply = -2
		}
		set_character_faith = faith:hecateism

		trigger_event = {
			id = LIL_transformation.1101
		}
		
	}
	option = {
		add_trait = sisterhood_3
		name = LIL_transformation.1100.c
		add_piety = {
			value = piety
			multiply = -2
		}
		set_character_faith = faith:keres_order

		trigger_event = {
			id = LIL_transformation.1101
		}
		
	}
	option = {
		add_trait = sisterhood_3
		name = LIL_transformation.1100.d
		
		trigger_event = {
			id = LIL_transformation.1101
		}
		
	}
	

}


LIL_transformation.1101 = {
	type = character_event
	title = LIL_transformation.1100.title
	desc = LIL_transformation.1101.desc
	theme = realm
	left_portrait = {
		character = root
		animation = idle
	}
	
	#  follow 
	option = {
		name = LIL_transformation.1101.a
	}
	 
	immediate = {
		add_character_flag = {
			flag = is_naked
			days = 1
		}
	}
}



LIL_transformation.1200 = {
	type = character_event
	title = lilithian_embrace_mother_decision
	desc = lilithian_embrace_mother_decision_desc
	theme = realm
	left_portrait = {
		character = root
		animation = idle
	}
	
	
	#  follow  
	option = {
		name = LIL_transformation.1100.a
		add_piety = {
			value = piety
			multiply = -2
		}
		set_character_faith = faith:baahalism
		
	}
	option = {
		name = LIL_transformation.1100.b
		add_piety = {
			value = piety
			multiply = -2
		}
		set_character_faith = faith:hecateism

		
	}
	option = {
		name = LIL_transformation.1100.c
		add_piety = {
			value = piety
			multiply = -2
		}
		set_character_faith = faith:keres_order

		
	}
	option = {
		name = LIL_transformation.1200.d
		
	}
	

}


LIL_transformation.2000 = {
	type = character_event
	title = LIL_transformation.2000.title
	desc = LIL_transformation.2000.desc

	theme = realm
	left_portrait = {
		character = root
		animation = rage 
	}


	#  follow 
	option = {
		name = LIL_transformation.2000.a

		
		set_variable = {
			name = lilith_transformation_male_happened
			value = yes
		}

		trigger_event = {
			id = LIL_transformation.2001
			days = { 20 40 }
		}
	}

	option = {
		name = LIL_transformation.2000.b
		set_variable = {
			name = lilith_transformation_male_happened
			value = yes
		}
	}

	
}


LIL_transformation.2001 = {
	type = character_event
	title = LIL_transformation.2001.title
	desc = LIL_transformation.2001.desc

	theme = realm
	left_portrait = {
		character = root
		animation = rage 
	}


	#  follow 
	option = {
		name = LIL_transformation.2001.a

		trigger_event = {
			id = LIL_transformation.2100
			days = { 20 40 }
		}
	}


	
}

LIL_transformation.2100 = { #Revelation / this is when you said not at first and then changed opinion
	type = character_event
	title = LIL_transformation.2100.title
	desc = LIL_transformation.2100.desc

	theme = realm
	left_portrait = {
		character = root
		animation = rage 
	}

	option = {
		name = LIL_transformation.2100.a
		add_trait = mother_vassal
		add_piety = {
			value = piety
			multiply = -2
		}
		set_character_faith = faith:cain_sons

		
	}
	option = {
		add_trait = mother_vassal
		name = LIL_transformation.2100.b
		
	}	

	
}

LIL_transformation.2200 = { # Embrace Mother
	type = character_event
	title = LIL_transformation.2200.title
	desc = LIL_transformation.2200.desc

	theme = realm
	left_portrait = {
		character = root
		animation = rage 
	}

	option = {
		name = LIL_transformation.2100.a
		add_trait = mother_vassal
		add_piety = {
			value = piety
			multiply = -2
		}
		set_character_faith = faith:cain_sons

		
	}
	option = {
		add_trait = mother_vassal
		name = LIL_transformation.2100.b
		
	}	

	
}




LIL_transformation.2250 = {
	type = character_event
	title = lilithian_consider_faith_male_decision
	desc = lilithian_consider_faith_male_decision_desc
	theme = realm
	left_portrait = {
		character = root
		animation = idle
	}
	
	
	#  follow  
	option = {
		name = LIL_transformation.1200.a
		add_piety = {
			value = piety
			multiply = -2
		}
		set_character_faith = faith:baahalism
		
	}
	option = {
		name = LIL_transformation.1100.b
		add_piety = {
			value = piety
			multiply = -2
		}
		set_character_faith = faith:hecateism

		
	}
	option = {
		name = LIL_transformation.1100.c
		add_piety = {
			value = piety
			multiply = -2
		}
		set_character_faith = faith:keres_order

		
	}
	option = {
		name = LIL_transformation.1200.d
		
	}
	

}
