﻿namespace = holy_stuff_legenda_aurea_event

##################################################
# Legenda Aurea Event
##################################################

holy_stuff_legenda_aurea_event.0001 = {
	type = character_event
      cooldown = { years = 15 }
	title = holy_stuff_legenda_aurea_event.0001.t
	desc = holy_stuff_legenda_aurea_event.0001.desc
	theme = realm
	left_portrait = {
		character = root
		animation = happiness
	}
	right_portrait = {
		character = scope:foreign_merchant
		animation = admiration
	}

	trigger = {
		legenda_aurea_event_trigger = yes
	}

	immediate = {
            holy_stuff_golden_legend_scripted_effect = yes
		create_character = {
			template = foreign_merchant_template
			location = scope:legenda_aurea_target.capital_province
			save_scope_as = foreign_merchant
		}
		play_music_cue = "mx_cue_in_taberna_instrumental"
	}

	option = {
		name = holy_stuff_legenda_aurea_event.0001.a

		stress_impact = {
			cynical = minor_stress_impact_gain
			greedy = minor_stress_impact_gain
			zealous = minor_stress_impact_loss
		}
		root = {
			save_scope_as = legenda_aurea_target
                  create_artifact_golden_legend_effect = { OWNER = this }
			remove_short_term_gold = legenda_aurea_gold_value
		}
	}

	option = {
		name = holy_stuff_legenda_aurea_event.0001.b

		stress_impact = {
			cynical = minor_stress_impact_loss
			zealous = minor_stress_impact_gain
		}
	}

	after = {
		scope:foreign_merchant = { silent_disappearance_effect = yes }
	}
}