﻿#By Petter and Linnéa

sex_scene = {
	type = character

	text = {
		localization_key = sex_scene_text
	}
}

#First part
sex_scene_part_1 = {
	type = character

	text = {
		localization_key = sex_scene_part_1_location
		trigger = { exists = var:sex_scene_location }
	}

	text = {
		localization_key = sex_scene_part_1_random
	}
}

#First part - random
sex_scene_part_1_random = {
	type = character

	random_valid = yes

	text = {
		localization_key = sex_scene.0001.opening_1
	}

	text = {
		localization_key = sex_scene.0001.opening_2
	}

	text = {
		localization_key = sex_scene.0001.opening_3
	}

	text = {
		localization_key = sex_scene.0001.opening_4
	}

	text = {
		localization_key = sex_scene.0001.opening_5
	}

	text = {
		localization_key = sex_scene.0001.opening_6
	}

	text = {
		localization_key = sex_scene.0001.opening_7
	}

	text = {
		localization_key = sex_scene.0001.opening_8
	}
}

#First part - location
sex_scene_part_1_location = {
	type = character

	random_valid = yes

	text = {
		localization_key = sex_scene.0003.opening_garden_1
		trigger = {
			exists = var:sex_scene_location
			var:sex_scene_location = flag:garden
		}
	}

	text = {
		localization_key = sex_scene.0003.opening_private_chambers_1
		trigger = {
			exists = var:sex_scene_location
			var:sex_scene_location = flag:private_chamber
		}
	}

	text = {
		localization_key = sex_scene.0003.opening_stables_1
		trigger = {
			exists = var:sex_scene_location
			var:sex_scene_location = flag:stable
		}
	}

	text = {
		localization_key = sex_scene.0003.opening_copse_1
		trigger = {
			exists = var:sex_scene_location
			var:sex_scene_location = flag:copse
		}
	}

	text = {
		localization_key = sex_scene.0003.opening_kitchen_1
		trigger = {
			exists = var:sex_scene_location
			var:sex_scene_location = flag:kitchen
		}
	}

	text = {
		localization_key = sex_scene_part_1_random
		trigger = { always = no }
		fallback = yes
	}
}

#Second part
sex_scene_part_2 = {
	type = character

	random_valid = yes

	text = {
		localization_key = sex_scene.0001.second_1
	}

	text = {
		localization_key = sex_scene.0001.second_2
	}

	text = {
		localization_key = sex_scene.0001.second_3
	}

	text = {
		localization_key = sex_scene.0001.second_4
	}

	text = {
		localization_key = sex_scene.0001.second_5
	}

	text = {
		localization_key = sex_scene.0001.second_6
	}

	text = {
		trigger = {
			sex_opposite_of = scope:second
		}
		localization_key = sex_scene.0001.second_7
	}

	text = {
		localization_key = sex_scene.0001.second_8
	}

	text = {
		localization_key = sex_scene.0001.second_9
	}
}

#Third part
sex_scene_part_3 = {
	type = character

	random_valid = yes

	text = {
		localization_key = sex_scene.0001.third_1
	}

	text = {
		localization_key = sex_scene.0001.third_2
	}

	text = {
		localization_key = sex_scene.0001.third_3
	}

	text = {
		localization_key = sex_scene.0001.third_4
	}

	text = {
		localization_key = sex_scene.0001.third_5
	}

	text = {
		localization_key = sex_scene.0001.third_6
	}
}


#Ending
sex_scene_ending = {
	type = character

	text = {
		localization_key = sex_scene_ending_location
		trigger = { exists = var:sex_scene_location }
	}

	text = {
		localization_key = sex_scene_ending_random
	}
}


#Ending - random
sex_scene_ending_random = {
	type = character

	random_valid = yes

	text = {
		localization_key = sex_scene.0001.last_1
	}

	text = {
		localization_key = sex_scene.0001.last_2
	}

	text = {
		localization_key = sex_scene.0001.last_3
	}

	text = {
		localization_key = sex_scene.0001.last_4
	}

	text = {
		localization_key = sex_scene.0001.last_5
	}

	text = {
		localization_key = sex_scene.0001.last_6
	}
}

#Ending - location
sex_scene_ending_location = {
	type = character

	random_valid = yes

	text = {
		localization_key = sex_scene.0003.conclusion_garden_1
		trigger = {
			exists = var:sex_scene_location
			var:sex_scene_location = flag:garden
		}
	}

	text = {
		localization_key = sex_scene.0003.conclusion_private_chambers_1
		trigger = {
			exists = var:sex_scene_location
			var:sex_scene_location = flag:private_chamber
		}
	}

	text = {
		localization_key = sex_scene.0003.conclusion_stables_1
		trigger = {
			exists = var:sex_scene_location
			var:sex_scene_location = flag:stable
		}
	}

	text = {
		localization_key = sex_scene.0003.conclusion_copse_1
		trigger = {
			exists = var:sex_scene_location
			var:sex_scene_location = flag:copse
		}
	}

	text = {
		localization_key = sex_scene.0003.conclusion_kitchen_2
		trigger = {
			exists = var:sex_scene_location
			var:sex_scene_location = flag:kitchen
		}
	}

	text = {
		localization_key = sex_scene.0003.conclusion_kitchen_3
		trigger = {
			exists = var:sex_scene_location
			var:sex_scene_location = flag:kitchen
		}
	}

	text = {
		localization_key = sex_scene_ending_random
		trigger = { always = no }
		fallback = yes
	}
}


# Custom localisation used to randomise elements in the sex scene generator

bodypart_localising = {
	type = character

	random_valid = yes

	text = {
		localization_key = bodypart_localising_chest
	}

	text = {
		localization_key = bodypart_localising_loins
	}

	text = {
		localization_key = bodypart_localising_skin
	}
}

wet_hard = {
	type = character

	text = {
		trigger = { is_female = yes }
		localization_key = wet
	}

	text = {
		trigger = { is_male = yes }
		localization_key = hard
	}
}