﻿namespace = holy_stuff_ursulas_virgins_event

##################################################
# Ursulas Virgins Event
##################################################

holy_stuff_ursulas_virgins_event.0001 = {
	type = character_event
	title = holy_stuff_ursulas_virgins_event.0001.t
	desc = holy_stuff_ursulas_virgins_event.0001.desc
	theme = realm
	left_portrait = {
		character = root
		animation = personality_zealous
	}
	right_portrait = {
		character = scope:realm_priest
		animation = personality_zealous
	}

	trigger = {
		ursulas_virgins_event_trigger = yes
		NOT = {
			has_global_variable = ursulas_virgins
		}
	}

	immediate = {
		cp:councillor_court_chaplain = {
			save_scope_as = realm_priest
		}
		play_music_cue = "mx_cue_epic_sacral_moment"
		set_global_variable = {
			name = ursulas_virgins
		}
	}

	option = {
		name = holy_stuff_ursulas_virgins_event.0001.a

		stress_impact = {
			cynical = minor_stress_impact_gain
			relic_collector = minor_stress_impact_loss
			zealous = minor_stress_impact_loss
		}
		title:c_cologne = {
			save_scope_as = cologne
		}
		holy_stuff_ursulas_virgins_scripted_effect = yes
		root = {
			remove_short_term_gold = ursulas_virgins_gold_value
		}
		trigger_event = {
			id = holy_stuff_ursulas_virgins_event.0002
		}
	}

	option = {
		name = holy_stuff_ursulas_virgins_event.0001.b

		stress_impact = {
			cynical = minor_stress_impact_loss
			relic_collector = minor_stress_impact_gain
			zealous = minor_stress_impact_gain
		}
	}
}

holy_stuff_ursulas_virgins_event.0002 = {
	type = character_event
	hidden = yes

	trigger = {
		ursulas_virgins_event_trigger = yes
	}

	immediate = {
		root = {
			create_artifact_bones_of_a_martyr_virgin_effect = { OWNER = this }
		}
		trigger_event = {
			id = holy_stuff_ursulas_virgins_event.0002
			years = { 15 20 }
		}
	}
}