﻿# Regula Intents

## Ritual intent is about peforming the best possible Regula Ritual
regula_ritual_intent = {
	icon = ritual_intent

	is_shown = {
		has_dlc_feature = advanced_activities
		has_trait = magister_trait_group
	}

	auto_complete = yes

	is_valid = { is_adult = yes }

	on_invalidated = {
		trigger_event = activity_system.0090
	}

	ai_will_do = 0

	scripted_animation = {
		animation = thinking
	}
}

regula_heal_intent = {
	icon = heal_intent

	is_shown = {
		has_dlc_feature = advanced_activities
		has_trait = magister_trait_group
	}

	auto_complete = yes

	is_valid = {
		is_adult = yes

		custom_tooltip = {
			text = orgy_heal_intent_limit
			trigger_if = {
				limit = {
					involved_activity ?= { has_activity_type = activity_regula_orgy }
				}
				NOT = { has_completed_activity_intent = regula_heal_intent }
			}
		}
	}

	on_invalidated = {
		trigger_event = activity_system.0090
	}

	ai_will_do = 0

	scripted_animation = {
		animation = severelywounded
	}
}

## Charm intent is about charming a character at an activity
regula_charm_attendee_intent = {
	icon = charm_intent

	is_shown = {
		has_dlc_feature = advanced_activities
		has_trait = magister_trait_group
	}

	is_valid = { is_adult = yes }

	on_invalidated = {
		trigger_event = activity_system.0090
	}

	# Handle target character invalidation
	is_target_valid = {
		scope:target = {
			is_valid_charm_target = yes
		}
	}

	on_target_invalidated = {
		trigger_event = activity_system.0091
	}

	ai_will_do = 0
	ai_target_score = 0
	ai_targets = {
		ai_recipients = activity_guests
	}

	scripted_animation = {
		animation = chaplain
	}
}

## Impregnate intent is about trying to get a character pregnant (through regula magic)
regula_impregnate_attendee_intent = {
	icon = impregnate_intent

	is_shown = {
		has_dlc_feature = advanced_activities
		has_trait = magister_trait_group
	}

	is_valid = { is_adult = yes }

	on_invalidated = {
		trigger_event = activity_system.0090
	}

	# Handle target character invalidation
	is_target_valid = {
		scope:target ?= {
			is_valid_impregnate_target = yes
		}
	}

	on_target_invalidated = {
		trigger_event = activity_system.0091
	}

	ai_will_do = 0
	ai_target_score = 0
	ai_targets = {
		ai_recipients = activity_guests
	}

	scripted_animation = {
		animation = flirtation
	}
}

## Beguile intent is about trying to get stuff out of a character through charm magic
## Eg, claims on their domain, their gold/prestige, ward of their daughters etc
regula_beguile_attendee_intent = {
	icon = beguile_intent

	is_shown = {
		has_dlc_feature = advanced_activities
		has_trait = magister_trait_group
	}

	is_valid = { is_adult = yes }

	on_invalidated = {
		trigger_event = activity_system.0090
	}

	# Handle target character invalidation
	is_target_valid = {
		scope:target = {
			is_adult = yes
			is_ai = yes
			is_female = yes
		}
	}

	on_target_invalidated = {
		trigger_event = activity_system.0091
	}

	ai_will_do = 0
	ai_target_score = 0
	ai_targets = {
		ai_recipients = activity_guests
	}

	scripted_animation = {
		animation = scheme
	}
}

## Recruit intent is about trying to find more women to get as courtiers/wives
regula_recruit_intent = {
	icon = recruit_intent

	is_shown = {
		has_dlc_feature = advanced_activities
		has_trait = magister_trait_group
	}

	auto_complete = yes

	is_valid = {
		is_adult = yes

		custom_tooltip = {
			text = orgy_recruit_intent_limit
			trigger_if = {
				limit = {
					involved_activity ?= { has_activity_type = activity_regula_orgy }
					exists = var:orgy_recruit_number
				}
				var:orgy_recruit_number < 3
			}
		}
	}

	on_invalidated = {
		trigger_event = activity_system.0090
	}

	ai_will_do = 0

	scripted_animation = {
		animation = personality_compassionate
	}
}
