﻿namespace = regula_orgy_intent_events

##################################################
# Regula orgy intent events
# These are the Regula orgy events that are used to ecomplish "intents"
# Specifically the Regula Orgy intents which are: Heal, Ritual, Charm, Impregnate and Beguile
# Reduce Stress intent does not have an intent event
### Events
# 1000 : Heal
# 2000 : Ritual
# 3000 : Charm
	## 3001 - Charm a Lover/Seducer/Lustful
	## 3002 - Charm a Family member
	## 3003 - Charm a Knight
	## 3004 - Charm Faithful Magistarian (Someone who already believes in your religon)
	## 3005 - Default Charm event
# 4000 : Impregnate
	## 4001 - Automatic Success (They are your wife, devoted, etc)
	## 4011 - Success with Lust Magic (Learning)
	## 4012 - Failure with Lust Magic
	## 4021 - Success with Prowess
    ## 4022 - Failure with Prowess
    ## 4031 - Success with Alcohol (Intrigue)
    ## 4032 - Failure with Alcohol
	# 4100: Impregnate Spouse (Paelex/Domina)
# 5000 : Beguile
	## 5011 - Make her sign away her titles to you
		## 5012 - Make her sign away a random title to you (not primary)
	## 5021 - Take her gold
		# 5022 - Take some of her gold
	## 5031 - Make her praise you
		## 5032 - Make her praise you, minor success
	## 5041 - Make her give all of her daughters (to your court)
		## 5042 - Make her give one of her daughters to you
	## 5051 - Make her tell you all the secrets she knows (including her own)
	## 5061 - Failure
# 6000 : Recruit
	## 6001 - Recruit a Beautiful Priestess
	## 6002 - Recruit an Intelligent Servant
	## 6003 - Recruit a Stoic/Virgo Guard
	## 6004 - Recruit a Gossiping Girl
	## 6005 - Recruit an Enchanting Singer
	## 6006 - Recruit A Shy Smithy
	## 6007 - Recruit Patient Baker
	## 6008 - Recruit Foreign Squire
	## 6009 - Recruit Child of the Book
	## 6010 - Recruit Servant Girls
##################################################
##################################################
# STRESS
##################################################
# A Relaxing Soak
# by Ban10
# 1000 - 1999
##################################################

# 1000 : Heal (and reduce stress)
# A nice relaxing soak in an open bath
regula_orgy_intent_events.1000 = {
	type = activity_event
	title = regula_orgy_intent_events.1000.t
	desc = {
		desc = regula_orgy_intent_events.1000.desc.intro
		random_valid = {
			# Lustful
			triggered_desc = {
				trigger = { has_trait = lustful }
				desc = regula_orgy_intent_events.1000.desc.lustful
			}
			# Chaste
			triggered_desc = {
				trigger = { has_trait = chaste }
				desc = regula_orgy_intent_events.1000.desc.chaste
			}
			# Gluttonous
			triggered_desc = {
				trigger = { has_trait = gluttonous }
				desc = regula_orgy_intent_events.1000.desc.gluttonous
			}
			# Temperate
			triggered_desc = {
				trigger = { has_trait = temperate }
				desc = regula_orgy_intent_events.1000.desc.temperate
			}
			# Greedy
			triggered_desc = {
				trigger = { has_trait = greedy }
				desc = regula_orgy_intent_events.1000.desc.greedy
			}
			# Generous
			triggered_desc = {
				trigger = { has_trait = generous }
				desc = regula_orgy_intent_events.1000.desc.generous
			}
			# Lazy
			triggered_desc = {
				trigger = { has_trait = lazy }
				desc = regula_orgy_intent_events.1000.desc.lazy
			}
			# Diligent
			triggered_desc = {
				trigger = { has_trait = diligent }
				desc = regula_orgy_intent_events.1000.desc.diligent
			}
			# Wrathful
			triggered_desc = {
				trigger = { has_trait = wrathful }
				desc = regula_orgy_intent_events.1000.desc.wrathful
			}
			# Calm
			triggered_desc = {
				trigger = { has_trait = calm }
				desc = regula_orgy_intent_events.1000.desc.calm
			}
			# Patient
			triggered_desc = {
				trigger = { has_trait = patient }
				desc = regula_orgy_intent_events.1000.desc.patient
			}
			# Impatient
			triggered_desc = {
				trigger = { has_trait = impatient }
				desc = regula_orgy_intent_events.1000.desc.impatient
			}
			# Arrogant
			triggered_desc = {
				trigger = { has_trait = arrogant }
				desc = regula_orgy_intent_events.1000.desc.arrogant
			}
			# Humble
			triggered_desc = {
				trigger = { has_trait = humble }
				desc = regula_orgy_intent_events.1000.desc.humble
			}
			# Deceitful
			triggered_desc = {
				trigger = { has_trait = deceitful }
				desc = regula_orgy_intent_events.1000.desc.deceitful
			}
			# Honest
			triggered_desc = {
				trigger = { has_trait = honest }
				desc = regula_orgy_intent_events.1000.desc.honest
			}
			# Craven
			triggered_desc = {
				trigger = { has_trait = craven }
				desc = regula_orgy_intent_events.1000.desc.craven
			}
			# Brave
			triggered_desc = {
				trigger = { has_trait = brave }
				desc = regula_orgy_intent_events.1000.desc.brave
			}
			# Shy
			triggered_desc = {
				trigger = { has_trait = shy }
				desc = regula_orgy_intent_events.1000.desc.shy
			}
			# Gregarious
			triggered_desc = {
				trigger = { has_trait = gregarious }
				desc = regula_orgy_intent_events.1000.desc.gregarious
			}
			# Ambitious
			triggered_desc = {
				trigger = { has_trait = ambitious }
				desc = regula_orgy_intent_events.1000.desc.ambitious
			}
			# Content
			triggered_desc = {
				trigger = { has_trait = content }
				desc = regula_orgy_intent_events.1000.desc.content
			}
			# Arbitrary
			triggered_desc = {
				trigger = { has_trait = arbitrary }
				desc = regula_orgy_intent_events.1000.desc.arbitrary
			}
			# Just
			triggered_desc = {
				trigger = { has_trait = just }
				desc = regula_orgy_intent_events.1000.desc.just
			}
			# Cynical
			triggered_desc = {
				trigger = { has_trait = cynical }
				desc = regula_orgy_intent_events.1000.desc.cynical
			}
			# Zealous
			triggered_desc = {
				trigger = { has_trait = zealous }
				desc = regula_orgy_intent_events.1000.desc.zealous
			}
			# Paranoid
			triggered_desc = {
				trigger = { has_trait = paranoid }
				desc = regula_orgy_intent_events.1000.desc.paranoid
			}
			# Trusting
			triggered_desc = {
				trigger = { has_trait = trusting }
				desc = regula_orgy_intent_events.1000.desc.trusting
			}
			# Compassionate
			triggered_desc = {
				trigger = { has_trait = compassionate }
				desc = regula_orgy_intent_events.1000.desc.compassionate
			}
			# Callous
			triggered_desc = {
				trigger = { has_trait = callous }
				desc = regula_orgy_intent_events.1000.desc.callous
			}
			# Sadistic
			triggered_desc = {
				trigger = { has_trait = sadistic }
				desc = regula_orgy_intent_events.1000.desc.sadistic
			}
			# Stubborn
			triggered_desc = {
				trigger = { has_trait = stubborn }
				desc = regula_orgy_intent_events.1000.desc.stubborn
			}
			# Fickle
			triggered_desc = {
				trigger = { has_trait = fickle }
				desc = regula_orgy_intent_events.1000.desc.fickle
			}
			# Vengeful
			triggered_desc = {
				trigger = { has_trait = vengeful }
				desc = regula_orgy_intent_events.1000.desc.vengeful
			}
			# Forgiving
			triggered_desc = {
				trigger = { has_trait = forgiving }
				desc = regula_orgy_intent_events.1000.desc.forgiving
			}
		}
		desc = regula_orgy_intent_events.1000.desc.outro
	}
	theme = regula_orgy_theme
	left_portrait = {
		character = root
        outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = happiness
	}

	center_portrait = {
		character = scope:fellow_guest_1
        outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = personality_content
	}

	right_portrait = {
		character = scope:fellow_guest_2
        outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = personality_compassionate
	}

	trigger = {
		# Correct intent for vibes time.
		has_activity_intent = regula_heal_intent
		involved_activity ?= {
			has_activity_type = activity_regula_orgy
		}
	}

	immediate = {
		involved_activity = {
			scope:host = {
				complete_activity_intent = yes

				# Lose some stress
				stress_impact = { base = major_stress_impact_loss }
			}
			add_activity_log_entry = {
				key = regula_orgy_stress_reduce_log
				tags = { complete good }
				character = scope:host
			}

			# Grab some guests for portraits
			random_attending_character = {
				limit = {
					NOT = { this = root }
				}
				save_scope_as = fellow_guest_1
			}
			random_attending_character = {
				limit = {
					NOT = { this = root }
					NAND = {
						exists = scope:fellow_guest_1
						this = scope:fellow_guest_1
					}
				}
				save_scope_as = fellow_guest_2
			}
		}
	}

	# Heal Physical defects
	option = {
		name = regula_orgy_intent_events.1000.a

		scope:activity = {
			# Heals a physical trait from everyone at Orgy.
			every_attending_character = {
				regula_mutare_corpus_repair_physical_single_effect = yes
			}
		}
	}

	# Heal Mental defects
	option = {
		name = regula_orgy_intent_events.1000.b
		scope:activity = {
			# Heals a mental trait from everyone at Orgy.
			every_attending_character = {
				regula_mutare_corpus_repair_mind_single_effect = yes
			}
		}
	}

	# Heal Sexual defects
	option = {
		name = regula_orgy_intent_events.1000.c
		scope:activity = {
			# Heals a disease from everyone at Orgy.
			# Also makes us immune to disease for a year.
			every_attending_character = {
				regula_mutare_corpus_cure_disease_single_effect  = yes
				add_character_flag = {
					flag = immune_to_disease
					years = 1
				}
			}
		}
	}

	after = {
		# If you no longer have a contagious disease, you lose rejected from marriage bed modifier
		if = {
			limit = {
				has_character_modifier = rejected_from_marriage_bed_modifier
				has_contagious_deadly_disease_trigger = no
			}
			remove_character_modifier = rejected_from_marriage_bed_modifier
		}
	}

}

##################################################
# Ritual
##################################################
# Ritual Preperation
# by Ban10
# 2000 - 2999
##################################################

# 2000 : Ritual
# Prepare for the Regula Ritual
# Passing the test increases Ritual effects
regula_orgy_intent_events.2000 = {
    type = activity_event
	title = regula_orgy_intent_events.2000.t
	desc = regula_orgy_intent_events.2000.desc
	theme = regula_orgy_theme
	override_background = {
		reference = godless_shrine
	}

	left_portrait = {
		character = root
		animation = thinking
	}

	cooldown = { years = 1 }

	trigger = {
		has_activity_intent = regula_ritual_intent
		involved_activity ?= {
			has_activity_type = activity_regula_orgy
		}
	}

    # Attempt to use your learning
    option = {
        name = regula_orgy_intent_events.2000.a
    }
}

##################################################
# Charm
##################################################
# Charming Affair
# by Ban10
# 3000 - 3999
##################################################

# 3000 : Charm
# Check what charm scene we should send player to
regula_orgy_intent_events.3000 = {
	type = activity_event
	hidden = yes

	trigger = {
		has_activity_intent = regula_charm_attendee_intent
		involved_activity ?= {
			has_activity_type = activity_regula_orgy
		}

		# Double check our target
		scope:activity.activity_host.intent_target ?= {
			is_valid_charm_target = yes
		}
	}

	immediate = {
		scope:activity.activity_host.intent_target = { save_scope_as = charm_target }

		scope:charm_target = {
			# what kind of event should we use
			if = {
				limit = {
					OR = {
						has_trait = lustful
						has_trait = seducer
						has_relation_lover = scope:activity.activity_host
						has_relation_soulmate = scope:activity.activity_host
					}
				}
				scope:activity.activity_host = {
					# Lover
					trigger_event = regula_orgy_intent_events.3001
				}
			}
			else_if = {
				limit = {
					is_close_or_extended_family_of = scope:activity.activity_host
				}
				scope:activity.activity_host = {
					# Family
					trigger_event = regula_orgy_intent_events.3002
				}
			}
			else_if = {
				limit = {
					is_knight_of = scope:activity.activity_host
				}
				scope:activity.activity_host = {
					# Knight
					trigger_event = regula_orgy_intent_events.3003
				}
			}
			else_if = {
				limit = {
					OR = {
						faith = scope:activity.activity_host.faith
						secret_faith ?= scope:activity.activity_host.faith
					}
				}
				scope:activity.activity_host = {
					# Faithful
					trigger_event = regula_orgy_intent_events.3004
				}
			}
			else = {
				scope:activity.activity_host = {
					# Default
					trigger_event = regula_orgy_intent_events.3005
				}
			}
		}
	}
}

## 3001 - Charm a Lover/Seducer/Lustful
regula_orgy_intent_events.3001 = {
	type = activity_event
	title = regula_orgy_intent_events.3001.t
	desc = {
		desc = regula_orgy_intent_events.3001.intro
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:charm_target = {
						has_relation_soulmate = root
					}
				}
				desc = regula_orgy_intent_events.3001.soulmate_response
			}
			triggered_desc = {
				trigger = {
					scope:charm_target = {
						has_relation_lover = root
					}
				}
				desc = regula_orgy_intent_events.3001.lover_response
			}
			triggered_desc = {
				trigger = {
					scope:charm_target = {
						has_trait = intellect_good
					}
				}
				desc = regula_orgy_intent_events.3001.clever_response
			}
			triggered_desc = {
				trigger = {
					scope:charm_target = {
						has_trait = intellect_bad
					}
				}
				desc = regula_orgy_intent_events.3001.stupid_response
			}
			desc = regula_orgy_intent_events.3001.default_response
		}
	}
	theme = regula_orgy_theme
	override_background = {
		reference = regula_bedchamber
	}

	left_portrait = {
		character = root
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = flirtation
	}

	right_portrait = {
		character = scope:charm_target
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = love
	}

	immediate = {
		# Sexy times
		scope:host = {
			regula_sex_with_target_normal = { TARGET = scope:charm_target }
		}
	}

	# Charm her
	option = {
		name = regula_orgy_intent_events.3001.a
		flavor = regula_orgy_intent_events.3001.a.tt

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_charm_log
				tags = { good }
				character = root
				target = scope:charm_target
			}
		}

		scope:charm_target = {
			fascinare_success_effect = { CHARACTER = root }
			create_memory_fascinare_scheme = { CHARACTER = root }
		}
	}
}

## 3002 - Charm a Family member
regula_orgy_intent_events.3002 = {
	type = activity_event
	title = regula_orgy_intent_events.3002.t
	desc = regula_orgy_intent_events.3002.desc
	theme = regula_orgy_theme
	override_background = {
		reference = council_chamber
	}

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:charm_target
		animation = personality_content
	}

	# Charm her
	option = {
		name = regula_orgy_intent_events.3002.a
		flavor = regula_orgy_intent_events.3002.a.tt

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_charm_log
				tags = { good }
				character = root
				target = scope:charm_target
			}
		}

		scope:charm_target = {
			fascinare_success_effect = { CHARACTER = root }
			create_memory_fascinare_scheme = { CHARACTER = root }
		}
	}
}

## 3003 - Charm a Knight
regula_orgy_intent_events.3003 = {
	type = activity_event
	title = regula_orgy_intent_events.3003.t
	desc = regula_orgy_intent_events.3003.desc
	theme = regula_orgy_theme
	override_background = {
		reference = council_chamber
	}

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:charm_target
		animation = personality_content
	}

	# Charm her
	option = {
		name = regula_orgy_intent_events.3003.a
		flavor = regula_orgy_intent_events.3003.a.tt

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_charm_log
				tags = { good }
				character = root
				target = scope:charm_target
			}
		}

		scope:charm_target = {
			fascinare_success_effect = { CHARACTER = root }
			create_memory_fascinare_scheme = { CHARACTER = root }
		}
	}
}

## 3004 - Charm Faithful Magistarian (Someone who already believes in your religon)
regula_orgy_intent_events.3004 = {
	type = activity_event
	title = regula_orgy_intent_events.3004.t
	desc = regula_orgy_intent_events.3004.desc
	theme = regula_orgy_theme
	override_background = {
		reference = council_chamber
	}

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:charm_target
		animation = personality_content
	}

	# Charm her
	option = {
		name = regula_orgy_intent_events.3004.a
		flavor = regula_orgy_intent_events.3004.a.tt

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_charm_log
				tags = { good }
				character = root
				target = scope:charm_target
			}
		}

		scope:charm_target = {
			fascinare_success_effect = { CHARACTER = root }
			create_memory_fascinare_scheme = { CHARACTER = root }
		}
	}
}

## 3005 - Default Charm event
regula_orgy_intent_events.3005 = {
	type = activity_event
	title = regula_orgy_intent_events.3005.t
	desc = regula_orgy_intent_events.3005.desc
	theme = regula_orgy_theme
	override_background = {
		reference = council_chamber
	}

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:charm_target
		animation = personality_content
	}

	# Charm her
	option = {
		name = regula_orgy_intent_events.3005.a
		flavor = regula_orgy_intent_events.3005.a.tt

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_charm_log
				tags = { good }
				character = root
				target = scope:charm_target
			}
		}

		scope:charm_target = {
			fascinare_success_effect = { CHARACTER = root }
			create_memory_fascinare_scheme = { CHARACTER = root }
		}
	}
}

##################################################
# Impregnate
##################################################
# Planting the Seed
# by Ban10
# 4000 - 4999
##################################################

# 4000 : Impregnate
regula_orgy_intent_events.4000 = {
	type = activity_event
	title = regula_orgy_intent_events.4000.t
	desc = {
		desc = regula_orgy_intent_events.4000.intro
		random_valid = {
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { has_trait = beauty_good }
				}
				desc = regula_orgy_intent_events.4000.beauty
			}
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { has_trait = intellect_good }
				}
				desc = regula_orgy_intent_events.4000.intelligence
			}
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { has_trait = physique_good }
				}
				desc = regula_orgy_intent_events.4000.strength
			}
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { has_trait = fecund }
				}
				desc = regula_orgy_intent_events.4000.fertile
			}
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { has_trait = pure_blooded }
				}
				desc = regula_orgy_intent_events.4000.pure_blood
			}
		}
		desc = regula_orgy_intent_events.4000.intro_2
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { regula_num_children_plus_dead = 0 }
				}
				desc = regula_orgy_intent_events.4000.no_children
			}
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { regula_num_children_plus_dead = 1 }
				}
				desc = regula_orgy_intent_events.4000.one_child
			}
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { regula_num_children_plus_dead <= 3 }
				}
				desc = regula_orgy_intent_events.4000.few_children
			}
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { regula_num_children_plus_dead < 6 }
				}
				desc = regula_orgy_intent_events.4000.some_children
			}
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { regula_num_children_plus_dead >= 6 }
				}
				desc = regula_orgy_intent_events.4000.many_children
			}
		}
	}
	theme = regula_orgy_theme
	override_background = {
		reference = sitting_room
	}

	left_portrait = {
		character = root
		animation = scheme
	}

	right_portrait = {
		character = scope:impregnate_target
		animation = idle
	}

	trigger = {
		has_activity_intent = regula_impregnate_attendee_intent
		involved_activity ?= {
			has_activity_type = activity_regula_orgy
		}

		# Double check our target
		intent_target ?= {
			is_valid_impregnate_target = yes
		}
	}

	immediate = {
		# Save our intent target
		intent_target = {
			save_scope_as = impregnate_target
		}
	}

	# She is Devoted, she wont refuse
	option = {
		name = regula_orgy_intent_events.4000.devoted
		exclusive = yes
		trigger = {
			scope:impregnate_target = { has_trait = devoted_trait_group }
		}
		scope:activity = {
			activity_host = {
				trigger_event = regula_orgy_intent_events.4001
			}
		}
	}

	# Use your Magic! (learning)
	option = {
		name = regula_orgy_intent_events.4000.magic
		duel = {
			skill = learning
			value = decent_skill_rating
			50 = {
				desc = regula_orgy_intent_events.4000.magic.success
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					min = 5
				}

				show_as_tooltip = {
					scope:impregnate_target = {
						make_pregnant = {
							father = root
							number_of_children = 1
						}
					}
				}

				root = {
					trigger_event = regula_orgy_intent_events.4011
				}
			}
			50 = {
				desc = regula_orgy_intent_events.4000.magic.failure
				compare_modifier = {
					value = scope:duel_value
					multiplier = -3.5
					min = 5
				}
				root = {
					trigger_event = regula_orgy_intent_events.4012
				}
			}
		}
	}

	# Force them! (Prowess)
	# If they are lusty, they might not mind...
	option = {
		name = regula_orgy_intent_events.4000.force

		duel = {
			skill = prowess
			value = scope:impregnate_target.prowess
			50 = {
				desc = regula_orgy_intent_events.4000.force.success
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					min = -49
				}

				show_as_tooltip = {
					scope:impregnate_target = {
						make_pregnant = {
							father = scope:host
							number_of_children = 1
						}
					}
				}

				# Check if we trigger bonus event
				scope:host = {
					if = {
						limit = {
							scope:impregnate_target = { regula_impregnate_prowess_bonus_event_trigger = yes }
						}
						trigger_event = regula_orgy_intent_events.4023
					}
					else = {
						trigger_event = regula_orgy_intent_events.4021
					}
				}
			}
			50 = {
				desc = regula_orgy_intent_events.4000.force.failure
				compare_modifier = {
					value = scope:duel_value
					multiplier = -3.5
					min = -49
				}
				scope:host = {
					if = {
						limit = {
							scope:impregnate_target = { regula_impregnate_prowess_bonus_event_trigger = yes }
						}
						trigger_event = regula_orgy_intent_events.4023
					}
					else = {
						trigger_event = regula_orgy_intent_events.4022
					}
				}
			}
		}
	}

	# Get them drunk! (Intrigue)
	option = {
		name = regula_orgy_intent_events.4000.drink
		duel = {
			skill = intrigue
			value = decent_skill_rating
			50 = {
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					min = -49
				}
				trigger_event = regula_orgy_intent_events.4031
			}
			50 = {
				compare_modifier = {
					value = scope:duel_value
					multiplier = -3.5
					min = -49
				}
				trigger_event = regula_orgy_intent_events.4032
			}
		}
	}
}

## 4001 - Automatic Success (They are your wife, devoted, etc)
regula_orgy_intent_events.4001 = {
	type = activity_event
	title = regula_orgy_intent_events.4001.t
	desc = regula_orgy_intent_events.4001.desc
	theme = regula_orgy_theme
	override_background = {
		reference = sitting_room
	}

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:impregnate_target
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = love
	}

	# Baby-making time!
	option = {
		name = regula_orgy_intent_events.4001.a
		flavor = regula_orgy_intent_events.4001.a.tt

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_impregnate_log
				tags = { good }
				character = root
				target = scope:impregnate_target
			}
		}

		# Guarenteed pregnancy
		hidden_effect = {
			scope:impregnate_target = {
				random_list = {
					65 = {
						make_pregnant = {
							father = root
							number_of_children = 1
						}
					}
					25 = {
						make_pregnant = {
							father = root
							number_of_children = 2
						}
					}
					9 = {
						make_pregnant = {
							father = root
							number_of_children = 3
						}
					}
					1 = {
						make_pregnant = {
							father = root
							number_of_children = 4
						}
					}
				}
			}
		}

		scope:host = {
			regula_sex_with_target_normal = { TARGET = scope:impregnate_target }
		}
	}
}

## 4011 - Success with Lust Magic (Learning)
regula_orgy_intent_events.4011 = {
	type = activity_event
	title = regula_orgy_intent_events.4011.t
	desc = regula_orgy_intent_events.4011.desc
	theme = regula_orgy_theme
	override_background = {
		reference = regula_bedchamber
	}

	left_portrait = {
		character = root
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = happiness
	}

	right_portrait = {
		character = scope:impregnate_target
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = love
	}

	# Baby-making time!
	option = {
		name = regula_orgy_intent_events.4011.a
		flavor = regula_orgy_intent_events.4011.a.tt

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_impregnate_log
				tags = { good }
				character = root
				target = scope:impregnate_target
			}
		}

		# Guarenteed pregnancy
		hidden_effect = {
			scope:impregnate_target = {
				random_list = {
					65 = {
						make_pregnant = {
							father = root
							number_of_children = 1
						}
					}
					25 = {
						make_pregnant = {
							father = root
							number_of_children = 2
						}
					}
					9 = {
						make_pregnant = {
							father = root
							number_of_children = 3
						}
					}
					1 = {
						make_pregnant = {
							father = root
							number_of_children = 4
						}
					}
				}
			}
		}

		scope:host = {
			regula_sex_with_target_normal = { TARGET = scope:impregnate_target }
		}
	}
}
## 4012 - Failure with Lust Magic
regula_orgy_intent_events.4012 = {
	type = activity_event
	title = regula_orgy_intent_events.4012.t
	desc = regula_orgy_intent_events.4012.desc
	theme = regula_orgy_theme
	override_background = {
		reference = regula_bedchamber
	}

	left_portrait = {
		character = root
		animation = worry
	}

	right_portrait = {
		character = scope:impregnate_target
		animation = love
	}

	# Failure
	option = {
		name = regula_orgy_intent_events.4012.a
		flavor = regula_orgy_intent_events.4012.a.tt

		add_piety = -100
		# She is sus
		scope:impregnate_target = {
			add_opinion = {
				modifier = suspicion_opinion
				target = root
				opinion = -20
			}
		}
	}
}

## 4021 - Success with Prowess
regula_orgy_intent_events.4021 = {
	type = activity_event
	title = regula_orgy_intent_events.4021.t
	desc = regula_orgy_intent_events.4021.desc
	theme = regula_orgy_theme
	override_background = {
		reference = sitting_room
	}

	left_portrait = {
		character = root
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = war_attacker
	}

	right_portrait = {
		character = scope:impregnate_target
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = fear
	}

	# Baby-making time!
	option = {
		name = regula_orgy_intent_events.4021.a

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_impregnate_log
				tags = { good }
				character = root
				target = scope:impregnate_target
			}
		}

		# Guarenteed pregnancy
		hidden_effect = {
			scope:impregnate_target = {
				random_list = {
					80 = {
						make_pregnant = {
							father = root
							number_of_children = 1
						}
					}
					20 = {
						make_pregnant = {
							father = root
							number_of_children = 2
						}
					}
				}
			}
		}

		# You cruel bastard!
		carn_rape_effect = {
			RAPIST = scope:host
			VICTIM = scope:impregnate_target
			TRIGGER_SEX_SCENE = no
		}

		# She runs away (after)
		scope:impregnate_target = {
			remove_from_activity = scope:activity
		}
	}
}
## 4022 - Failure with Prowess
regula_orgy_intent_events.4022 = {
	type = activity_event
	title = regula_orgy_intent_events.4021.t
	desc = regula_orgy_intent_events.4021.desc
	theme = regula_orgy_theme
	override_background = {
		reference = sitting_room
	}

	left_portrait = {
		character = root
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = pain
	}

	right_portrait = {
		character = scope:impregnate_target
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = aggressive_mace
	}

	# Baby-making time!
	option = {
		name = regula_orgy_intent_events.4021.a

		# You get hurt
		scope:activity = {
			scope:host = {
				increase_wounds_effect = { REASON = fight }
			}
		}

		# She runs away
		scope:impregnate_target = {
			remove_from_activity = scope:activity
		}

	}
}
## 4023 - Bonus Prowess event (Success)
regula_orgy_intent_events.4023 = {
	type = activity_event
	title = regula_orgy_intent_events.4023.t
	desc = {
		desc = regula_orgy_intent_events.4023.intro
		random_valid = {
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { has_trait = deviant }
				}
				desc = regula_orgy_intent_events.4023.deviant_response
			}
			triggered_desc = {
				trigger = {
					scope:impregnate_target = {
						OR = {
							is_consort_of = scope:host
							has_relation_lover = scope:host
							has_relation_soulmate = scope:host
						}
					}
				}
				desc = regula_orgy_intent_events.4023.lover_response
			}
			triggered_desc = {
				trigger = {
					scope:impregnate_target = {
						is_married = yes
						NOT = { is_consort_of = scope:host }
					}
				}
				desc = regula_orgy_intent_events.4023.husband_response
			}
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { has_trait = intellect_good }
				}
				desc = regula_orgy_intent_events.4023.intelligent_response
			}
			desc = regula_orgy_intent_events.4023.default_response
		}
		desc = regula_orgy_intent_events.4023.intro_2
	}
	theme = regula_orgy_theme
	override_background = {
		reference = sitting_room
	}

	left_portrait = {
		character = root
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = eyeroll
	}

	right_portrait = {
		character = scope:impregnate_target
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = love
	}

	# Baby-making time!
	option = {
		name = regula_orgy_intent_events.4023.a

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_impregnate_log
				tags = { good }
				character = root
				target = scope:impregnate_target
			}
		}

		# Guarenteed pregnancy
		hidden_effect = {
			scope:impregnate_target = {
				random_list = {
					80 = {
						make_pregnant = {
							father = root
							number_of_children = 1
						}
					}
					15 = {
						make_pregnant = {
							father = root
							number_of_children = 2
						}
					}
					5 = {
						make_pregnant = {
							father = root
							number_of_children = 3
						}
					}
				}
			}
		}

		scope:host = {
			regula_sex_with_target_normal = { TARGET = scope:impregnate_target }
		}
	}
}

## 4031 - Success with Alcohol (Intrigue)
regula_orgy_intent_events.4031 = {
	type = activity_event
	title = regula_orgy_intent_events.4031.t
	desc = {
		desc = regula_orgy_intent_events.4031.intro
		random_valid = {
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { has_trait = lustful }
				}
				desc = regula_orgy_intent_events.4031.lustful_response
			}
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { has_trait = drunkard }
				}
				desc = regula_orgy_intent_events.4031.drunkard_response
			}
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { has_trait = just }
				}
				desc = regula_orgy_intent_events.4031.just_response
			}
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { has_trait = temperate }
				}
				desc = regula_orgy_intent_events.4031.temperate_response
			}
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { has_trait = trusting }
				}
				desc = regula_orgy_intent_events.4031.trusting_response
			}
			triggered_desc = {
				trigger = {
					scope:impregnate_target = { has_trait = paranoid }
				}
				desc = regula_orgy_intent_events.4031.paranoid_response
			}
			desc = regula_orgy_intent_events.4031.default_response
		}
		desc = regula_orgy_intent_events.4031.intro_end
	}
	theme = regula_orgy_theme
	override_background = {
		reference = regula_bedchamber
	}

	left_portrait = {
		character = root
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = happiness
	}

	right_portrait = {
		character = scope:impregnate_target
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = wedding_drunk
	}

	# Baby-making time!
	option = {
		name = regula_orgy_intent_events.4031.a
		flavor = regula_orgy_intent_events.4031.a.tt

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_impregnate_log
				tags = { good }
				character = root
				target = scope:impregnate_target
			}
		}

		# Guarenteed pregnancy
		hidden_effect = {
			scope:impregnate_target = {
				random_list = {
					75 = {
						make_pregnant = {
							father = root
							number_of_children = 1
						}
					}
					20 = {
						make_pregnant = {
							father = root
							number_of_children = 2
						}
					}
					5 = {
						make_pregnant = {
							father = root
							number_of_children = 3
						}
					}
				}
			}
		}

		scope:host = {
			regula_sex_with_target_normal = { TARGET = scope:impregnate_target }
		}
	}
}
## 4032 - Failure with Alcohol
regula_orgy_intent_events.4032 = {
	type = activity_event
	title = regula_orgy_intent_events.4032.t
	desc = regula_orgy_intent_events.4032.desc
	theme = regula_orgy_theme
	override_background = {
		reference = regula_bedchamber
	}

	left_portrait = {
		character = root
		animation = worry
	}

	right_portrait = {
		character = scope:impregnate_target
		animation = sick
	}

	immediate = {
		# She gets sick
		scope:impregnate_target = {
			contract_disease_effect = {
				DISEASE = ill
				TREATMENT_EVENT = no
			}
		}
	}

	# Let her rest
	option = {
		name = regula_orgy_intent_events.4032.a

		# You looked after her
		scope:impregnate_target = {
			add_opinion = {
				modifier = kindness_opinion
				target = root
				opinion = 20
			}
		}

		scope:impregnate_target = {
			recover_from_disease_effect = { DISEASE = ill }
		}
	}

	# Eh, whatever. Baby-making time!
	option = {
		name = regula_orgy_intent_events.4032.b

		# Guarenteed pregnancy
		hidden_effect = {
			scope:impregnate_target = {
				random_list = {
					75 = {
						make_pregnant = {
							father = root
							number_of_children = 1
						}
					}
					20 = {
						make_pregnant = {
							father = root
							number_of_children = 2
						}
					}
					5 = {
						make_pregnant = {
							father = root
							number_of_children = 3
						}
					}
				}
			}
		}

		scope:host = {
			regula_sex_with_target_normal = { TARGET = scope:impregnate_target }
		}

		# She remains ill and is sus
		scope:impregnate_target = {
			add_opinion = {
				modifier = suspicion_opinion
				target = root
				opinion = -20
			}
		}
	}
}

# 4100: Impregnate Spouse (Paelex/Domina)
# Event text by Kupumatapokere
regula_orgy_intent_events.4100 = {
	type = activity_event
	title = regula_orgy_intent_events.4100.t
	desc = {
		desc = regula_orgy_intent_events.4100.intro
		triggered_desc = {
			trigger = {
				exists = scope:contubernalis
			}
			desc = regula_orgy_intent_events.4100.has_contubernalis_1
		}
		desc = regula_orgy_intent_events.4100.intro_2
		triggered_desc = {
			trigger = {
				exists = scope:contubernalis
			}
			desc = regula_orgy_intent_events.4100.has_contubernalis_2
		}
		desc = regula_orgy_intent_events.4100.intro_3
	}

	theme = regula_orgy_theme
	override_background = {
		reference = feast
	}

	left_portrait = {
		character = scope:contubernalis
		animation = beg

		trigger = {
			exists = scope:contubernalis
		}
	}

	right_portrait = {
		character = scope:impregnate_target
		animation = love
	}

	trigger = {
		has_activity_intent = regula_impregnate_attendee_intent
		involved_activity ?= {
			has_activity_type = activity_regula_orgy
		}

		# Double check our target
		intent_target ?= {
			is_valid_impregnate_target = yes

			# Has to be devoted and our spouse
			has_trait = devoted_trait_group
			is_consort_of = scope:host
		}
	}

	immediate = {
		# Save our intent target
		intent_target = {
			save_scope_as = impregnate_target
		}

		# Check if we have a Contubernalis for extra event text
		# Note, Contubernalis is pulled from courtiers, as they cannot "join" activities
		scope:host = {
			random_courtier = {
				limit = {
					has_trait = contubernalis
				}
				save_scope_as = contubernalis
			}
		}
	}

	# Take to Bedchamber
	option = {
		name = regula_orgy_intent_events.4100.a
		scope:activity = {
			activity_host = {
				trigger_event = regula_orgy_intent_events.4110
			}
		}

		show_as_tooltip = {
			# Plap Plap Plap
			scope:impregnate_target = {
				make_pregnant = {
					father = root
					number_of_children = 1
				}
			}

			scope:host = {
				regula_sex_with_target_normal = { TARGET = scope:impregnate_target }
			}

			# Complete intent
			scope:activity = {
				scope:host = {
					complete_activity_intent = yes
				}
				add_activity_log_entry = {
					key = regula_orgy_impregnate_log
					tags = { good }
					character = root
					target = scope:impregnate_target
				}
			}

			# Gain some bonus piety
			add_piety = 100
		}
	}

	# Take in front of everyone
	option = {
		name = regula_orgy_intent_events.4100.b
		scope:activity = {
			activity_host = {
				trigger_event = regula_orgy_intent_events.4120
			}
		}

		show_as_tooltip = {
			# Plap Plap Plap
			scope:impregnate_target = {
				make_pregnant = {
					father = root
					number_of_children = 1
				}
			}

			scope:host = {
				regula_sex_with_target_normal = { TARGET = scope:impregnate_target }
			}

			# Complete intent
			scope:activity = {
				scope:host = {
					complete_activity_intent = yes
				}
				add_activity_log_entry = {
					key = regula_orgy_impregnate_log
					tags = { good }
					character = root
					target = scope:impregnate_target
				}
			}

			# Gain some bonus prestige
			add_prestige = 75
		}
	}
}

regula_orgy_intent_events.4110 = {
	type = activity_event
	title = regula_orgy_intent_events.4110.t
	desc = regula_orgy_intent_events.4110.desc

	theme = regula_orgy_theme
	override_background = {
		reference = bedchamber
	}

	right_portrait = {
		character = scope:impregnate_target
		animation = love
	}

	immediate = {
		# Take of clothes!
		scope:impregnate_target = {
			add_character_flag = {
				flag = is_naked
				days = 1
			}
		}
		# Plap Plap Plap
		hidden_effect = {
			scope:impregnate_target = {
				random_list = {
					65 = {
						make_pregnant = {
							father = root
							number_of_children = 1
						}
					}
					25 = {
						make_pregnant = {
							father = root
							number_of_children = 2
						}
					}
					9 = {
						make_pregnant = {
							father = root
							number_of_children = 3
						}
					}
					1 = {
						make_pregnant = {
							father = root
							number_of_children = 4
						}
					}
				}
			}
		}

		scope:host = {
			regula_sex_with_target_normal = { TARGET = scope:impregnate_target }
		}

		# Gain some bonus piety
		add_piety = 100
	}

	option = {
		name = regula_orgy_intent_events.4110.a

		# Complete intent
		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_impregnate_log
				tags = { good }
				character = root
				target = scope:impregnate_target
			}
		}
	}
}

regula_orgy_intent_events.4120 = {
	type = activity_event
	title = regula_orgy_intent_events.4120.t
	desc = regula_orgy_intent_events.4120.desc

	theme = regula_orgy_theme
	override_background = {
		reference = feast
	}

	left_portrait = {
		character = scope:random_guest_1
		scripted_animation = {
			triggered_animation = {
				trigger = { always = yes }
				animation = { toast_goblet drink_goblet ecstasy happiness laugh admiration }
			}
		}
	}

	center_portrait = {
		character = scope:random_guest_2
		scripted_animation = {
			triggered_animation = {
				trigger = { always = yes }
				animation = { toast_goblet drink_goblet ecstasy happiness laugh admiration }
			}
		}
	}

	right_portrait = {
		character = scope:impregnate_target
		animation = love
	}

	immediate = {
		# Find some random guests to watch
		scope:activity = {
			random_attending_character = {
				limit = {
					is_female = yes
					NOT = { this = scope:impregnate_target }
				}
				save_scope_as = random_guest_1
			}
			random_attending_character = {
				limit = {
					is_female = yes
					NOT = { this = scope:impregnate_target }
					NOT = { this = scope:random_guest_1 }
				}
				save_scope_as = random_guest_2
			}
		}

		# Take of clothes!
		scope:impregnate_target = {
			add_character_flag = {
				flag = is_naked
				days = 1
			}
		}
		# Plap Plap Plap
		hidden_effect = {
			scope:impregnate_target = {
				random_list = {
					65 = {
						make_pregnant = {
							father = root
							number_of_children = 1
						}
					}
					25 = {
						make_pregnant = {
							father = root
							number_of_children = 2
						}
					}
					9 = {
						make_pregnant = {
							father = root
							number_of_children = 3
						}
					}
					1 = {
						make_pregnant = {
							father = root
							number_of_children = 4
						}
					}
				}
			}
		}

		scope:host = {
			regula_sex_with_target_normal = { TARGET = scope:impregnate_target }
		}

		# Gain some bonus prestige
		add_prestige = 75
	}

	option = {
		name = regula_orgy_intent_events.4120.a

		# Complete intent
		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_impregnate_log
				tags = { good }
				character = root
				target = scope:impregnate_target
			}
		}
	}
}

##################################################
# Beguile
##################################################
# A Subtle Change
# by Ban10
# 5000 - 5999
##################################################

# 5000 : Beguile
regula_orgy_intent_events.5000 = {
	type = activity_event
	title = regula_orgy_intent_events.5000.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:beguile_target = {
						is_regula_devoted_trigger = yes
					}
				}
				desc = regula_orgy_intent_events.5000.desc_devoted
			}
			desc = regula_orgy_intent_events.5000.desc_default
		}
	}
	theme = regula_orgy_theme
	override_background = {
		reference = council_chamber
	}

	left_portrait = {
		character = root
		animation = scheme
	}

	right_portrait = {
		character = scope:beguile_target
		scripted_animation = {
			triggered_animation = {
				trigger = {
					scope:beguile_target = {
						is_regula_devoted_trigger = yes
					}
				}
				animation = throne_room_bow_1
			}
			animation = idle
		}
	}

	trigger = {
		has_activity_intent = regula_beguile_attendee_intent
		involved_activity ?= {
			has_activity_type = activity_regula_orgy
		}
	}

	immediate = {
		scope:host.intent_target ?= {
			save_scope_as = beguile_target
		}

		# Check if our target has a daughter we can have as ward
		scope:beguile_target = {
			every_close_family_member = {
				limit = {
					is_child_of = scope:beguile_target
					is_female = yes
					age <= 16
					age >= 10	# To try and get targets that are more relevent
				}
				save_scope_as = potential_ward
			}

			# If no hit then try again but for any daughter <= 16 of target
			if = {
				limit = {
					NOT = { exists = scope:potential_ward }
				}
				every_close_family_member = {
					limit = {
						is_child_of = scope:beguile_target
						is_female = yes
						age <= 16
					}
					save_scope_as = potential_ward
				}
			}
		}

		# Grab a random title for single target yoink
		scope:beguile_target = {
			random_held_title = {
				limit = {
					scope:beguile_target = {
						NOT = { has_primary_title = prev }
					}
				}
				save_scope_as = title_to_give
			}
		}

	}

	# Gimme your land!
	option = {
		name = regula_orgy_intent_events.5000.a
		flavor = regula_orgy_intent_events.5000.a.tt

		# She has land to give
		trigger = {
			scope:beguile_target = {
				is_landed = yes
			}
		}

		duel = {
			skills = { diplomacy stewardship learning } # Use three skills for this one
			target = scope:beguile_target
			15 = {
				desc = regula_orgy_intent_events.5000.large_success
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					max = 85
				}
				show_as_tooltip = {
					scope:beguile_target = {
						create_title_and_vassal_change = {
							type = usurped
							save_scope_as = change
							add_claim_on_loss = no
						}
						every_held_title = {
							change_title_holder_include_vassals = {
								holder = scope:host
								change = scope:change
							}
						}
						resolve_title_and_vassal_change = scope:change
					}
				}
				root = {
					trigger_event = regula_orgy_intent_events.5011
				}
			}
			35 = {
				desc = regula_orgy_intent_events.5000.small_success
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					max = 15
				}
				show_as_tooltip = {
					scope:beguile_target = {
						create_title_and_vassal_change = {
							type = usurped
							save_scope_as = change
							add_claim_on_loss = no
						}
						scope:title_to_give = {
							change_title_holder_include_vassals = {
								holder = scope:host
								change = scope:change
							}
						}
						resolve_title_and_vassal_change = scope:change
					}
				}
				root = {
					trigger_event = regula_orgy_intent_events.5012
				}
			}
			50 = {
				desc = regula_orgy_intent_events.5000.failure
				compare_modifier = {
					value = scope:duel_value
					multiplier = -3.5
					min = -45
				}
				show_as_tooltip = {
					add_prestige = -75
					scope:beguile_target = {
						add_opinion = {
							target = scope:host
							modifier = respect_opinion
							opinion = -20
						}
					}
				}
				root = {
					trigger_event = regula_orgy_intent_events.5061
				}
			}
		}
	}

	# Gimme your gold!
	option = {
		name = regula_orgy_intent_events.5000.b
		flavor = regula_orgy_intent_events.5000.b.tt

		# She has gold to give
		trigger = {
			scope:beguile_target = {
				gold > 0
			}
		}

		duel = {
			skill = stewardship
			target = scope:beguile_target

			15 = {
				desc = regula_orgy_intent_events.5000.large_success
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					max = 85
				}
				show_as_tooltip = {
					scope:beguile_target = {
						pay_reserved_gold = {
							target = scope:host
							gold = scope:beguile_target.gold
						}
					}
				}
				root = {
					trigger_event = regula_orgy_intent_events.5021
				}
			}
			35 = {
				desc = regula_orgy_intent_events.5000.small_success
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					max = 15
				}
				show_as_tooltip = {
					scope:beguile_target = {
						pay_reserved_gold = {
							target = scope:host
							gold = {
								value = scope:beguile_target.gold
								multiply = 0.5
							}
						}
					}
				}
				root = {
					trigger_event = regula_orgy_intent_events.5022
				}
			}
			50 = {
				desc = regula_orgy_intent_events.5000.failure
				compare_modifier = {
					value = scope:duel_value
					multiplier = -3.5
					min = -45
				}
				show_as_tooltip = {
					add_prestige = -75
					scope:beguile_target = {
						add_opinion = {
							target = scope:host
							modifier = respect_opinion
							opinion = -20
						}
					}
				}
				root = {
					trigger_event = regula_orgy_intent_events.5061
				}
			}
		}
	}

	# Gimme your prestige
	option = {
		name = regula_orgy_intent_events.5000.c
		flavor = regula_orgy_intent_events.5000.c.tt

		# She has prestige to give
		trigger = {
			scope:beguile_target = {
				prestige > 0
			}
		}

		duel = {
			skill = diplomacy
			target = scope:beguile_target

			15 = {
				desc = regula_orgy_intent_events.5000.large_success
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					max = 85
				}
				show_as_tooltip = {
					scope:host = {
						add_prestige = scope:beguile_target.prestige
					}

					scope:beguile_target = {
						add_prestige = {
							value = 0
							subtract = scope:beguile_target.prestige
						}
					}
				}
				root = {
					trigger_event = regula_orgy_intent_events.5031
				}
			}
			35 = {
				desc = regula_orgy_intent_events.5000.small_success
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					max = 15
				}
				show_as_tooltip = {
					scope:host = {
						add_prestige = {
							value = scope:beguile_target.prestige
							multiply = 0.5
						}
					}

					scope:beguile_target = {
						add_prestige = {
							value = 0
							subtract = scope:beguile_target.prestige
							multiply = 0.5
						}
					}
				}
				root = {
					trigger_event = regula_orgy_intent_events.5032
				}
			}
			50 = {
				desc = regula_orgy_intent_events.5000.failure
				compare_modifier = {
					value = scope:duel_value
					multiplier = -3.5
					min = -45
				}
				show_as_tooltip = {
					add_prestige = -75
					scope:beguile_target = {
						add_opinion = {
							target = scope:host
							modifier = respect_opinion
							opinion = -20
						}
					}
				}
				root = {
					trigger_event = regula_orgy_intent_events.5061
				}
			}
		}
	}

	# Gimme your daughters!
	option = {
		name = regula_orgy_intent_events.5000.d
		flavor = regula_orgy_intent_events.5000.d.tt

		# She has a daughter to give
		trigger = {
			exists = scope:potential_ward
		}

		duel = {
			skill = diplomacy
			target = scope:beguile_target

			15 = {
				desc = regula_orgy_intent_events.5000.large_success
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					max = 85
				}
				show_as_tooltip = {
					scope:beguile_target = {
						every_close_family_member = {
							limit = {
								is_child_of = scope:beguile_target
								is_female = yes
							}
							scope:host = {
								add_courtier = prev
							}
						}
					}
				}
				root = {
					trigger_event = regula_orgy_intent_events.5041
				}
			}
			35 = {
				desc = regula_orgy_intent_events.5000.small_success
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					max = 15
				}
				show_as_tooltip = {
					scope:host = {
						add_courtier = scope:potential_ward
					}
				}
				root = {
					trigger_event = regula_orgy_intent_events.5042
				}
			}
			50 = {
				desc = regula_orgy_intent_events.5000.failure
				compare_modifier = {
					value = scope:duel_value
					multiplier = -3.5
					min = -45
				}
				show_as_tooltip = {
					add_prestige = -75
					scope:beguile_target = {
						add_opinion = {
							target = scope:host
							modifier = respect_opinion
							opinion = -20
						}
					}
				}
				root = {
					trigger_event = regula_orgy_intent_events.5061
				}
			}
		}
	}

	# Gimme your secrets!
	option = {
		name = regula_orgy_intent_events.5000.e
		flavor = regula_orgy_intent_events.5000.e.tt

		trigger = {
			scope:beguile_target = {
				any_secret = {
					NOT = { is_known_by = scope:host }
					NOT = { secret_owner = scope:host }
				}
			}
		}

		duel = {
			skill = intrigue
			target = scope:beguile_target
			50 = {
				desc = regula_orgy_intent_events.5000.large_success
				compare_modifier = {
					value = scope:duel_value
					multiplier = 3.5
					max = 45
				}

				root = {
					trigger_event = regula_orgy_intent_events.5051
				}
			}
			50 = {
				desc = regula_orgy_intent_events.5000.failure
				compare_modifier = {
					value = scope:duel_value
					multiplier = -3.5
					min = -45
				}
				show_as_tooltip = {
					add_prestige = -75
					scope:beguile_target = {
						add_opinion = {
							target = scope:host
							modifier = respect_opinion
							opinion = -20
						}
					}
				}
				root = {
					trigger_event = regula_orgy_intent_events.5061
				}
			}
		}
	}

	# Nevermind...
	option = {
		name = regula_orgy_intent_events.5000.f
		flavor = regula_orgy_intent_events.5000.f.tt

		# Consolation prize
		add_prestige = 25

		scope:beguile_target = {
			add_opinion = {
				modifier = friendliness_opinion
				target = root
				opinion = 10
			}
		}
	}
}

## 5011 - Make her sign away her titles to you
regula_orgy_intent_events.5011 = {
	type = activity_event
	title = regula_orgy_intent_events.5011.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:beguile_target = { has_trait = devoted_trait_group }
				}
				desc = regula_orgy_intent_events.5011.desc_devoted
			}
			desc = regula_orgy_intent_events.5011.desc_default
		}
	}
	theme = regula_orgy_theme
	override_background = {
		reference = council_chamber
	}

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:beguile_target
		animation = personality_zealous
	}

	# Yoink her land
	option = {
		name = regula_orgy_intent_events.5011.a

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_beguile_log
				tags = { good }
				character = root
				target = scope:beguile_target
			}
		}

		scope:beguile_target = {
			create_title_and_vassal_change = {
				type = usurped
				save_scope_as = change
				add_claim_on_loss = no
			}
			every_held_title = {
				change_title_holder_include_vassals = {
					holder = scope:host
					change = scope:change
				}
			}
			resolve_title_and_vassal_change = scope:change
		}

	}
}

## 5012 - Make her sign away a random title to you (not primary)
regula_orgy_intent_events.5012 = {
	type = activity_event
	title = regula_orgy_intent_events.5012.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:beguile_target = { has_trait = devoted_trait_group }
				}
				desc = regula_orgy_intent_events.5012.desc_devoted
			}
			desc = regula_orgy_intent_events.5012.desc_default
		}
	}
	theme = regula_orgy_theme
	override_background = {
		reference = council_chamber
	}

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:beguile_target
		animation = idle
	}

	# Yoink her land
	option = {
		name = regula_orgy_intent_events.5012.a

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_beguile_log
				tags = { good }
				character = root
				target = scope:beguile_target
			}
		}

		scope:beguile_target = {
			create_title_and_vassal_change = {
				type = usurped
				save_scope_as = change
				add_claim_on_loss = no
			}
			scope:title_to_give = {
				change_title_holder_include_vassals = {
					holder = scope:host
					change = scope:change
				}
			}
			resolve_title_and_vassal_change = scope:change
		}
	}
}

## 5021 - Take her gold
regula_orgy_intent_events.5021 = {
	type = activity_event
	title = regula_orgy_intent_events.5021.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:beguile_target = { has_trait = devoted_trait_group }
				}
				desc = regula_orgy_intent_events.5021.desc_devoted
			}
			desc = regula_orgy_intent_events.5021.desc_default
		}
	}
	theme = regula_orgy_theme
	override_background = {
		reference = council_chamber
	}

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:beguile_target
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = personality_zealous
	}

	# Yoink her gold
	option = {
		name = regula_orgy_intent_events.5021.a

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_beguile_log
				tags = { good }
				character = root
				target = scope:beguile_target
			}
		}

		scope:beguile_target = {
			pay_reserved_gold = {
				target = scope:host
				gold = scope:beguile_target.gold
			}
		}
	}

	# Take her clothes as well!
	option = {
		name = regula_orgy_intent_events.5021.b

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_beguile_log
				tags = { good }
				character = root
				target = scope:beguile_target
			}
		}

		scope:host = {
			add_gold = minor_gold_value # "Clothing" gold
		}

		scope:beguile_target = {
			pay_reserved_gold = {
				target = scope:host
				gold = scope:beguile_target.gold
			}

			# Even her clothing!
			add_character_modifier = {
				modifier = diplomacy_majesty_4090_no_raiment_modifier
				years = 5
			}
		}
	}
}

## 5022 - Take half of her gold
regula_orgy_intent_events.5022 = {
	type = activity_event
	title = regula_orgy_intent_events.5022.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:beguile_target = { has_trait = devoted_trait_group }
				}
				desc = regula_orgy_intent_events.5022.desc_devoted
			}
			desc = regula_orgy_intent_events.5022.desc_default
		}
	}
	theme = regula_orgy_theme
	override_background = {
		reference = council_chamber
	}

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:beguile_target
		animation = idle
	}

	# Yoink some of her gold
	option = {
		name = regula_orgy_intent_events.5022.a

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_beguile_log
				tags = { good }
				character = root
				target = scope:beguile_target
			}
		}

		scope:beguile_target = {
			pay_reserved_gold = {
				target = scope:host
				gold = {
					value = scope:beguile_target.gold
					multiply = 0.5
				}
			}
		}
	}
}

## 5031 - Make her praise you
regula_orgy_intent_events.5031 = {
	type = activity_event
	title = regula_orgy_intent_events.5031.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:beguile_target = { has_trait = devoted_trait_group }
				}
				desc = regula_orgy_intent_events.5031.desc_devoted
			}
			desc = regula_orgy_intent_events.5031.desc_default
		}
	}
	theme = regula_orgy_theme
	override_background = {
		reference = council_chamber
	}

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:beguile_target
		animation = personality_zealous
	}

	# Yoink her prestige
	option = {
		name = regula_orgy_intent_events.5031.a

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_beguile_log
				tags = { good }
				character = root
				target = scope:beguile_target
			}
		}

		scope:host = {
			add_prestige = scope:beguile_target.prestige
		}

		scope:beguile_target = {
			add_prestige = {
				value = 0
				subtract = scope:beguile_target.prestige
			}
		}
	}
}

## 5032 - Make her praise you, minor success
regula_orgy_intent_events.5032 = {
	type = activity_event
	title = regula_orgy_intent_events.5032.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:beguile_target = { has_trait = devoted_trait_group }
				}
				desc = regula_orgy_intent_events.5032.desc_devoted
			}
			desc = regula_orgy_intent_events.5032.desc_default
		}
	}
	theme = regula_orgy_theme
	override_background = {
		reference = council_chamber
	}

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:beguile_target
		animation = idle
	}

	# Yoink her prestige
	option = {
		name = regula_orgy_intent_events.5031.a

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_beguile_log
				tags = { good }
				character = root
				target = scope:beguile_target
			}
		}

		scope:host = {
			add_prestige = {
				value = scope:beguile_target.prestige
				multiply = 0.5
			}
		}

		scope:beguile_target = {
			add_prestige = {
				value = 0
				subtract = scope:beguile_target.prestige
				multiply = 0.5
			}
		}
	}
}

## 5041 - Make her give all of her daughters (to your court)
regula_orgy_intent_events.5041 = {
	type = activity_event
	title = regula_orgy_intent_events.5041.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:beguile_target = { has_trait = devoted_trait_group }
				}
				desc = regula_orgy_intent_events.5041.desc_devoted
			}
			desc = regula_orgy_intent_events.5041.desc_default
		}
	}
	theme = regula_orgy_theme
	override_background = {
		reference = council_chamber
	}

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:beguile_target
		animation = personality_zealous
	}

	# Yoink her daughters
	option = {
		name = regula_orgy_intent_events.5041.a

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_beguile_log
				tags = { good }
				character = root
				target = scope:beguile_target
			}
		}

		scope:beguile_target = {
			every_close_family_member = {
				limit = {
					is_child_of = scope:beguile_target
					is_female = yes
				}
				scope:host = {
					add_courtier = prev
				}
			}
		}
	}
}

## 5042 - Make her give one of her daughters to you
regula_orgy_intent_events.5042 = {
	type = activity_event
	title = regula_orgy_intent_events.5041.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:beguile_target = { has_trait = devoted_trait_group }
				}
				desc = regula_orgy_intent_events.5041.desc_devoted
			}
			desc = regula_orgy_intent_events.5041.desc_default
		}
	}
	theme = regula_orgy_theme
	override_background = {
		reference = council_chamber
	}

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:beguile_target
		animation = idle
	}

	# Yoink her daughter
	option = {
		name = regula_orgy_intent_events.5041.a

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_beguile_log
				tags = { good }
				character = root
				target = scope:beguile_target
			}
		}

		scope:host = {
			add_courtier = scope:potential_ward
		}
	}
}

## 5051 - Make her tell you the secrets she knows (including her own)
regula_orgy_intent_events.5051 = {
	type = activity_event
	title = regula_orgy_intent_events.5051.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:beguile_target = { has_trait = devoted_trait_group }
				}
				desc = regula_orgy_intent_events.5051.desc_devoted
			}
			desc = regula_orgy_intent_events.5051.desc_default
		}
	}
	theme = regula_orgy_theme
	override_background = {
		reference = council_chamber
	}

	left_portrait = {
		character = root
		animation = happiness
	}

	right_portrait = {
		character = scope:beguile_target
		animation = personality_zealous
	}

	# Yoink her secrets
	option = {
		name = regula_orgy_intent_events.5051.a

		scope:activity = {
			scope:host = {
				complete_activity_intent = yes
			}
			add_activity_log_entry = {
				key = regula_orgy_beguile_log
				tags = { good }
				character = root
				target = scope:beguile_target
			}
		}

		scope:beguile_target = {
			every_known_secret = {
				limit = {
					NOT = { is_known_by = scope:host }
					NOT = { secret_owner = scope:host }
				}
				reveal_to = scope:host
			}
		}
	}
}

## 5061 - Failure
regula_orgy_intent_events.5061 = {
	type = activity_event
	title = regula_orgy_intent_events.5061.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					scope:beguile_target = { has_trait = devoted_trait_group }
				}
				desc = regula_orgy_intent_events.5061.desc_devoted
			}
			desc = regula_orgy_intent_events.5061.desc_default
		}
	}
	theme = regula_orgy_theme
	override_background = {
		reference = council_chamber
	}

	left_portrait = {
		character = scope:host
		animation = shock
	}

	right_portrait = {
		character = scope:beguile_target
		scripted_animation = {
			triggered_animation = {
				trigger = {
					has_trait = devoted_trait_group
				}
				animation = grief
			}
		}
		animation = rage
	}

	#  Drat!
	option = {
		name = regula_orgy_intent_events.5061.a

		add_prestige = -75

		scope:beguile_target = {
			add_opinion = {
				target = scope:host
				modifier = respect_opinion
				opinion = -20
			}
		}
	}
}

##################################################
# Recruit
##################################################
# New Devoted
# by Ban10
# 5000 - 5999
##################################################

# 6000 : Recruit
# Can use this to weight certain events or have triggers etc
regula_orgy_intent_events.6000 = {
	type = activity_event
	hidden = yes

	trigger = {
		has_activity_intent = regula_recruit_intent
		involved_activity ?= {
			has_activity_type = activity_regula_orgy
		}
	}

	immediate = {
		scope:activity = {
			activity_host = {
				# Increment our recruitment number by one
				increment_orgy_recruitment_variable = yes
				trigger_event = { on_action = orgy_recruit_event_selection}
			}
		}
	}
}

# 6001 - Recruit a Beautiful Priestess
regula_orgy_intent_events.6001 = {
	type = activity_event
	title = regula_orgy_intent_events.6001.t
	desc = regula_orgy_intent_events.6001.desc
	theme = regula_orgy_theme
	override_background = {
		reference = garden
	}

	left_portrait = {
		character = scope:host
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = happiness
	}
	right_portrait = {
		character = scope:recruit
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = admiration
	}

	cooldown = { years = 5 }

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			scope:host = {
				has_lifestyle = learning_lifestyle
			}
		}
	}

	immediate = {
		create_character = {
			save_scope_as = recruit
			location = scope:host.location
			culture = scope:host.culture
			faith = scope:host.faith
			template = regula_orgy_beautiful_priestess_character
		}
	}

	after = {
		hidden_effect = {
 			scope:activity = {
				add_activity_log_entry = {
					key = regula_orgy_recruit_log
					tags = { good }
					score = 25
					character = root
					target = scope:recruit
				}
			}
		}
	}

	# Recruit her, gain some piety
	option = {
		name = regula_orgy_intent_events.6001.a

		# Standard recruit effects
		regula_orgy_recruit_effect = yes

		# Bonus
		add_piety = medium_piety_gain
	}
}

# 6002 - Recruit an Intelligent Servant
regula_orgy_intent_events.6002 = {
	type = activity_event
	title = regula_orgy_intent_events.6002.t
	desc = regula_orgy_intent_events.6002.desc
	theme = regula_orgy_theme
	override_background = {
		reference = council_chamber
	}

	left_portrait = {
		character = scope:host
		animation = happiness
	}
	right_portrait = {
		character = scope:recruit
		animation = personality_rational
	}

	cooldown = { years = 5 }

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			scope:host = {
				has_lifestyle = stewardship_lifestyle
			}
		}
	}

	immediate = {
		create_character = {
			location = scope:host.location
			culture = scope:host.culture
			faith = scope:host.faith
			template = regula_orgy_intelligent_servant_character
			save_scope_as = recruit
		}
	}

	after = {
		hidden_effect = {
 			scope:activity = {
				add_activity_log_entry = {
					key = regula_orgy_recruit_log
					tags = { good }
					score = 25
					character = root
					target = scope:recruit
				}
			}
		}
	}

	# Recruit her, gain some gold
	option = {
		name = regula_orgy_intent_events.6002.a

		# Standard recruit effects
		regula_orgy_recruit_effect = yes

		# Bonus
		add_gold = tiny_gold_max_value
	}
}

# 6003 - Recruit a Stoic/Virgo Guard
regula_orgy_intent_events.6003 = {
	type = activity_event
	title = regula_orgy_intent_events.6003.t
	desc = {
		first_valid = {
			triggered_desc = {
				trigger = {
					number_maa_regiments_of_type = {
						target = virgo
						value >= 1
					}
				}
				desc = regula_orgy_intent_events.6003.desc_virgo
			}
			desc = regula_orgy_intent_events.6003.desc_default
		}
	}
	theme = regula_orgy_theme
	override_background = {
		reference = corridor_day
	}

	left_portrait = {
		character = root
		animation = happiness
	}
	right_portrait = {
		character = scope:recruit
		animation = personality_bold
	}

	cooldown = { years = 5 }

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			scope:host = {
				has_lifestyle = martial_lifestyle
			}
		}
	}

	immediate = {
		# Do we have virgo guards?
		if = {
			limit = {
				number_maa_regiments_of_type = {
					target = virgo
					value >= 1
				}
			}
			create_character = {
				save_scope_as = recruit
				location = scope:host.location
				culture = scope:host.culture
				faith = scope:host.faith
				template = regula_orgy_virgo_guard_character
			}
		}
		else = {
			create_character = {
				save_scope_as = recruit
				location = scope:host.location
				culture = scope:host.culture
				faith = scope:host.faith
				template = regula_orgy_stoic_guard_character
			}
		}

		scope:recruit = {
			add_character_flag = wear_armor
		}


	}

	after = {
		hidden_effect = {
 			scope:activity = {
				add_activity_log_entry = {
					key = regula_orgy_recruit_log
					tags = { good }
					score = 25
					character = root
					target = scope:recruit
				}
			}
		}

		scope:recruit = {
			remove_character_flag = wear_armor
		}
	}

	# Recruit her, gain extra prestige
	option = {
		name = regula_orgy_intent_events.6003.a

		# Standard recruit effects
		regula_orgy_recruit_effect = yes

		# Bonus
		add_prestige = medium_prestige_gain
	}
}

# 6004 - Recruit a Gossiping Girl
regula_orgy_intent_events.6004 = {
	type = activity_event
	title = regula_orgy_intent_events.6004.t
	desc = regula_orgy_intent_events.6004.desc
	theme = regula_orgy_theme
	override_background = {
		reference = sitting_room
	}

	left_portrait = {
		character = scope:host
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = eyeroll
	}
	right_portrait = {
		character = scope:recruit
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = admiration
	}

	cooldown = { years = 5 }

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			scope:host = {
				has_lifestyle = intrigue_lifestyle
			}
		}
	}

	immediate = {
		create_character = {
			save_scope_as = recruit
			location = scope:host.location
			culture = scope:host.culture
			faith = scope:host.faith
			template = regula_orgy_gossiping_servant_character
		}
	}

	after = {
		hidden_effect = {
 			scope:activity = {
				add_activity_log_entry = {
					key = regula_orgy_recruit_log
					tags = { good }
					score = 25
					character = root
					target = scope:recruit
				}
			}
		}
	}

	# Recruit her, gain some prestige
	option = {
		name = regula_orgy_intent_events.6004.a

		# Standard recruit effects
		regula_orgy_recruit_effect = yes

		# Bonus
		add_prestige = medium_prestige_gain
	}
}

# 6005 - Recruit an Enchanting Singer
regula_orgy_intent_events.6005 = {
	type = activity_event
	title = regula_orgy_intent_events.6005.t
	desc = regula_orgy_intent_events.6005.desc
	theme = regula_orgy_theme
	override_background = {
		reference = garden
	}

	left_portrait = {
		character = scope:host
		animation = happiness
	}
	right_portrait = {
		character = scope:recruit
		animation = admiration
	}

	cooldown = { years = 5 }

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			scope:host = {
				has_lifestyle = diplomacy_lifestyle
			}
		}
	}

	immediate = {
		# Singing!
		play_music_cue = regula_orgy_cue

		create_character = {
			save_scope_as = recruit
			location = scope:host.location
			culture = scope:host.culture
			faith = scope:host.faith
			template = regula_orgy_enchanting_singer_character
		}
	}

	after = {
		hidden_effect = {
 			scope:activity = {
				add_activity_log_entry = {
					key = regula_orgy_recruit_log
					tags = { good }
					score = 25
					character = root
					target = scope:recruit
				}
			}
		}
	}

	# Recruit her, gain some piety
	option = {
		name = regula_orgy_intent_events.6005.a

		# Standard recruit effects
		regula_orgy_recruit_effect = yes

		# Bonus
		add_piety = medium_piety_gain
	}
}

# 6006 - Recruit A Shy Smithy
regula_orgy_intent_events.6006 = {
	type = activity_event
	title = regula_orgy_intent_events.6006.t
	desc = {
		desc = regula_orgy_intent_events.6006.intro
		first_valid = {
			triggered_desc = {
				trigger = { has_trait = patient }
				desc = regula_orgy_intent_events.6006.patient_magister
			}
			triggered_desc = {
				trigger = { has_trait = impatient }
				desc = regula_orgy_intent_events.6006.impatient_magister
			}
			desc = regula_orgy_intent_events.6006.default_magister
		}
		desc = regula_orgy_intent_events.6006.intro_2
	}
	theme = regula_orgy_theme
	override_background = {
		reference = regula_bedchamber
	}

	left_portrait = {
		character = scope:host
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = happiness
	}
	right_portrait = {
		character = scope:recruit
		animation = personality_coward
	}

	cooldown = { years = 5 }

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			scope:host = {
				has_lifestyle = stewardship_lifestyle
			}
		}
	}

	immediate = {
		create_character = {
			save_scope_as = recruit
			location = scope:host.location
			culture = scope:host.culture
			faith = scope:host.faith
			template = regula_orgy_shy_smithy_character
		}
	}

	after = {
		hidden_effect = {
 			scope:activity = {
				add_activity_log_entry = {
					key = regula_orgy_recruit_log
					tags = { good }
					score = 25
					character = root
					target = scope:recruit
				}
			}
		}
	}

	# Recruit her, she gains inspiration
	option = {
		name = regula_orgy_intent_events.6006.a

		# Standard recruit effects
		regula_orgy_recruit_effect = yes

		# Bonus
		# Random inspiration, excluding adventure
		scope:recruit = {
			random_list = {
				1 = {
					create_inspiration = book_inspiration
					custom_tooltip = inspire_interaction_book
				}
				1 = {
					create_inspiration = weaver_inspiration
					custom_tooltip = inspire_interaction_weaver
				}
				1 = {
					create_inspiration = artisan_inspiration
					custom_tooltip = inspire_interaction_artisan
				}
				1 = {
					create_inspiration = smith_inspiration
					custom_tooltip = inspire_interaction_smith
				}
				1 = {
					create_inspiration = alchemy_inspiration
					custom_tooltip = inspire_interaction_alchemy
				}
				1 = {
					create_inspiration = armor_inspiration
					custom_tooltip = inspire_interaction_armor
				}
				1 = {
					create_inspiration = weapon_inspiration
					custom_tooltip = inspire_interaction_weapon
				}
			}
		}
	}
}

# 6007 - Recruit Patient Baker
regula_orgy_intent_events.6007 = {
	type = activity_event
	title = regula_orgy_intent_events.6007.t
	desc = regula_orgy_intent_events.6007.desc
	theme = regula_orgy_theme
	override_background = {
		reference = bp1_kitchen_western
	}

	left_portrait = {
		character = scope:host
		animation = happiness
	}
	right_portrait = {
		character = scope:recruit
		animation = admiration
	}

	cooldown = { years = 5 }

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			scope:host = {
				has_lifestyle = stewardship_lifestyle
			}
		}
	}

	immediate = {
		create_character = {
			save_scope_as = recruit
			location = scope:host.location
			culture = scope:host.culture
			faith = scope:host.faith
			template = regula_orgy_patient_baker_character
		}
	}

	after = {
		hidden_effect = {
 			scope:activity = {
				add_activity_log_entry = {
					key = regula_orgy_recruit_log
					tags = { good }
					score = 25
					character = root
					target = scope:recruit
				}
			}
		}
	}

	# Recruit her
	option = {
		name = regula_orgy_intent_events.6007.a
		
		# Standard recruit effects
		regula_orgy_recruit_effect = yes

		# Bonus
	}
}

# 6008 - Recruit Foreign Squire
regula_orgy_intent_events.6008 = {
	type = activity_event
	title = regula_orgy_intent_events.6008.t
	desc = regula_orgy_intent_events.6008.desc
	theme = regula_orgy_theme
	override_background = {
		reference = study
	}

	left_portrait = {
		character = scope:host
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = happiness
	}
	right_portrait = {
		character = scope:recruit
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = admiration
	}

	cooldown = { years = 5 }

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			scope:host = {
				has_lifestyle = martial_lifestyle
			}
		}
	}

	immediate = {
		create_character = {
			save_scope_as = recruit
			location = scope:host.location
			culture = scope:host.culture
			faith = scope:host.faith
			template = regula_orgy_beautiful_priestess_character
		}
	}

	after = {
		hidden_effect = {
 			scope:activity = {
				add_activity_log_entry = {
					key = regula_orgy_recruit_log
					tags = { good }
					score = 25
					character = root
					target = scope:recruit
				}
			}
		}
	}

	# Recruit her, gain some dynasty prestige
	option = {
		name = regula_orgy_intent_events.6008.a

		# Standard recruit effects
		regula_orgy_recruit_effect = yes

		# Bonus
		dynasty ?= {
			add_dynasty_prestige = medium_prestige_gain
		}
	}
}

# 6009 - Recruit Child of the Book
regula_orgy_intent_events.6009 = {
	type = activity_event
	title = regula_orgy_intent_events.6009.t
	desc = regula_orgy_intent_events.6009.desc
	theme = regula_orgy_theme
	override_background = {
		reference = regula_bedchamber
	}

	left_portrait = {
		character = scope:host
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = happiness
	}
	right_portrait = {
		character = scope:recruit
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = personality_zealous
	}

	cooldown = { years = 5 }

	# The more kids you have, the more likely this event will trigger
	# At 50 kids, this event is pretty much guarenteed next time you recruit at Orgy
	weight_multiplier = {
		base = 1
		modifier = {
			add = 4
			scope:host = {
				regula_num_children >= 20
			}
		}
		modifier = {
			add = 5
			scope:host = {
				regula_num_children >= 30
			}
		}
		modifier = {
			add = 5
			scope:host = {
				regula_num_children >= 40
			}
		}
		modifier = {
			add = 1000
			scope:host = {
				regula_num_children >= 50
			}
		}
	}

	# You only get one "free" Child of the book via Orgy Recruitment!
	trigger = {
		NOT = { child_of_book_exists_in_regula_faith = yes }
		regula_num_children >= 10
	}

	immediate = {
		set_variable = {
			name = childNumber
			value = regula_num_children
		}

		# Check our kids, building a list of unique mothers
		every_child = {
			mother = {
				if = {
					limit = {
						NOT = {
							any_in_list = {
								list = mothers
								this = prev
							}
						}
					}
					add_to_temporary_list = mothers
				}
			}
		}

		set_variable = {
			name = motherNumber
			value = {
				every_in_list = {
					list = mothers
					add = 1
				}
			}
		}

		create_character = {
			save_scope_as = recruit
			location = scope:host.location
			culture = scope:host.culture
			faith = scope:host.faith
			template = regula_orgy_child_of_the_book_character
		}
	}

	after = {
		hidden_effect = {
 			scope:activity = {
				add_activity_log_entry = {
					key = regula_orgy_recruit_log
					tags = { good }
					score = 25
					character = root
					target = scope:recruit
				}
			}
		}
	}

	# Recruit her
	option = {
		name = regula_orgy_intent_events.6009.a

		# Standard recruit effects
		regula_orgy_recruit_effect = yes

		# Bonus
		dynasty ?= {
			add_dynasty_prestige = major_prestige_gain
		}
		add_prestige = major_prestige_gain
		add_piety = major_piety_gain
	}
}

# 6010 - Recruit Servant Girls
regula_orgy_intent_events.6010 = {
	type = activity_event
	title = regula_orgy_intent_events.6010.t
	desc = regula_orgy_intent_events.6010.desc
	theme = regula_orgy_theme
	override_background = {
		reference = garden
	}

	left_portrait = {
		character = scope:host
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = happiness
	}
	right_portrait = {
		character = scope:recruit
		outfit_tags = { no_cloak no_hat no_pants no_clothes }
		animation = admiration
	}

	cooldown = { years = 5 }

	weight_multiplier = {
		base = 1
		modifier = {
			add = 2
			scope:host = {
				has_lifestyle = diplomacy_lifestyle
			}
		}
	}

	immediate = {
		create_character = {
			save_scope_as = recruit
			location = scope:host.location
			culture = scope:host.culture
			faith = scope:host.faith
			template = regula_orgy_beautiful_priestess_character
		}
	}

	after = {
		hidden_effect = {
 			scope:activity = {
				add_activity_log_entry = {
					key = regula_orgy_recruit_log
					tags = { good }
					score = 25
					character = root
					target = scope:recruit
				}
			}
		}
	}

	# Recruit them
	option = {
		name = regula_orgy_intent_events.6010.a
		# Standard recruit effects
		regula_orgy_recruit_effect = yes

		# Bonus
		# WIP
	}
}
