namespace = byzsla_slavic_event_perun

############################
#### Prymitywne pogaństwo - Perunowe Strzałki
#byzsla_slavic_event_perun.1 - Znalezienie
#byzsla_slavic_event_perun.2 - Lekarstwo dla dziecka
#byzsla_slavic_event_perun.3 - Amulet 
#byzsla_slavic_event_perun.4 - Leczenie z opętania
#byzsla_slavic_event_perun.5 - Rózga
#byzsla_slavic_event_perun.6 - Zagubienie
#byzsla_slavic_event_perun.7 - BRAK
#byzsla_slavic_event_perun.8 - BRAK
#byzsla_slavic_event_perun.9 - BRAK
#### Prymitywne i główny nurt - Perunowy Topór
#byzsla_slavic_event_perun.10 - Sen
#byzsla_slavic_event_perun.11 - Odnalezienie
#byzsla_slavic_event_perun.12 - Poszukiwania nieudane
#byzsla_slavic_event_perun.13 - Główny żerca chce dla siebie
#byzsla_slavic_event_perun.14 - Główny żerca chce dla siebie
#byzsla_slavic_event_perun.15 - Zniknięcie
#byzsla_slavic_event_perun.16 - Wizje
#byzsla_slavic_event_perun.17 - Szaleństwo (czerwień)
#byzsla_slavic_event_perun.18 - Dzieciobójstwo (czerń)
#byzsla_slavic_event_perun.19 - Samobójstwo (biel)
#byzsla_slavic_event_perun.20 - Utrata topora i skarbu (ucieczka)
#byzsla_slavic_event_perun.21 - Dyplomacja (czerwień)
#byzsla_slavic_event_perun.22 - Intrygi (czerń)
#byzsla_slavic_event_perun.23 - Zarządzanie (biel)
#byzsla_slavic_event_perun.24 - Utrata topora bez zdrowia (ucieczka)
#byzsla_slavic_event_perun.25 - Sen był tylko snem, lecz topora nie ma
#byzsla_slavic_event_perun.26 - czyszczenie toporka
############################

#### Prymitywne pogaństwo - Perunowe Strzałki

#byzsla_slavic_event_perun.1 - Znalezienie

character_event = {
	id = byzsla_slavic_event_perun.1
	desc = desc_byzsla_slavic_event_perun.1
	
	picture = GFX_evt_garden
	#religion_group = pagan_group
	
	trigger = {
		is_ruler = yes
		prisoner = no
		NOT = {
			month = 10
		}
		month = 4
		NOT = { trait = in_hiding }
		NOT = { trait = incapable }
		has_regent = no
		is_slav_religion = yes
		NOT = { has_artifact = bspm_strzalka_peruna }
		capital_scope = {
			NOT = { has_province_modifier = byzsla_ogolny_timer }
		}
	}
	
	mean_time_to_happen = {
		months = 60
		modifier = {
			factor = 0.63
			OR = {
				religion = slavic_pagan
				religion = old_slavic_pagan
			}
		}
	}
	option = {
		name = optA_byzsla_slavic_event_perun.1	#wezmę sobie
		trigger = {
			NOT = { trait = depressed }
		}
		capital_scope = {
			add_province_modifier = {
				name = byzsla_ogolny_timer
				duration = 150
				hidden = yes
			}
		}
		add_artifact = bspm_strzalka_peruna
		new_artifact = {
			set_creation_date = 1.1.1
		}
	}
	option = {
		name = optB_byzsla_slavic_event_perun.1	#Zwykły kamień
		trigger = {
			NOT = { trait = depressed }
		}
		capital_scope = {
			add_province_modifier = {
				name = byzsla_ogolny_timer
				duration = 150
				hidden = yes
			}
		}
		if = {
			limit = { NOT = { trait = cynical } }
			piety = 10
		}
		if = {
			limit = { trait = cynical }
			piety = 5
		}
	}
	option = {
		name = optC_byzsla_slavic_event_perun.1	#Może jest nadzieja
		tooltip_info = depressed
		trigger = {
			trait = depressed
		}
		capital_scope = {
			add_province_modifier = {
				name = byzsla_ogolny_timer
				duration = 150
				hidden = yes
			}
		}
		random = {
			chance = 20
			remove_trait = depressed
		}
		add_artifact = bspm_strzalka_peruna
		new_artifact = {
			set_creation_date = 1.1.1
		}
	}
}

#byzsla_slavic_event_perun.2 - Lekarstwo dla dziecka

character_event = {
	id = byzsla_slavic_event_perun.2
	desc = desc_byzsla_slavic_event_perun.2
	
	picture = GFX_evt_recovery

	#religion_group = pagan_group
	trigger = {
		is_ruler = yes
		prisoner = no
		NOT = { trait = in_hiding }
		NOT = { trait = incapable }
		has_regent = no
		#religion_group = pagan_group
		has_artifact = bspm_strzalka_peruna
		any_child = {
			is_alive = yes
			is_abroad = no
			prisoner = no
			OR = {
				trait = sickly
				trait = ill
			}
			NOT = { age = 10 }
		}
	}
	
	mean_time_to_happen = {
		months = 5
	}
	option = {
		name = optA_byzsla_slavic_event_perun.2	#spróbujmy
		destroy_artifact = bspm_strzalka_peruna
		piety = 10
		random_child = {
			limit = {
				is_alive = yes
				is_abroad = no
				prisoner = no
				OR = {
					trait = sickly
					trait = ill
				}
				NOT = { age = 10 }
			}
			random = {
				chance = 30
				remove_trait = sickly
				remove_trait = ill
			}
			random_list = {
				50 = { health = -1  }
				50 = { health = 1  }
				1 = { death = { death_reason = death_accident killer = ROOT }  }
			}
			piety = 5
		}
	}
	option = {
		name = optB_byzsla_slavic_event_perun.2	#Poczekajmy
	}
}

#byzsla_slavic_event_perun.3 - Amulet 

character_event = {
	id = byzsla_slavic_event_perun.3
	desc = desc_byzsla_slavic_event_perun.3
	
	picture = GFX_evt_carriage

	#religion_group = pagan_group
	trigger = {
		is_ruler = yes
		prisoner = no
		NOT = { trait = in_hiding }
		NOT = { trait = incapable }
		has_regent = no
		#religion_group = pagan_group
		NOT = {
			month = 10
		}
		month = 9
		has_artifact = bspm_strzalka_peruna
		NOT = {
			has_artifact = byzsla_perun_amulet
		}
		treasury = 50
	}
	
	mean_time_to_happen = {
		months = 15
	}
	option = {
		name = optA_byzsla_slavic_event_perun.3	#zróbmy
		destroy_artifact = bspm_strzalka_peruna
		add_artifact = byzsla_perun_amulet
		piety = 10
		treasury = -50
	}
	option = {
		name = optB_byzsla_slavic_event_perun.3	#Poczekajmy
	}
}

#byzsla_slavic_event_perun.4 - Leczenie z opętania

character_event = {
	id = byzsla_slavic_event_perun.4
	desc = desc_byzsla_slavic_event_perun.4
	
	picture = GFX_evt_lunatic

	#religion_group = pagan_group
	trigger = {
		is_ruler = yes
		prisoner = no
		NOT = { trait = in_hiding }
		NOT = { trait = incapable }
		NOT = {
			OR = {
				trait = lunatic
				trait = possessed
			}
		}
		has_regent = no
		#religion_group = pagan_group
		has_artifact = bspm_strzalka_peruna
		any_courtier = {
			NOT = { has_character_flag = byzsla_perun_opetaniec }
			is_alive = yes
			is_abroad = no
			prisoner = no
			NOT = { trait = in_hiding }
			NOT = { trait = incapable }
			OR = {
				trait = lunatic
				trait = possessed
			}
		}
	}
	
	mean_time_to_happen = {
		months = 8
	}
	option = {
		name = optA_byzsla_slavic_event_perun.4	#spróbujmy
		destroy_artifact = bspm_strzalka_peruna
		piety = 10
		random_courtier = {
			limit = {
				NOT = { has_character_flag = byzsla_perun_opetaniec }
				is_alive = yes
				is_abroad = no
				prisoner = no
				NOT = { trait = in_hiding }
				NOT = { trait = incapable }
				OR = {
					trait = lunatic
					trait = possessed
				}
			}
			set_character_flag = byzsla_perun_opetaniec
			random = {
				chance = 70
				health = -1
			}
			random_list = {
				20 = {
					remove_trait = lunatic
					remove_trait = possessed
					add_favor = ROOT
				}
				30 = {
					remove_trait = lunatic
					remove_trait = possessed
					add_friend = ROOT 
					add_favor = ROOT
				}
				20 = {  }
				30 = { add_rival = ROOT }
				10 = { death = { death_reason = death_accident killer = ROOT }  }
			}
		}
	}
	option = {
		name = optB_byzsla_slavic_event_perun.4	#Poczekajmy
	}
}

#byzsla_slavic_event_perun.5 - Rózga

character_event = {
	id = byzsla_slavic_event_perun.5
	desc = desc_byzsla_slavic_event_perun.5
	
	picture = GFX_evt_carriage

	#religion_group = pagan_group
	trigger = {
		is_ruler = yes
		prisoner = no
		NOT = { trait = in_hiding }
		NOT = { trait = incapable }
		has_regent = no
		#religion_group = pagan_group
		NOT = {
			OR = {
				religion = chram_vales
				religion = chram_roda
			}
		}
		NOT = {
			month = 5
		}
		month = 8
		has_artifact = bspm_strzalka_peruna
		treasury = 100
	}
	
	mean_time_to_happen = {
		months = 9
	}
	option = {
		name = optA_byzsla_slavic_event_perun.5	#zróbmy
		destroy_artifact = bspm_strzalka_peruna
		piety = 100
		prestige = 100
		treasury = -100
		religion_authority = {
			modifier = byzsla_slavic_artefakt
		}
		if = {
			limit = {
				NOT = { is_nomadic = yes }
			}
			capital_scope = {
				add_province_modifier = {
					name = byzsla_perun_mod_2
					months = 240
				}
			}
		}
		if = {
			limit = {
				is_nomadic = yes
			}
			capital_scope = {
				add_province_modifier = {
					name = horda_byzsla_perun_mod_2
					months = 240
				}
			}
		}
	}
	option = {
		name = optB_byzsla_slavic_event_perun.5	#Poczekajmy
	}
}

#byzsla_slavic_event_perun.6 - Zagubienie

character_event = {
	id = byzsla_slavic_event_perun.6
	desc = desc_byzsla_slavic_event_perun.6
	
	picture = GFX_evt_drunk

	#religion_group = pagan_group
	trigger = {
		is_ruler = yes
		prisoner = no
		NOT = { trait = in_hiding }
		NOT = { trait = incapable }
		has_regent = no
		#religion_group = pagan_group
		has_artifact = bspm_strzalka_peruna
	}
	
	mean_time_to_happen = {
		months = 33
	}
	option = {
		name = optA_byzsla_slavic_event_perun.6	#szkoda
		destroy_artifact = bspm_strzalka_peruna
		prestige = -10
	}
}

#### Prymitywne i główny nurt - Perunowy Topór

#byzsla_slavic_event_perun.10 - Sen

character_event = {
	id = byzsla_slavic_event_perun.10
	desc = desc_byzsla_slavic_event_perun.10
	
	picture = GFX_evt_shadow

	#religion_group = pagan_group
	trigger = {
		is_ruler = yes
		prisoner = no
		NOT = {
			month = 10
		}
		month = 4
		war = yes
		is_republic = no
		is_priest = no
		NOT = { trait = in_hiding }
		NOT = { trait = incapable }
		has_regent = no
		OR = {
			AND = {
				NOT = { has_dlc = "Mystics" }
				NOT = { trait = byzsla_perun_topor }
			}
			AND = {
				has_dlc = "Mystics"
				NOT = { has_artifact = axe_of_perun }
			}
		}
		
		OR = {
			religion = slavic_pagan
			religion = old_slavic_pagan
			religion = slavic_pagan_reformed
		}
		NOT = { has_global_flag = byzsla_perun_topor_flaga_swiat }
	}
	
	mean_time_to_happen = {
		months = 3000
		modifier = {
			factor = 0.9
			piety = 1000
		}
		modifier = {
			factor = 0.6
			any_playable_ruler = {
				war_with = ROOT
				NOT = { religion_group = pagan_group }
				any_war = {
					OR = {
						attacker = {
							character = ROOT
							NOT = { war_score = -30 }
						}
						defender = {
							character = ROOT
							war_score = 30
						}
					}
				}
			}
		}
		modifier = {
			factor = 0.95
			has_artifact = byzsla_perun_amulet
		}
	}
	option = {
		name = optA_byzsla_slavic_event_perun.10	#idę za snem
		trigger = {
			NOT = { trait = cynical }
		}
		capital_scope = {
			add_province_modifier = {
				name = byzsla_ogolny_timer
				duration = 150
				hidden = yes
			}
		}
		custom_tooltip = {
			text = byzsla_slavic_event_perun.16_TT
		}
		hidden_tooltip = {
			random_list = {
				50 = { character_event = { id = byzsla_slavic_event_perun.11 } }
				50 = { character_event = { id = byzsla_slavic_event_perun.12 } }
			}
		}
		set_character_flag = byzsla_perun_topor_flaga
		set_global_flag = byzsla_perun_topor_flaga_swiat
	}
	option = {
		name = optB_byzsla_slavic_event_perun.10	#Sen mara
		capital_scope = {
			add_province_modifier = {
				name = byzsla_ogolny_timer
				duration = 150
				hidden = yes
			}
		}
		random = {
			chance = 25
			add_trait = cynical
		}
	}
	option = {
		name = optC_byzsla_slavic_event_perun.10	#Realistyczna interpretacja
		tooltip_info = cynical
		trigger = {
			trait = cynical
		}
		capital_scope = {
			add_province_modifier = {
				name = byzsla_ogolny_timer
				duration = 150
				hidden = yes
			}
		}
		prestige = 30
		random_list = {
			40 = { change_martial = 1 }
			20 = { change_martial = 2 }
			10 = { 
				health = 1 
				change_martial = 1
			}
			5 = { 
				health = 2
				change_martial = 1
			}
			20 = {
				add_trait = wounded
			}
			5 = {
				death = { death_reason = death_accident }
			}
		}
	}
}

#byzsla_slavic_event_perun.11 - Odnalezienie

character_event = {
	id = byzsla_slavic_event_perun.11
	desc = desc_byzsla_slavic_event_perun.11
	
	picture = GFX_evt_bandits

	#religion_group = pagan_group
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_perun.11	#Mam topór
		if = {
			limit = { NOT = { has_dlc = "Mystics" } }
			add_trait = byzsla_perun_topor
		}
		if = {
			limit = { has_dlc = "Mystics" } 
			add_artifact = axe_of_perun
			new_artifact = {
				set_creation_date = 1.1.1
			}
		}
		set_global_flag = byzsla_perun_topor_flaga_swiat
	}
}


character_event = {
	id = byzsla_slavic_event_perun.12
	desc = desc_byzsla_slavic_event_perun.12
	
	picture = GFX_evt_bandits

	#religion_group = pagan_group
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_perun.12	#Trudno
		clr_character_flag = byzsla_perun_topor_flaga
	}
}

#byzsla_slavic_event_perun.13 - Główny żerca chce dla siebie 

character_event = {
	id = byzsla_slavic_event_perun.13
	desc = desc_byzsla_slavic_event_perun.13
	
	picture = GFX_evt_bandits

	#religion_group = pagan_group
	trigger = {
		OR = {
			NOT = { trait = byzsla_perun_topor }
			NOT = { has_artifact = axe_of_perun }
		}
		has_global_flag = byzsla_perun_topor_flaga_swiat
		has_landed_title = d_slavic_pagan_reformed
	}
	
	mean_time_to_happen = {
		months = 150
	}
	
	option = {
		name = optA_byzsla_slavic_event_perun.13	#Spróbuję
		set_global_flag = byzsla_perun_topor_flaga_swiat_2
		random_playable_ruler = {
			limit = {
				OR = {
					trait = byzsla_perun_topor
					has_artifact = axe_of_perun 
				}
			}
			character_event = { id = byzsla_slavic_event_perun.14 }
		}
	}
}

#byzsla_slavic_event_perun.14 - Główny żerca chce dla siebie 

character_event = {
	id = byzsla_slavic_event_perun.14
	desc = desc_byzsla_slavic_event_perun.14
	
	picture = GFX_evt_bandits

	#religion_group = pagan_group
	trigger = {
		trait = byzsla_perun_topor
		has_global_flag = byzsla_perun_topor_flaga_swiat_2
	}
	
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_perun.14	#dam
		clr_global_flag = byzsla_perun_topor_flaga_swiat_2
		if = {
			limit = {
				NOT = { has_dlc = "Mystics" }
			}
			remove_trait = byzsla_perun_topor
			d_slavic_pagan_reformed = {
				owner = { add_trait = byzsla_perun_topor }
			}
		}
		if = {
			limit = {
				has_dlc = "Mystics"
			}
			d_slavic_pagan_reformed = {
				owner = { 
					ROOT = {
						random_artifact = {
							limit = {
								artifact_type = axe_of_perun
							}
							transfer_artifact = {
								from = ROOT
								to = PREV
							}
						}
					}
				}
			}
			
		}
	}
	option = {
		name = optB_byzsla_slavic_event_perun.14	#nie dam
		clr_global_flag = byzsla_perun_topor_flaga_swiat_2
	}
}
#byzsla_slavic_event_perun.15 - Zniknięcie

character_event = {
	id = byzsla_slavic_event_perun.15
	desc = desc_byzsla_slavic_event_perun.15
	
	picture = GFX_evt_bandits

	#religion_group = pagan_group
	trigger = {
		OR = {
			trait = byzsla_perun_topor
			has_artifact = axe_of_perun
		}
	}
	
	mean_time_to_happen = {
		months = 80
	}
	
	option = {
		name = optA_byzsla_slavic_event_perun.15	#znika
		remove_trait = byzsla_perun_topor
		destroy_artifact = axe_of_perun
		clr_global_flag = byzsla_perun_topor_flaga_swiat
		health = -3
	}
}

long_character_event = {
	id = byzsla_slavic_event_perun.16
	desc = desc_byzsla_slavic_event_perun.16
	
	picture = GFX_evt_byzla_gamajun

	religion_group = pagan_group
	trigger = {
		OR = {
			trait = byzsla_perun_topor
			has_artifact = axe_of_perun
		}
		war = no
		NOT = { has_character_flag = byzsla_perun_topor_sen_flaga }
		NOT = { has_character_flag = byzsla_perun_topor_sen_flaga2 }
	}
	
	mean_time_to_happen = {
		months = 80
		modifier = {
			factor = 0.7
			trait = lunatic
		}
		modifier = {
			factor = 0.7
			trait = possessed
		}
		modifier = {
			factor = 0.7
			trait = cruel
		}
		modifier = {
			factor = 0.7
			month = 10
		}
		modifier = {
			factor = 0.7
			NOT = { month = 2 }
		}
	}
	
	option = {
		name = optA_byzsla_slavic_event_perun.16	#Czerwony
		set_character_flag = byzsla_perun_topor_sen_flaga
		set_character_flag = byzsla_perun_topor_sen_flaga2
		custom_tooltip = {
			text = byzsla_slavic_event_perun.16_TT
		}
		hidden_tooltip = {
			random_list = {
				30 = { long_character_event = { id = byzsla_slavic_event_perun.17 } }
				10 = { long_character_event = { id = byzsla_slavic_event_perun.21 } }
				60 = { long_character_event = { id = byzsla_slavic_event_perun.25 } }
				
			}
		}
	}
	option = {
		name = optB_byzsla_slavic_event_perun.16	#Czarny
		set_character_flag = byzsla_perun_topor_sen_flaga
		set_character_flag = byzsla_perun_topor_sen_flaga2
		custom_tooltip = {
			text = byzsla_slavic_event_perun.16_TT
		}
		hidden_tooltip = {
			random_list = {
				30 = { long_character_event = { id = byzsla_slavic_event_perun.18 } }
				10 = { long_character_event = { id = byzsla_slavic_event_perun.22 } }
				60 = { long_character_event = { id = byzsla_slavic_event_perun.25 } }
				
			}
		}
	}
	option = {
		name = optC_byzsla_slavic_event_perun.16	#Biały
		set_character_flag = byzsla_perun_topor_sen_flaga
		set_character_flag = byzsla_perun_topor_sen_flaga2
		custom_tooltip = {
			text = byzsla_slavic_event_perun.16_TT
		}
		hidden_tooltip = {
			random_list = {
				30 = { long_character_event = { id = byzsla_slavic_event_perun.19 } }
				10 = { long_character_event = { id = byzsla_slavic_event_perun.23 } }
				60 = { long_character_event = { id = byzsla_slavic_event_perun.25 } }
				
			}
		}
	}
	option = {
		name = optD_byzsla_slavic_event_perun.16	#Ucieczka
		set_character_flag = byzsla_perun_topor_sen_flaga
		set_character_flag = byzsla_perun_topor_sen_flaga2
		custom_tooltip = {
			text = byzsla_slavic_event_perun.16_TT
		}
		hidden_tooltip = {
			random_list = {
				30 = { long_character_event = { id = byzsla_slavic_event_perun.20 } }
				10 = { long_character_event = { id = byzsla_slavic_event_perun.24 } }
				60 = { long_character_event = { id = byzsla_slavic_event_perun.25 } }
				
			}
		}
	}
} 


#byzsla_slavic_event_perun.17 - Szaleństwo (czerwień)

long_character_event = {
	id = byzsla_slavic_event_perun.17
	desc = desc_byzsla_slavic_event_perun.17
	
	picture = GFX_evt_byzla_gamajun
	
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_perun.17
		destroy_artifact = axe_of_perun
		remove_trait = byzsla_perun_topor
		clr_global_flag = byzsla_perun_topor_flaga_swiat
		clr_global_flag = byzsla_perun_topor_flaga_swiat2
		clr_character_flag = byzsla_perun_topor
		if = {
			limit = {
				NOT = { trait = lunatic }
				trait = possessed
			}
			add_trait = lunatic
		}
		if = {
			limit = {
				NOT = { trait = possessed }
				trait = lunatic
			}
			add_trait = possessed
		}
		if = {
			limit = {
				NOT = { trait = possessed }
				NOT = { trait = lunatic }
			}
			random_list = {
				50 = { add_trait = possessed }
				50 = { add_trait = lunatic }
			}
		}
		if = {
			limit = {
				trait = possessed
				trait = lunatic
			}
			health = -6
		}
	}
}

#byzsla_slavic_event_perun.18 - Dzieciobójstwo (czerń)

long_character_event = {
	id = byzsla_slavic_event_perun.18
	desc = desc_byzsla_slavic_event_perun.18
	
	picture = GFX_evt_byzla_gamajun
	
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_perun.18
		destroy_artifact = axe_of_perun
		remove_trait = byzsla_perun_topor
		clr_global_flag = byzsla_perun_topor_flaga_swiat
		clr_global_flag = byzsla_perun_topor_flaga_swiat2
		clr_character_flag = byzsla_perun_topor
		if = {
			limit = {
				num_of_children = 1
				any_courtier = {
					NOT = { age = 16 }
					is_alive = yes
					is_child_of = ROOT
				}
			}
			random_child = {
				limit = {
					NOT = { age = 16 }
					is_alive = yes
					is_child_of = ROOT
				}
				death = { death_reason = death_accident killer = ROOT }
				ROOT = {
					add_trait = kinslayer
				}
			}
		}
		if = {
			limit = {
				NOT = { num_of_children = 1 }
				any_courtier = {
					NOT = { age = 16 }
					is_alive = yes
				}
			}
			random_child = {
				limit = {
					NOT = { age = 16 }
					is_alive = yes
				}
				death = { death_reason = death_accident killer = ROOT }
			}
		}
		if = {
			limit = {
				NOT = {
					any_courtier = {
						NOT = { age = 16 }
						is_alive = yes
					}
				}
			}
			any_realm_character = {
				opinion = {
					who = ROOT
					modifier = opinion_tyrant
					multiplier = 4
					months = 480
				}
			}
			liege = {
				opinion = {
					who = ROOT
					modifier = opinion_tyrant
					multiplier = 4
					months = 480
				}
			}
		}
	}
}

#byzsla_slavic_event_perun.19 - Samobójstwo (biel)

long_character_event = {
	id = byzsla_slavic_event_perun.19
	desc = desc_byzsla_slavic_event_perun.19
	
	picture = GFX_evt_bandits
	
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_perun.19
		destroy_artifact = axe_of_perun
		remove_trait = byzsla_perun_topor
		clr_global_flag = byzsla_perun_topor_flaga_swiat
		clr_global_flag = byzsla_perun_topor_flaga_swiat2
		clr_character_flag = byzsla_perun_topor
		add_character_modifier = {
			modifier = suicide
			duration = -1
		}
		death = { death_reason = death_suicide }
	}
}

#byzsla_slavic_event_perun.20 - Utrata topora i skarbu (ucieczka)

long_character_event = {
	id = byzsla_slavic_event_perun.20
	desc = desc_byzsla_slavic_event_perun.20
	
	picture = GFX_evt_byzla_gamajun
	
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_perun.20
		destroy_artifact = axe_of_perun
		remove_trait = byzsla_perun_topor
		clr_global_flag = byzsla_perun_topor_flaga_swiat
		clr_global_flag = byzsla_perun_topor_flaga_swiat2
		clr_character_flag = byzsla_perun_topor
		if = {
			limit = {
				treasury = 50
			}
			clear_wealth = yes 
		}
		if = {
			limit = {
				treasury = 1
				NOT = { treasury = 50 }
			}
			clear_wealth = yes 
			prestige = -150
		}
		if = {
			limit = {
				NOT = { treasury = 1 }
				NOT = { prestige = 1000 }
			}
			clear_wealth = yes 
			prestige = -300
		}
		if = {
			limit = {
				NOT = { treasury = 1 }
				prestige = 1000
			}
			clear_wealth = yes 
			prestige = -600
		}
		if = {
			limit = {
				trait = byzsla_perun_topor
			}
			remove_trait = byzsla_perun_topor
		}
	}
}

#byzsla_slavic_event_perun.21 - Dyplomacja (czerwień)

long_character_event = {
	id = byzsla_slavic_event_perun.21
	desc = desc_byzsla_slavic_event_perun.21
	
	picture = GFX_evt_byzla_gamajun
	
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_perun.21
		destroy_artifact = axe_of_perun
		remove_trait = byzsla_perun_topor
		clr_global_flag = byzsla_perun_topor_flaga_swiat
		clr_global_flag = byzsla_perun_topor_flaga_swiat2
		clr_character_flag = byzsla_perun_topor
		change_diplomacy = 1
		health = -2
	}
}

#byzsla_slavic_event_perun.22 - Intrygi (czerń)
long_character_event = {
	id = byzsla_slavic_event_perun.22
	desc = desc_byzsla_slavic_event_perun.21
	
	picture = GFX_evt_byzla_gamajun
	
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_perun.21
		destroy_artifact = axe_of_perun
		remove_trait = byzsla_perun_topor
		clr_global_flag = byzsla_perun_topor_flaga_swiat
		clr_global_flag = byzsla_perun_topor_flaga_swiat2
		clr_character_flag = byzsla_perun_topor
		change_intrigue = 1
		health = -2
	}
}

#byzsla_slavic_event_perun.23 - Zarządzanie (biel)


long_character_event = {
	id = byzsla_slavic_event_perun.23
	desc = desc_byzsla_slavic_event_perun.21
	
	picture = GFX_evt_byzla_gamajun
	
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_perun.21
		destroy_artifact = axe_of_perun
		remove_trait = byzsla_perun_topor
		clr_global_flag = byzsla_perun_topor_flaga_swiat
		clr_global_flag = byzsla_perun_topor_flaga_swiat2
		clr_character_flag = byzsla_perun_topor
		change_stewardship = 1
		health = -2
	}
}


#byzsla_slavic_event_perun.24 - Utrata topora bez zdrowia (ucieczka)

long_character_event = {
	id = byzsla_slavic_event_perun.24
	desc = desc_byzsla_slavic_event_perun.24
	
	picture = GFX_evt_byzla_gamajun
	
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_perun.24
		destroy_artifact = axe_of_perun
		remove_trait = byzsla_perun_topor
		clr_global_flag = byzsla_perun_topor_flaga_swiat
		clr_global_flag = byzsla_perun_topor_flaga_swiat2
		clr_character_flag = byzsla_perun_topor
		if = {
			limit = {
				NOT = { trait = craven }
			}
			add_trait = craven
		}
	}
}

#byzsla_slavic_event_perun.25 - Sen był tylko snem, lecz topora nie ma

long_character_event = {
	id = byzsla_slavic_event_perun.25
	desc = desc_byzsla_slavic_event_perun.25
	
	picture = GFX_evt_bandits
	
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_perun.24
		destroy_artifact = axe_of_perun
		remove_trait = byzsla_perun_topor
		clr_global_flag = byzsla_perun_topor_flaga_swiat
		clr_global_flag = byzsla_perun_topor_flaga_swiat2
		clr_character_flag = byzsla_perun_topor
		health = -2
	}
}

character_event = {
	id = byzsla_slavic_event_perun.26
	desc = desc_byzsla_slavic_event_perun.26
	
	picture = GFX_evt_bandits
	only_rulers = yes
	trigger = {
		has_landed_title = k_papal_state
		OR = { 
			has_global_flag = byzsla_perun_topor_flaga_swiat 
			has_global_flag = byzsla_perun_topor_flaga_swiat2
		}
		OR = {
			any_playable_ruler = {
				is_alive = yes
				NOT = { 
					OR = {
						has_artifact = axe_of_perun
						trait = byzsla_perun_topor 
					}
				}
			}
			any_independent_ruler = {
				is_alive = yes
				NOT = { 
					OR = {
						has_artifact = axe_of_perun
						trait = byzsla_perun_topor 
					}
				}
			}
		}
	}
	
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_perun.26
		clr_global_flag = byzsla_perun_topor_flaga_swiat
		clr_global_flag = byzsla_perun_topor_flaga_swiat2
	}
}