﻿namespace = holy_stuff_relic_merchant_event

##################################################
# Relic Merchant Event
##################################################

holy_stuff_relic_merchant_event.0001 = {
	type = character_event
	hidden = yes

	immediate = {
		random_list = {
			10 = {
				trigger_event = { 
                                        id = holy_stuff_relic_merchant_event.0002 #Soil from the Holy Land
					days = 30
					}
				}
			10 = {
				trigger_event = { 
                                        id = holy_stuff_relic_merchant_event.0003 #Lamp Oil from a Martyr Shrine
					days = 30
					}
				}
			10 = {
				trigger_event = { 
                                        id = holy_stuff_relic_merchant_event.0004 #Iron Chips of the Chains of St. Peter
					days = 30
					}
				}
			10 = {
				trigger_event = { 
                                        id = holy_stuff_relic_merchant_event.0005 #Iron file dust from the Gridiron of St. Lawrence 
					days = 30
					}
				}
			10 = {
				trigger_event = { 
                                        id = holy_stuff_relic_merchant_event.0006 #Coals from the Gridiron of St. Lawrence
					days = 30
					}
				}
			10 = {
				trigger_event = { 
                                        id = holy_stuff_relic_merchant_event.0007 #Straw from the Manger of Christ
					days = 30
					}
				}
		}
	}
}

holy_stuff_relic_merchant_event.0002 = { #Soil from the Holy Land
	type = character_event
      cooldown = { years = 30 }
	title = holy_stuff_relic_merchant_event.0002.t
	desc = holy_stuff_relic_merchant_event.0002.desc
	theme = realm
	left_portrait = {
		character = root
		animation = happiness
	}
	right_portrait = {
		character = scope:foreign_merchant
		animation = admiration
	}

	trigger = {
		relic_merchant_event_trigger = yes
	}

	immediate = {
		play_music_cue = "mx_cue_in_taberna_instrumental"
            holy_stuff_relic_merchant_scripted_effect = yes
		create_character = {
			template = foreign_merchant_template
			location = scope:relic_merchant_target.capital_province
			save_scope_as = foreign_merchant
		}
		root = {
			save_scope_as = relic_merchant_target
		}
		title:c_jerusalem = {
			save_scope_as = jerusalem
		}
	}

	option = {
		name = holy_stuff_relic_merchant_event.0002.a

		stress_impact = {
			cynical = medium_stress_impact_gain
			greedy = medium_stress_impact_gain
			relic_collector = medium_stress_impact_loss
			zealous = medium_stress_impact_loss
		}
		root = {
                  create_artifact_holy_land_soil_effect = { OWNER = this }
			remove_short_term_gold = relic_merchant_a_gold_value
		}
	}

	option = {
		name = holy_stuff_relic_merchant_event.0002.b

		stress_impact = {
			cynical = medium_stress_impact_loss
			relic_collector = medium_stress_impact_gain
			zealous = medium_stress_impact_gain
		}
	}

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

holy_stuff_relic_merchant_event.0003  { #Lamp Oil from a Martyr Shrine
	type = character_event
      cooldown = { years = 30 }
	title = holy_stuff_relic_merchant_event.0003.t
	desc = holy_stuff_relic_merchant_event.0003.desc
	theme = realm
	left_portrait = {
		character = root
		animation = happiness
	}
	right_portrait = {
		character = scope:foreign_merchant
		animation = admiration
	}

	trigger = {
		relic_merchant_event_trigger = yes
	}

	immediate = {
		play_music_cue = "mx_cue_in_taberna_instrumental"
            holy_stuff_relic_merchant_scripted_effect = yes
		create_character = {
			template = foreign_merchant_template
			location = scope:relic_merchant_target.capital_province
			save_scope_as = foreign_merchant
		}
		root = {
			save_scope_as = relic_merchant_target
		}
		title:c_roma = {
			save_scope_as = roma
		}
	}

	option = {
		name = holy_stuff_relic_merchant_event.0003.a

		stress_impact = {
			cynical = medium_stress_impact_gain
			greedy = medium_stress_impact_gain
			relic_collector = medium_stress_impact_loss
			zealous = medium_stress_impact_loss
		}
		root = {
                  create_artifact_martyr_shrine_lamp_oil_effect = { OWNER = this }
			remove_short_term_gold = relic_merchant_a_gold_value
		}
	}

	option = {
		name = holy_stuff_relic_merchant_event.0003.b

		stress_impact = {
			cynical = medium_stress_impact_loss
			relic_collector = medium_stress_impact_gain
			zealous = medium_stress_impact_gain
		}
	}

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

holy_stuff_relic_merchant_event.0004 = { #Iron Chips of the Chains of St. Peter
	type = character_event
      cooldown = { years = 30 }
	title = holy_stuff_relic_merchant_event.0004.t
	desc = holy_stuff_relic_merchant_event.0004.desc
	theme = realm
	left_portrait = {
		character = root
		animation = happiness
	}
	right_portrait = {
		character = scope:foreign_merchant
		animation = admiration
	}

	trigger = {
		relic_merchant_event_trigger = yes
	}

	immediate = {
		play_music_cue = "mx_cue_in_taberna_instrumental"
            holy_stuff_relic_merchant_scripted_effect = yes
		create_character = {
			template = foreign_merchant_template
			location = scope:relic_merchant_target.capital_province
			save_scope_as = foreign_merchant
		}
		root = {
			save_scope_as = relic_merchant_target
		}
		title:c_roma = {
			save_scope_as = roma
		}
	}

	option = {
		name = holy_stuff_relic_merchant_event.0004.a

		stress_impact = {
			cynical = medium_stress_impact_gain
			greedy = medium_stress_impact_gain
			relic_collector = medium_stress_impact_loss
			zealous = medium_stress_impact_loss
		}
		root = {
                  create_artifact_iron_chips_chains_of_st_peter_effect = { OWNER = this }
			remove_short_term_gold = relic_merchant_c_gold_value
		}
	}

	option = {
		name = holy_stuff_relic_merchant_event.0004.b

		stress_impact = {
			cynical = medium_stress_impact_loss
			relic_collector = medium_stress_impact_gain
			zealous = medium_stress_impact_gain
		}
	}

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

holy_stuff_relic_merchant_event.0005 = { #Iron file dust from the Gridiron of St. Lawrence 
	type = character_event
      cooldown = { years = 30 }
	title = holy_stuff_relic_merchant_event.0005.t
	desc = holy_stuff_relic_merchant_event.0005.desc
	theme = realm
	left_portrait = {
		character = root
		animation = happiness
	}
	right_portrait = {
		character = scope:foreign_merchant
		animation = admiration
	}

	trigger = {
		relic_merchant_event_trigger = yes
	}

	immediate = {
		play_music_cue = "mx_cue_in_taberna_instrumental"
            holy_stuff_relic_merchant_scripted_effect = yes
		create_character = {
			template = foreign_merchant_template
			location = scope:relic_merchant_target.capital_province
			save_scope_as = foreign_merchant
		}
		root = {
			save_scope_as = relic_merchant_target
		}
		title:c_roma = {
			save_scope_as = roma
		}
	}

	option = {
		name = holy_stuff_relic_merchant_event.0005.a

		stress_impact = {
			cynical = medium_stress_impact_gain
			greedy = medium_stress_impact_gain
			relic_collector = medium_stress_impact_loss
			zealous = medium_stress_impact_loss
		}
		root = {
                  create_artifact_iron_file_dust_gridiron_of_st_lawrence_effect = { OWNER = this }
			remove_short_term_gold = relic_merchant_c_gold_value
		}
	}

	option = {
		name = holy_stuff_relic_merchant_event.0005.b

		stress_impact = {
			cynical = medium_stress_impact_loss
			relic_collector = medium_stress_impact_gain
			zealous = medium_stress_impact_gain
		}
	}

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

holy_stuff_relic_merchant_event.0006 = { #Coals from the Gridiron of St. Lawrence
	type = character_event
      cooldown = { years = 30 }
	title = holy_stuff_relic_merchant_event.0006.t
	desc = holy_stuff_relic_merchant_event.0006.desc
	theme = realm
	left_portrait = {
		character = root
		animation = happiness
	}
	right_portrait = {
		character = scope:foreign_merchant
		animation = admiration
	}

	trigger = {
		relic_merchant_event_trigger = yes
	}

	immediate = {
		play_music_cue = "mx_cue_in_taberna_instrumental"
            holy_stuff_relic_merchant_scripted_effect = yes
		create_character = {
			template = foreign_merchant_template
			location = scope:relic_merchant_target.capital_province
			save_scope_as = foreign_merchant
		}
		root = {
			save_scope_as = relic_merchant_target
		}
		title:c_roma = {
			save_scope_as = roma
		}
	}

	option = {
		name = holy_stuff_relic_merchant_event.0006.a

		stress_impact = {
			cynical = medium_stress_impact_gain
			greedy = medium_stress_impact_gain
			relic_collector = medium_stress_impact_loss
			zealous = medium_stress_impact_loss
		}
		root = {
                  create_artifact_coals_of_st_lawrence_effect = { OWNER = this }
			remove_short_term_gold = relic_merchant_b_gold_value
		}
	}

	option = {
		name = holy_stuff_relic_merchant_event.0006.b

		stress_impact = {
			cynical = medium_stress_impact_loss
			relic_collector = medium_stress_impact_gain
			zealous = medium_stress_impact_gain
		}
	}

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

holy_stuff_relic_merchant_event.0007 = { #Straw from the Manger of Christ
	type = character_event
      cooldown = { years = 30 }
	title = holy_stuff_relic_merchant_event.0007.t
	desc = holy_stuff_relic_merchant_event.0007.desc
	theme = realm
	left_portrait = {
		character = root
		animation = happiness
	}
	right_portrait = {
		character = scope:foreign_merchant
		animation = admiration
	}

	trigger = {
		relic_merchant_event_trigger = yes
	}

	immediate = {
		play_music_cue = "mx_cue_in_taberna_instrumental"
            holy_stuff_relic_merchant_scripted_effect = yes
		create_character = {
			template = foreign_merchant_template
			location = scope:relic_merchant_target.capital_province
			save_scope_as = foreign_merchant
		}
		root = {
			save_scope_as = relic_merchant_target
		}
		title:c_roma = {
			save_scope_as = roma
		}
	}

	option = {
		name = holy_stuff_relic_merchant_event.0007.a

		stress_impact = {
			cynical = medium_stress_impact_gain
			greedy = medium_stress_impact_gain
			relic_collector = medium_stress_impact_loss
			zealous = medium_stress_impact_loss
		}
		root = {
                  create_artifact_straw_manger_of_jesus_effect = { OWNER = this }
			remove_short_term_gold = relic_merchant_b_gold_value
		}
	}

	option = {
		name = holy_stuff_relic_merchant_event.0007.b

		stress_impact = {
			cynical = medium_stress_impact_loss
			relic_collector = medium_stress_impact_gain
			zealous = medium_stress_impact_gain
		}
	}

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