﻿namespace = holy_stuff_walpurgas_oil_event

##################################################
# Walpurgas Oil Event
##################################################

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

	trigger = {
		walpurgas_oil_event_trigger = yes
		NOT = {
			has_global_variable = walpurgas_oil
		}
	}

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

	option = {
		name = holy_stuff_walpurgas_oil_event.0001.a

		stress_impact = {
			cynical = minor_stress_impact_gain
			greedy = minor_stress_impact_gain
			generous = minor_stress_impact_loss
			relic_collector = minor_stress_impact_loss
			zealous = minor_stress_impact_loss
		}
		trigger_event = {
			id = holy_stuff_walpurgas_oil_event.0002
		}
	}

	option = {
		name = holy_stuff_walpurgas_oil_event.0001.b

		trigger = {
			has_trait = greedy
		}
		trigger_event = {
			id = holy_stuff_walpurgas_oil_event.0003
		}
	}

	option = {
		name = holy_stuff_walpurgas_oil_event.0001.c

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

holy_stuff_walpurgas_oil_event.0002 = {
	type = character_event
	hidden = yes

	trigger = {
		walpurgas_oil_event_trigger = yes
	}

	immediate = {
		root = {
			create_artifact_walpurgas_oil_effect = { OWNER = this }
		}
		trigger_event = {
			id = holy_stuff_walpurgas_oil_event.0002
			years = { 15 20 }
		}
	}
}

holy_stuff_walpurgas_oil_event.0003 = {
	type = character_event
	hidden = yes

	trigger = {
		walpurgas_oil_event_trigger = yes
	}

	immediate = {
		root = {
			add_gold = walpurgas_oil_gold_value
		}
		trigger_event = {
			id = holy_stuff_walpurgas_oil_event.0003
			years = { 15 20 }
		}
	}
}