namespace = lam_travel_events


lam_travel_events.0001 = { 
	type = character_event
	title = lam_travel_events.0001.t
	desc = lam_travel_events.0001.desc
	theme = travel
	left_portrait = {
		character = root 
	   	animation = eyeroll
	}
	right_portrait = {
		character = scope:argonian_maid_scope
		animation = flirtation
	}
	
	cooldown = { years = 40 }

	trigger = {
		is_available_travelling = yes
		is_playable_character = yes
		is_location_valid_for_travel_event_on_land = yes
	}

	immediate = {
		create_character = {
			template = argonian_maid
			#Set up the scope
			save_scope_as = argonian_maid_scope
		}
	}


	#Recruit maid normally
	option = {
		name = lam_travel_events.0001.a

		add_courtier = scope:argonian_maid_scope
		root.current_travel_plan = {
			add_companion = scope:argonian_maid_scope
		}
		stress_impact = {   
			paranoid = medium_stress_impact_gain
			gregarious = minor_stress_impact_loss
		}
		ai_chance = {
			base = 100
			modifier = {
				factor = 0
				OR = {
					has_trait = paranoid
					has_trait = shy
				}
			}
			modifier = {
				factor = 1
				OR = {
					has_trait = gregarious
					has_trait = compassionate
				}
			}
		}
	}

	#sleep and recruit
	option = { 
		name = lam_travel_events.0001.b

		add_courtier = scope:argonian_maid_scope
		root.current_travel_plan = {
			add_companion = scope:argonian_maid_scope
		}
		stress_impact = {
			lustful = medium_stress_impact_loss
			greedy = medium_stress_impact_gain
		}
		
		set_relation_lover = { 
			reason = lover_induled_in_forbidden_pleasures 
			target = scope:argonian_maid_scope 
		}
		
		had_sex_with_effect = {
			CHARACTER = scope:argonian_maid_scope
			PREGNANCY_CHANCE = pregnancy_chance
		}

		ai_chance = {
			base = 10
			modifier = {
				factor = 0
				OR = {
					has_trait = chaste
				}
			}
			modifier = {
				factor = 5
				has_trait = lustful
			}
		}
	}

	# Have them leave
	option = { # Hold it in...
		name = lam_travel_events.0001.c		
	}	
	
	#Get rid of the maid
	after = {
		if = {
			limit = {
				NOT = {
					scope:argonian_maid_scope = { is_courtier_of = root }
				}
				scope:argonian_maid_scope = { is_alive = yes }
			}
			scope:argonian_maid_scope = {
					silent_disappearance_effect = yes
			}
		}
	}
}





###THE CURSED CHILD#######
####WORK IN PROGRESS FOR NEXT UPDATE######

# lam_travel_events.0002 = {
# 	type = character_event
# 	title = lam_travel_events.0002.t
# 	desc = lam_travel_events.0002.desc
# 	theme = travel
# 	left_portrait = {
# 		character = root 
# 		animation = personality_rational
# 	}
# 	#make her read a book in animation
# 	right_portrait = {
# 		character = scope:magic_little_girl_character_scope
# 		animation = pain
# 		triggered_outfit = {
# 			outfit_tags = { beggar_rags }
# 		}
# 	}

# 	lower_right_portrait = scope:magic_little_girl_character_scope

# 	cooldown = { years = 100 }

# 	trigger = {
# 		is_available_travelling = yes
#         is_playable_character = yes
#         is_location_valid_for_travel_event_on_land = yes
# 	}

# 	immediate = {
# 		create_character = {
# 			template = magic_little_girl_character
# 			#Set up the scope
# 			save_scope_as = magic_little_girl_character_scope
# 		}
# 	}

# 	#adding 5 options (ask about parents, insult her, attempt to her her, take her as a magic apprentice, or leave her in peace)
# 	#Give them some gold

# 	option = { #ask where her parents are
# 		name = lam_travel_events.0002.a
# 		remove_short_term_gold = tiny_gold_value
# 		stress_impact = {
# 			generous = medium_stress_impact_loss
# 			greedy = medium_stress_impact_gain
# 		}
# 		ai_chance = {
# 			base = 100
# 			modifier = {
# 				factor = 0
# 				short_term_gold < tiny_gold_value
# 			}
# 			modifier = {
# 				factor = 0
# 					has_trait = greedy
# 					has_trait = callous
# 			}
# 			modifier = {
# 				factor = 1
# 				has_trait = generous
# 			}
# 		}
# 	}

# 	#insult her


# 	#try to hurt her

# 	# Take them as your apprenctice
# 	option = {
# 		name = lam_travel_events.0002.b
# 		trigger = {
# 			num_of_relation_ward < 2
# 		}
# 		#remove_short_term_gold = medium_gold_value
# 		add_courtier = scope:magic_little_girl_character_scope
# 		root.current_travel_plan = {
# 			add_companion = scope:magic_little_girl_character_scope
# 		}
# 		scope:magic_little_girl_character_scope = { set_relation_guardian = root }
# 		stress_impact = {
# 			paranoid = medium_stress_impact_gain
# 			callous = medium_stress_impact_gain
# 		}
# 		ai_chance = {
# 			base = 100
# 			modifier = {
# 				factor = 0
# 				OR = {
# 					has_trait = paranoid
# 					has_trait = callous
# 				}
# 			}
# 			modifier = {
# 				factor = 1
# 				has_trait = gregarious
# 			}
# 		}
# 	}

# 	#Adopt them as your child after asking about her parents
# 	option = {
# 		name = lam_travel_events.0002.c
# 		#remove_short_term_gold = medium_gold_value
# 		if = {
# 			limit = {
# 				exists = dynasty
# 				dynasty.dynast = root
# 			}
# 			dynasty = { add_dynasty_prestige = major_dynasty_prestige_loss }
# 		}
# 		else = {
# 			add_prestige = massive_prestige_loss
# 		}
# 		if = {
# 			limit = {
# 				is_male = yes
# 			}
# 			scope:magic_little_girl_character_scope = { set_father = root }
# 		}
# 		else = {
# 			scope:magic_little_girl_character_scope = { set_mother = root }
# 		}
# 		if = {
# 			limit = { exists = house }
# 			scope:magic_little_girl_character_scope = { set_house = root.house }
# 		}
# 		set_relation_friend = {
# 			reason = friend_adopted
# 			target = scope:magic_little_girl_character_scope
# 		}
# 		stress_impact = {
# 			compassionate = medium_stress_impact_loss
# 			paranoid = medium_stress_impact_gain
# 			callous = medium_stress_impact_gain
# 			sadistic = medium_stress_impact_gain
# 		}
# 		ai_chance = {
# 			base = 10 # The AI should really avoid doing this
# 			modifier = {
# 				factor = 0
# 				OR = {
# 					has_trait = paranoid
# 					has_trait = arrogant
# 					has_trait = callous
# 					has_trait = sadistic
# 				}
# 			}
# 		}
# 	}

# 	# leave them alone
# 	option = {
# 		name = lam_travel_events.0002.d

# 		#One day make it so samll chance to live and smaller chance
# 		#to seek revenge (like 1%)
# 		hidden_effect = {
# 			scope:magic_little_girl_character_scope = {
# 				death = {
# 					death_reason = death_starved
# 				}
# 			}
# 			scope:starving_parent_scope = {
# 				death = {
# 					death_reason = death_starved
# 				}
# 			}
# 		}

# 		stress_impact = {
# 			compassionate = minor_stress_impact_gain
# 			generous = minor_stress_impact_gain
# 		}

# 		ai_chance = {
# 			modifier = {
# 				factor = 0
# 				has_trait = arrogant
# 				has_trait = callous
# 			}
# 		}
# 	}
# }