﻿### Regula Activity Triggers
# Intent triggers

# Can we target this character to be charmed?
is_valid_charm_target = {
	is_alive = yes
	is_female = yes
	is_adult = yes
	is_healthy = yes
	is_ai = yes
	NOT = { has_trait = devoted_trait_group }
}

is_valid_impregnate_target = {
	is_adult = yes
	is_ai = yes
	is_female = yes
	is_pregnant = no
	is_visibly_fertile = yes
}

# Does this women not mind a bit of rough lovin'?
regula_impregnate_prowess_bonus_event_trigger = {
	AND = {
		# Do we like the Magister
		# Or do we have lustful traits?
		OR = {
			has_relation_lover = scope:host
			has_relation_soulmate = scope:host
			opinion = {
				target = scope:host
				value >= 50
			}

			has_trait = lustful
			has_trait = deviant
			has_trait = rakish
		}
		# Are we likely to cheat on partner (or are we married to Magister?)
		trigger_if = {
			limit = {
				exists = primary_spouse
			}
			OR = {
				is_consort_of = scope:host
				AND = {
					NOT = { is_consort_of = scope:host }
					scope:impregnate_target = {
						might_cheat_on_partner_trigger = { PARTNER = scope:impregnate_target.primary_spouse }
					}
				}
			}
		}
	}
}

# Can we recruit a child of the book?
# If we already have one then we cant get one from this recruit event
# Not sure the best way to check for this, so for now we check all characters in magisters faith
child_of_book_exists_in_regula_faith = {
	faith = {
		any_faith_character = {
			has_trait = regula_child_of_the_book
		}
	}
}

# A female guest who would sleep with us
is_any_guest_lay_target = {
	is_female = yes
	is_adult = yes
	is_visibly_fertile = yes
	opinion = {
		target = scope:host
		value >= 50
	}
}