namespace = byzsla_slavic_event_swarog

############################
# 	Wielkie Koliady
# byzsla_slavic_event_swarog.1 - początek przygotowań
# byzsla_slavic_event_swarog.2 - Zatrudnić tancerzy ognia?
# byzsla_slavic_event_swarog.3 - Wybór zwierzęcia ofiarnego
# byzsla_slavic_event_swarog.4 - Start kiedy masz bałwana Swaroga
# byzsla_slavic_event_swarog.5 - Start kiedy nie masz bałwana Swaroga
# byzsla_slavic_event_swarog.6 - Nabijanie głowy ofiary na świerk (zreformowane)
# byzsla_slavic_event_swarog.7 - Całospalenie ofiary (niezreformowane)
# byzsla_slavic_event_swarog.8 - USUNIĘTO
# byzsla_slavic_event_swarog.9 - Skoki nad ogniskiem 
# byzsla_slavic_event_swarog.10 - Pożar!
# byzsla_slavic_event_swarog.11 - Dar rzemieślników dla władcy na koniec (zreformowane + nieplemienne)
# byzsla_slavic_event_swarog.12 - Koniec (zreformowane)
# byzsla_slavic_event_swarog.13 - Koniec (niezreformowane)
# byzsla_slavic_event_swarog.14 - Saboteż welesowców
# byzsla_slavic_event_swarog.15 - Saboteż rodimowierców
# byzsla_slavic_event_swarog.16 - Morderstwo nadwornego żercy - złe zakończenie
# byzsla_slavic_event_swarog.17 - Gawędziarz (rasskacik) wspaniale opowiedział a żerca wyjaśnił opowieść o Swarogu
############################
#	Pruszków
# byzsla_slavic_event_swarog.22 - Celowość
# byzsla_slavic_event_swarog.23 - Pod bałwanem
# byzsla_slavic_event_swarog.24 - Zranienie kapłana
# byzsla_slavic_event_swarog.25 - Sukces
# byzsla_slavic_event_swarog.26 - Niejednoznaczność
# byzsla_slavic_event_swarog.27 - Kasa od miast
# byzsla_slavic_event_swarog.28 - Przybycie wojaków
############################
#	Herezje
# byzsla_slavic_event_swarog.21 - Zaćmienie
# byzsla_slavic_event_swarog.29 - Niszczenie warsztatów przez prymitywów
# byzsla_slavic_event_swarog.30 - Nadmierne uwielbienie Słońca
############################
#	Randomy
# byzsla_slavic_event_swarog.31 - Gildia łucznicza
############################
#	Pruszków 2
# byzsla_slavic_event_swarog.32 - Spór gildii ze świątynią (inicjacja)
# byzsla_slavic_event_swarog.33 - Spór gildii ze świątynią (burżuj)
# byzsla_slavic_event_swarog.34 - Spór gildii ze świątynią (senior)
# byzsla_slavic_event_swarog.35 - Wspaniały kowal w kuźni świątynnej
# byzsla_slavic_event_swarog.36 - Rody rzemieślnicze trudnią się przemytem 
############################
#	Żarptak
# byzsla_slavic_event_swarog.37 - poszukiwania
# byzsla_slavic_event_swarog.38 - znalezienie
# byzsla_slavic_event_swarog.39 - nieodnalezienie
# byzsla_slavic_event_swarog.40 - samospalenie pióra
############################

character_event = {
	id = byzsla_slavic_event_swarog.1
	desc = desc_byzsla_slavic_event_swarog.1
	
	picture = GFX_evt_cathedral_norse_pagan
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.1
		hidden_tooltip = {
			random = {
				chance = 25
				character_event = {
					id = byzsla_slavic_event_swarog.11
					days = 100 
					random = 20
				}
			}
			if = {
				limit = {
						NOT = { has_character_flag = sevgart_svarog_succ }
				}
				random_list = {
					30 = { character_event = { id = byzsla_slavic_event_swarog.2 days = 5 } }
					50 = { character_event = { id = byzsla_slavic_event_swarog.3 days = 5 } }
					20 = { character_event = { id = byzsla_slavic_event_swarog.4 days = 5 } }
				}
			}
			if = {
				limit = {
						has_character_flag = sevgart_svarog_succ
				}
				random_list = {
					30 = { character_event = { id = byzsla_slavic_event_swarog.2 days = 5 } }
					50 = { character_event = { id = byzsla_slavic_event_swarog.3 days = 5 } }
					20 = { character_event = { id = byzsla_slavic_event_swarog.5 days = 5 } }
				}
			}
		}
	}
}

# byzsla_slavic_event_swarog.2 - Zatrudnić tancerzy ognia?

character_event = {
	id = byzsla_slavic_event_swarog.2
	desc = desc_byzsla_slavic_event_swarog.2
	
	picture = GFX_evt_feast
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.2
		set_character_flag = byzsla_slavic_event_swarog_dlaga_ogniotance
		wealth = -15
		prestige = 5
		hidden_tooltip = {
			if = {
				limit = {
					has_character_flag = sevgart_svarog_succ
				}
				character_event = { id = byzsla_slavic_event_swarog.5 days = 3 } 
			}
			if = {
				limit = {
					NOT = { has_character_flag = sevgart_svarog_succ }
				}
				character_event = { id = byzsla_slavic_event_swarog.4 days = 3 } 
			}
		}
	}
	option = {
		name = optB_byzsla_slavic_event_swarog.2
		prestige = -7
		hidden_tooltip = {
			if = {
				limit = {
					has_character_flag = sevgart_svarog_succ
				}
				character_event = { id = byzsla_slavic_event_swarog.5 days = 3 } 
			}
			if = {
				limit = {
					NOT = { has_character_flag = sevgart_svarog_succ }
				}
				character_event = { id = byzsla_slavic_event_swarog.4 days = 3 } 
			}
		}
	}
}

# byzsla_slavic_event_swarog.3 - Wybór zwierzęcia ofiarnego

character_event = {
	id = byzsla_slavic_event_swarog.3
	desc = desc_byzsla_slavic_event_swarog.3
	
	picture = GFX_evt_feast
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.3
		trigger = {
			any_courtier = {
				race = horse 
			}
		}
		random_courtier = {
			limit = {
				race = horse 
			}
			set_character_flag = bspm_swarog_ofiara_moj_kon1
		}
		set_character_flag = bspm_swarog_ofiara_moj_kon2
		hidden_tooltip = {
			if = {
				limit = {
					has_character_flag = sevgart_svarog_succ
				}
				character_event = { id = byzsla_slavic_event_swarog.5 days = 3 } 
			}
			if = {
				limit = {
					NOT = { has_character_flag = sevgart_svarog_succ }
				}
				character_event = { id = byzsla_slavic_event_swarog.4 days = 3 } 
			}
		}
	}
	option = {
		name = optB_byzsla_slavic_event_swarog.3
		hidden_tooltip = {
			if = {
				limit = {
					has_character_flag = sevgart_svarog_succ
				}
				character_event = { id = byzsla_slavic_event_swarog.5 days = 3 } 
			}
			if = {
				limit = {
					NOT = { has_character_flag = sevgart_svarog_succ }
				}
				character_event = { id = byzsla_slavic_event_swarog.4 days = 3 } 
			}
		}
	}
	option = {
		name = optC_byzsla_slavic_event_swarog.3
		set_character_flag = bspm_swarog_ofiara_byk
		treasury = -10
		hidden_tooltip = {
			if = {
				limit = {
					has_character_flag = sevgart_svarog_succ
				}
				character_event = { id = byzsla_slavic_event_swarog.5 days = 3 } 
			}
			if = {
				limit = {
					NOT = { has_character_flag = sevgart_svarog_succ }
				}
				character_event = { id = byzsla_slavic_event_swarog.4 days = 3 } 
			}
		}
	}
	option = {
		name = optD_byzsla_slavic_event_swarog.3
		set_character_flag = bspm_swarog_ofiara_kon
		treasury = -10
		hidden_tooltip = {
			if = {
				limit = {
					has_character_flag = sevgart_svarog_succ
				}
				character_event = { id = byzsla_slavic_event_swarog.5 days = 3 } 
			}
			if = {
				limit = {
					NOT = { has_character_flag = sevgart_svarog_succ }
				}
				character_event = { id = byzsla_slavic_event_swarog.4 days = 3 } 
			}
		}
	}
}

# byzsla_slavic_event_swarog.4 - Start kiedy masz bałwana Swaroga

character_event = {
	id = byzsla_slavic_event_swarog.4
	desc = desc_byzsla_slavic_event_swarog.4
	
	picture = GFX_evt_feast
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.4
		prestige = 20
		piety = 30
		hidden_tooltip = {
			if = {
				limit = {
					religion = slavic_pagan
				}
				random_list = {
					90 = { character_event = { id = byzsla_slavic_event_swarog.6 days = 1 } }	#kontynuacja
					5 = { character_event = { id = byzsla_slavic_event_swarog.10 days = 1 } }	#pożar
					5 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#morderstwo
				}
			}
			if = {
				limit = {
					religion = slavic_pagan
					any_realm_character = {
						has_minor_title = title_court_rasskacik
					}
				}
				random_list = {
					70 = { character_event = { id = byzsla_slavic_event_swarog.6 days = 1 } }	#kontynuacja
					20 = { character_event = { id = byzsla_slavic_event_swarog.17 days = 1 } }	#wspaniała opowieść
					5 = { character_event = { id = byzsla_slavic_event_swarog.10 days = 1 } }	#pożar
					5 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#morderstwo
				}
			}
			if = {
				limit = {
					religion = old_slavic_pagan
				}
				random_list = {
					85 = { character_event = { id = byzsla_slavic_event_swarog.6 days = 1 } }	#kontynuacja
					5 = { character_event = { id = byzsla_slavic_event_swarog.10 days = 1 } }	#pożar
					5 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#morderstwo
					3 = { character_event = { id = byzsla_slavic_event_swarog.14 days = 1 } }	#sabotaż welesowców
					2 = { character_event = { id = byzsla_slavic_event_swarog.15 days = 1 } }	#sabotaż rodimowierców
				}
			}
			if = {
				limit = {
					religion = old_slavic_pagan
					any_realm_character = {
						has_minor_title = title_court_rasskacik
					}
				}
				random_list = {
					66 = { character_event = { id = byzsla_slavic_event_swarog.6 days = 1 } }	#kontynuacja
					19 = { character_event = { id = byzsla_slavic_event_swarog.17 days = 1 } }	#wspaniała opowieść
					5 = { character_event = { id = byzsla_slavic_event_swarog.10 days = 1 } }	#pożar
					5 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#morderstwo
					3 = { character_event = { id = byzsla_slavic_event_swarog.14 days = 1 } }	#sabotaż welesowców
					2 = { character_event = { id = byzsla_slavic_event_swarog.15 days = 1 } }	#sabotaż rodimowierców
				}
			}
			if = {
				limit = {
					religion = slavic_pagan_reformed 
				}
				random_list = {
					90 = { character_event = { id = byzsla_slavic_event_swarog.7 days = 1 } }	#kontynuacja
					5 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#morderstwo
					3 = { character_event = { id = byzsla_slavic_event_swarog.14 days = 1 } }	#sabotaż welesowców
					2 = { character_event = { id = byzsla_slavic_event_swarog.15 days = 1 } }	#sabotaż rodimowierców
				}
			}
			if = {
				limit = {
					religion = slavic_pagan_reformed 
					any_realm_character = {
						has_minor_title = title_court_rasskacik
					}
				}
				random_list = {
					70 = { character_event = { id = byzsla_slavic_event_swarog.7 days = 1 } }	#kontynuacja
					20 = { character_event = { id = byzsla_slavic_event_swarog.17 days = 1 } }	#wspaniała opowieść
					5 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#morderstwo
					3 = { character_event = { id = byzsla_slavic_event_swarog.14 days = 1 } }	#sabotaż welesowców
					2 = { character_event = { id = byzsla_slavic_event_swarog.15 days = 1 } }	#sabotaż rodimowierców
				}
			}
		}
	}
}

# byzsla_slavic_event_swarog.5 - Start kiedy nie masz bałwana Swaroga

character_event = {
	id = byzsla_slavic_event_swarog.5
	desc = desc_byzsla_slavic_event_swarog.5
	
	picture = GFX_evt_feast
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.5
		hidden_tooltip = {
			if = {
				limit = {
					religion = slavic_pagan
				}
				random_list = {
					90 = { character_event = { id = byzsla_slavic_event_swarog.7 days = 1 } }	#kontynuacja
					5 = { character_event = { id = byzsla_slavic_event_swarog.10 days = 1 } }	#pożar
					5 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#morderstwo
				}
			}
			if = {
				limit = {
					religion = slavic_pagan
					any_realm_character = {
						has_minor_title = title_court_rasskacik
					}
				}
				random_list = {
					70 = { character_event = { id = byzsla_slavic_event_swarog.7 days = 1 } }	#kontynuacja
					20 = { character_event = { id = byzsla_slavic_event_swarog.17 days = 1 } }	#wspaniała opowieść
					5 = { character_event = { id = byzsla_slavic_event_swarog.10 days = 1 } }	#pożar
					5 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#morderstwo
				}
			}
			if = {
				limit = {
					religion = old_slavic_pagan
				}
				random_list = {
					85 = { character_event = { id = byzsla_slavic_event_swarog.7 days = 1 } }	#kontynuacja
					5 = { character_event = { id = byzsla_slavic_event_swarog.10 days = 1 } }	#pożar
					5 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#morderstwo
					3 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#sabotaż welesowców
					2 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#sabotaż rodimowierców
				}
			}
			if = {
				limit = {
					religion = old_slavic_pagan
					any_realm_character = {
						has_minor_title = title_court_rasskacik
					}
				}
				random_list = {
					66 = { character_event = { id = byzsla_slavic_event_swarog.7 days = 1 } }	#kontynuacja
					19 = { character_event = { id = byzsla_slavic_event_swarog.17 days = 1 } }	#wspaniała opowieść
					5 = { character_event = { id = byzsla_slavic_event_swarog.10 days = 1 } }	#pożar
					5 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#morderstwo
					3 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#sabotaż welesowców
					2 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#sabotaż rodimowierców
				}
			}
			if = {
				limit = {
					religion = slavic_pagan_reformed 
				}
				random_list = {
					90 = { character_event = { id = byzsla_slavic_event_swarog.6 days = 1 } }	#kontynuacja
					5 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#morderstwo
					3 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#sabotaż welesowców
					2 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#sabotaż rodimowierców
				}
			}
			if = {
				limit = {
					religion = slavic_pagan_reformed 
					any_realm_character = {
						has_minor_title = title_court_rasskacik
					}
				}
				random_list = {
					70 = { character_event = { id = byzsla_slavic_event_swarog.6 days = 1 } }	#kontynuacja
					20 = { character_event = { id = byzsla_slavic_event_swarog.17 days = 1 } }	#wspaniała opowieść
					5 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#morderstwo
					3 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#sabotaż welesowców
					2 = { character_event = { id = byzsla_slavic_event_swarog.16 days = 1 } }	#sabotaż rodimowierców
				}
			}
		}
	}
}

# byzsla_slavic_event_swarog.6 - Nabijanie głowy ofiary na świerk 

character_event = {
	id = byzsla_slavic_event_swarog.6
	desc = desc_byzsla_slavic_event_swarog.6
	
	picture = GFX_evt_feast
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.6
		hidden_tooltip = {
			character_event = { id = byzsla_slavic_event_swarog.9 days = 5 } #skoki
		}
		random_courtier = {
			limit = {
				race = horse
				has_character_flag = bspm_swarog_ofiara_moj_kon1
			}
			death = {
				death_reason = death_sacrificed
			}
		}
	}
}

# byzsla_slavic_event_swarog.7 - Całospalenie ofiary 

character_event = {
	id = byzsla_slavic_event_swarog.7
	desc = desc_byzsla_slavic_event_swarog.7
	
	picture = GFX_evt_feast
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.7
		hidden_tooltip = {
			character_event = { id = byzsla_slavic_event_swarog.9 days = 2 } #skoki
		}
		random_courtier = {
			limit = {
				race = horse
				has_character_flag = bspm_swarog_ofiara_moj_kon1
			}
			death = {
				death_reason = death_sacrificed
			}
		}
	}
}

# byzsla_slavic_event_swarog.9 - Skoki nad ogniskiem 

character_event = {
	id = byzsla_slavic_event_swarog.9
	desc = desc_byzsla_slavic_event_swarog.9
	
	picture = GFX_evt_feast
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.9	#Ok
		hidden_tooltip = {
			if = {
				limit = {
					OR = {
						religion = slavic_pagan
						religion = old_slavic_pagan
					}
				}
				character_event = { id = byzsla_slavic_event_swarog.13 days = 2 } #Koniec
			}
			if = {
				limit = {
					religion = slavic_pagan_reformed
				}
				character_event = { id = byzsla_slavic_event_swarog.12 days = 2 } #Koniec reformed
			}
		}
	}
	option = {
		name = optB_byzsla_slavic_event_swarog.9	#Też skacz
		trigger = {
			NOT = { trait = wounded }
			NOT = { trait = maimed }
			is_ill = no
			is_pregnant = no
		}
		random = {
			chance = 30
			add_trait = wounded
		}
		prestige = 15
		piety = 30
		if = {
			limit = {
				trait = peasant_leader
			}
			add_character_modifier = {
				name = byzsla_swarog_chlopki2
				duration = 365
			}
		}
		if = {
			limit = {
				NOT = { trait = peasant_leader }
			}
			add_character_modifier = {
				name = byzsla_swarog_chlopki
				duration = 365
			}
		}
		hidden_tooltip = {
			if = {
				limit = {
					OR = {
						religion = slavic_pagan
						religion = old_slavic_pagan
					}
				}
				character_event = { id = byzsla_slavic_event_swarog.13 days = 2 } #Koniec
			}
			if = {
				limit = {
					religion = slavic_pagan_reformed
				}
				character_event = { id = byzsla_slavic_event_swarog.12 days = 2 } #Koniec reformed
			}
		}
	}
	option = {
		name = optA_byzsla_slavic_event_swarog.9	#Wyszydź ich
		trigger = {
			trait = cynical
		}
		add_character_modifier = {
			name = byzsla_swarog_szlachta
			duration = 365
		}
		hidden_tooltip = {
			if = {
				limit = {
					OR = {
						religion = slavic_pagan
						religion = old_slavic_pagan
					}
				}
				character_event = { id = byzsla_slavic_event_swarog.13 days = 2 } #Koniec
			}
			if = {
				limit = {
					religion = slavic_pagan_reformed
				}
				character_event = { id = byzsla_slavic_event_swarog.12 days = 2 } #Koniec reformed
			}
		}
	}
}
# byzsla_slavic_event_swarog.10 - Pożar!

character_event = {
	id = byzsla_slavic_event_swarog.10
	desc = desc_byzsla_slavic_event_swarog.10
	
	picture = GFX_evt_feast
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.10
		religion_authority = {
			modifier = temple_looted
		}
		capital_scope = {
			add_province_modifier = {
				name = byzsla_temple_zniszczon
				duration = 365
			}
		}
		prestige = -75
		clr_character_flag = byzsla_slavic_event_swarog_dlaga_ogniotance
		clr_character_flag = bspm_swarog_ofiara_moj_kon1
		clr_character_flag = bspm_swarog_ofiara_byk
		clr_character_flag = bspm_swarog_ofiara_kon
		clr_character_flag = bspm_swarog_ofiara_moj_kon2
		clr_character_flag = recent_minor_decision
		clr_character_flag = holding_jarilo
		clr_character_flag = do_not_disturb
	}
}

# byzsla_slavic_event_swarog.11 - Dar rzemieślników dla władcy na koniec (zreformowane + nieplemienne)

character_event = {
	id = byzsla_slavic_event_swarog.11
	desc = desc_byzsla_slavic_event_swarog.11
	
	picture = GFX_evt_feast
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.11
		add_character_modifier = {
			name = town_appreciate
			duration = 365
		}
		scaled_wealth = { value = 0.1 min = 40 } 
		prestige = 30
		hidden_tooltip = {
			if = {
				limit = {
					OR = {
						religion = slavic_pagan
						religion = old_slavic_pagan
					}
				}
				character_event = { id = byzsla_slavic_event_swarog.13 days = 2 } #Koniec
			}
			if = {
				limit = {
					religion = slavic_pagan_reformed
				}
				character_event = { id = byzsla_slavic_event_swarog.12 days = 2 } #Koniec reformed
			}
		}
	}
}

# byzsla_slavic_event_swarog.12 - Koniec (zreformowane)

character_event = {
	id = byzsla_slavic_event_swarog.12
	desc = desc_byzsla_slavic_event_swarog.12
	
	picture = GFX_evt_feast
	is_triggered_only = yes
	
	option = {
		piety = 100
		prestige = 100
		name = optA_byzsla_slavic_event_swarog.12
		remove_character_modifier = holding_large_feast
		if = {
			limit = {
				has_character_flag = byzsla_slavic_event_swarog_dlaga_ogniotance
			}
			prestige = 25
		}
		if = {
			limit = {
				OR = {
					has_character_flag = bspm_swarog_ofiara_moj_kon1
					has_character_flag = bspm_swarog_ofiara_moj_kon2
				}
			}
			add_character_modifier = {
				name = byzsla_swarog_koliata3
				duration = 730
			}
		}
		if = {
			limit = {
				has_character_flag = bspm_swarog_ofiara_byk
			}
			add_character_modifier = {
				name = byzsla_swarog_koliata2
				duration = 365
			}
		}
		if = {
			limit = {
				has_character_flag = bspm_swarog_ofiara_kon
			}
			add_character_modifier = {
				name = byzsla_swarog_koliata2
				duration = 365
			}
		}
		if = {
			limit = {
				NOT = {
					has_character_flag = bspm_swarog_ofiara_kon
					has_character_flag = bspm_swarog_ofiara_byk
					has_character_flag = bspm_swarog_ofiara_moj_kon1
					has_character_flag = bspm_swarog_ofiara_moj_kon2
				}
			}
			add_character_modifier = {
				name = byzsla_swarog_koliata1
				duration = 365
			}
		}
		clr_character_flag = byzsla_slavic_event_swarog_dlaga_ogniotance
		clr_character_flag = bspm_swarog_ofiara_moj_kon1
		clr_character_flag = bspm_swarog_ofiara_byk
		clr_character_flag = bspm_swarog_ofiara_kon
		clr_character_flag = bspm_swarog_ofiara_moj_kon2
		clr_character_flag = recent_minor_decision
		clr_character_flag = holding_jarilo
		clr_character_flag = do_not_disturb
	}
}

# byzsla_slavic_event_swarog.13 - Koniec (niezreformowane)

character_event = {
	id = byzsla_slavic_event_swarog.13
	desc = desc_byzsla_slavic_event_swarog.12
	
	picture = GFX_evt_feast
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.12
		piety = 100
		prestige = 100
		if = {
			limit = {
				has_character_flag = byzsla_slavic_event_swarog_dlaga_ogniotance
			}
			prestige = 25
		}
		if = {
			limit = {
				OR = {
					has_character_flag = bspm_swarog_ofiara_moj_kon1
					has_character_flag = bspm_swarog_ofiara_moj_kon2
				}
			}
			add_character_modifier = {
				name = byzsla_swarog_koliata3
				duration = 730
			}
		}
		if = {
			limit = {
				has_character_flag = bspm_swarog_ofiara_byk
			}
			add_character_modifier = {
				name = byzsla_swarog_koliata2
				duration = 365
			}
		}
		if = {
			limit = {
				has_character_flag = bspm_swarog_ofiara_kon
			}
			add_character_modifier = {
				name = byzsla_swarog_koliata2
				duration = 365
			}
		}
		if = {
			limit = {
				NOT = {
					has_character_flag = bspm_swarog_ofiara_kon
					has_character_flag = bspm_swarog_ofiara_byk
					has_character_flag = bspm_swarog_ofiara_moj_kon1
					has_character_flag = bspm_swarog_ofiara_moj_kon2
				}
			}
			add_character_modifier = {
				name = byzsla_swarog_koliata1
				duration = 365
			}
		}
		clr_character_flag = byzsla_slavic_event_swarog_dlaga_ogniotance
		clr_character_flag = bspm_swarog_ofiara_moj_kon1
		clr_character_flag = bspm_swarog_ofiara_byk
		clr_character_flag = bspm_swarog_ofiara_kon
		clr_character_flag = bspm_swarog_ofiara_moj_kon2
		clr_character_flag = recent_minor_decision
		clr_character_flag = holding_jarilo
		clr_character_flag = do_not_disturb
	}
}	

# byzsla_slavic_event_swarog.14 - Saboteż welesowców

character_event = {
	id = byzsla_slavic_event_swarog.14
	desc = desc_byzsla_slavic_event_swarog.14
	
	picture = GFX_evt_feast
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.14
		religion_authority = {
			modifier = byzsla_slavic_sabotaz_nienasz
		}
		hidden_tooltip = {
			random_realm_character = {
				limit = {
					religion = chram_vales
				}
				religion_authority = {
					modifier = byzsla_slavic_sabotaz_nasz
				}
			}
		}
		prestige = -75
		clr_character_flag = byzsla_slavic_event_swarog_dlaga_ogniotance
		clr_character_flag = bspm_swarog_ofiara_moj_kon1
		clr_character_flag = bspm_swarog_ofiara_byk
		clr_character_flag = bspm_swarog_ofiara_kon
		clr_character_flag = bspm_swarog_ofiara_moj_kon2
		clr_character_flag = recent_minor_decision
		clr_character_flag = holding_jarilo
		clr_character_flag = do_not_disturb
	}
}

# byzsla_slavic_event_swarog.15 - Saboteż rodimowierców

character_event = {
	id = byzsla_slavic_event_swarog.15
	desc = desc_byzsla_slavic_event_swarog.15
	
	picture = GFX_evt_feast
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.15
		religion_authority = {
			modifier = byzsla_slavic_sabotaz_nienasz
		}
		hidden_tooltip = {
			random_realm_character = {
				limit = {
					religion = chram_roda
				}
				religion_authority = {
					modifier = byzsla_slavic_sabotaz_nasz
				}
			}
		}
		prestige = -75
		clr_character_flag = byzsla_slavic_event_swarog_dlaga_ogniotance
		clr_character_flag = bspm_swarog_ofiara_moj_kon1
		clr_character_flag = bspm_swarog_ofiara_byk
		clr_character_flag = bspm_swarog_ofiara_kon
		clr_character_flag = bspm_swarog_ofiara_moj_kon2
		clr_character_flag = recent_minor_decision
		clr_character_flag = holding_jarilo
		clr_character_flag = do_not_disturb
	}
}

# byzsla_slavic_event_swarog.16 - Morderstwo nadwornego żercy - złe zakończenie

character_event = {
	id = byzsla_slavic_event_swarog.16
	desc = desc_byzsla_slavic_event_swarog.16
	
	picture = GFX_evt_feast
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.16
		job_spiritual = {
			death = {
				death_reason = death_murder_unknown_arrow
			}
		}
		clr_character_flag = byzsla_slavic_event_swarog_dlaga_ogniotance
		clr_character_flag = bspm_swarog_ofiara_moj_kon1
		clr_character_flag = bspm_swarog_ofiara_byk
		clr_character_flag = bspm_swarog_ofiara_kon
		clr_character_flag = bspm_swarog_ofiara_moj_kon2
		clr_character_flag = recent_minor_decision
		clr_character_flag = holding_jarilo
		clr_character_flag = do_not_disturb
	}
}

# byzsla_slavic_event_swarog.17 - Gawędziarz (rasskacik) wspaniale opowiedział a żerca wyjaśnił opowieść o Swarogu

character_event = {
	id = byzsla_slavic_event_swarog.17
	desc = desc_byzsla_slavic_event_swarog.17
	
	picture = GFX_evt_feast
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.17
		random_realm_character = {
			limit = { has_minor_title = title_court_rasskacik }
			prestige = 75
		}
		prestige = 75
		if = {
			limit = {
				religion = slavic_pagan_reformed 
			}
			character_event = { id = byzsla_slavic_event_swarog.7 days = 1 }	#kontynuacja
		}
		if = {
			limit = {
				NOT = { religion = slavic_pagan_reformed }
			}
			character_event = { id = byzsla_slavic_event_swarog.6 days = 1 }	#kontynuacja
		}
	}
}

############################
# byzsla_slavic_event_swarog.21 - Zaćmienie
############################

narrative_event = {
	id = byzsla_slavic_event_swarog.21
	desc = desc_byzsla_slavic_event_swarog.21
	border = "GFX_event_narrative_frame_religion"	
	title = "tyt_byzsla_slavic_event_swarog.21"
	picture = GFX_evt_heretic
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.21
		
		custom_tooltip = { text = byzsla_slavic_event_zacmienie }
		hidden_tooltip = {
			any_demesne_province = {
				random_list = {
					60 = {}
					20 = { 
						religion = chram_roda 
						random = {
							chance = 20
							add_province_modifier = {
								name = heretic_stronghold
								duration = 3650
							}
						}
					}
					20 = { 
						religion = chram_vales
						random = {
							chance = 20
							add_province_modifier = {
								name = heretic_stronghold
								duration = 3650
							}
						}
					}
				}
			}
		}
	}
}

# byzsla_slavic_event_swarog.22 - Celowość

character_event = {
	id = byzsla_slavic_event_swarog.22
	desc = desc_byzsla_slavic_event_swarog.22
	
	picture = GFX_evt_kuznia
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.22		#Przetop broń
		set_character_flag = bspm_swarog_bron
		hidden_tooltip = {
			character_event = {
				id = byzsla_slavic_event_swarog.23
				days = 5
			}
		}
	}
	option = {
		name = optB_byzsla_slavic_event_swarog.22		#Przetop narzędzia
		set_character_flag = bspm_swarog_narzedzia
		hidden_tooltip = {
			character_event = {
				id = byzsla_slavic_event_swarog.23
				days = 5
			}
		}
	}
}

# byzsla_slavic_event_swarog.23 - Pod bałwanem

character_event = {
	id = byzsla_slavic_event_swarog.23
	
	desc = {
		trigger = { 
			OR = {
				religion = old_slavic_pagan
				religion = slavic_pagan
			}
			has_character_flag = bspm_swarog_bron
		}
		text = desc_byzsla_slavic_event_swarog_prymityw_bron.23
	}
	desc = {
		trigger = { 
			OR = {
				religion = old_slavic_pagan
				religion = slavic_pagan
			}
			has_character_flag = bspm_swarog_narzedzia
		}
		text = desc_byzsla_slavic_event_swarog_prymityw_narzedzia.23
	}
	desc = {
		trigger = { 
			religion = slavic_pagan_reformed
			has_character_flag = bspm_swarog_narzedzia
		}
		text = desc_byzsla_slavic_event_swarog_feudal_narzedzia.23
	}
	desc = {
		trigger = { 
			religion = slavic_pagan_reformed
			has_character_flag = bspm_swarog_bron
		}
		text = desc_byzsla_slavic_event_swarog_feudal_bron.23
	}
	
	
	picture = GFX_evt_balwan
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.23
		hidden_tooltip = {
			random_list = {
				20 = {
					character_event = {
						id = byzsla_slavic_event_swarog.24
						days = 5
					}
				}
				50 = {
					character_event = {
						id = byzsla_slavic_event_swarog.25
						days = 5
					}
				}
				20 = {
					character_event = {
						id = byzsla_slavic_event_swarog.26
						days = 5
					}
				}
			}
		}
	}
}

# byzsla_slavic_event_swarog.24 - Zranienie kapłana

character_event = {
	id = byzsla_slavic_event_swarog.24
	desc = desc_byzsla_slavic_event_swarog.24
	
	picture = GFX_evt_kuznia
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.24		#Rana
		random_vassal = {
			limit = {
				has_landed_title = b_pruszkow
				health = 2
			}
			health = -1 
		}
		random_vassal = {
			limit = {
				has_landed_title = b_pruszkow
				NOT = { health = 2 }
				NOT = { trait = one_handed }
			}
			add_trait = one_handed
			hidden_tooltip = {
				health = 4
			}
		}
		random_vassal = {
			limit = {
				has_landed_title = b_pruszkow
				NOT = { health = 2 }
				trait = one_handed
			}
			add_trait = infection
			hidden_tooltip = {
				health = 3
			}
		}
		custom_tooltip = {
			text = TT_byzsla_slavic_event_swarog.24
		}
		hidden_tooltip = {
			character_event = {
				id = byzsla_slavic_event_swarog.25
			}
		}
	}
}

# byzsla_slavic_event_swarog.25 - Sukces

character_event = {
	id = byzsla_slavic_event_swarog.25
	
	desc = {
		trigger = { 
			has_character_flag = bspm_swarog_bron
		}
		text = desc_byzsla_slavic_event_swarog_bron.25
	}
	desc = {
		trigger = { 
			has_character_flag = bspm_swarog_narzedzia
		}
		text = desc_byzsla_slavic_event_swarog_narzedzia.25
	}
	
	picture = GFX_evt_kuznia
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.25
		random = {
			chance = 50
			piety = 100
		}
		if = {
			limit = {
				has_character_flag = bspm_swarog_bron
			}
			add_character_modifier = {
				name = byzsla_slavic_swarog_bron
				duration = 3650
			}
			hidden_tooltip = {
				random = {
					chance = 30
					character_event = {
						id = byzsla_slavic_event_swarog.28
						days = 30
						random = 100
					}
				}
			}
		}
		if = {
			limit = {
				has_character_flag = bspm_swarog_narzedzia
			}
			add_character_modifier = {
				name = byzsla_slavic_swarog_tool
				duration = 3650
			}
			hidden_tooltip = {
				random = {
					chance = 30
					character_event = {
						id = byzsla_slavic_event_swarog.27
						days = 100
						random = 250
					}
				}
			}
		}
	}
}

# byzsla_slavic_event_swarog.26 - Niejednoznaczność
character_event = {
	id = byzsla_slavic_event_swarog.26
	
	desc = {
		trigger = { 
			has_character_flag = bspm_swarog_bron
		}
		text = desc_byzsla_slavic_event_swarog_bron.26
	}
	desc = {
		trigger = { 
			has_character_flag = bspm_swarog_narzedzia
		}
		text = desc_byzsla_slavic_event_swarog_narzedzia.26
	}
	
	picture = GFX_evt_kuznia
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.26
		random = {
			chance = 20
			piety = 100
		}
		if = {
			limit = {
				has_character_flag = bspm_swarog_narzedzia
			}
			add_character_modifier = {
				name = byzsla_slavic_swarog_bron2
				duration = 1825
			}
		}
		if = {
			limit = {
				has_character_flag = bspm_swarog_bron
			}
			add_character_modifier = {
				name = byzsla_slavic_swarog_tool2
				duration = 1825
			}
		}
	}
}

# byzsla_slavic_event_swarog.27 - Kasa od miast

character_event = {
	id = byzsla_slavic_event_swarog.27
	
	desc = {
		trigger = { 
			is_tribal = yes
		}
		text = desc_byzsla_slavic_event_swarog_tribal.27
	}
	desc = {
		trigger = { 
			NOT = { is_tribal = yes }
		}
		text = desc_byzsla_slavic_event_swarog_feudal.27
	}
	
	picture = GFX_evt_viking_throneroom_oldgods
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.27
		scaled_wealth = { value = 2 min = 30 max = 100 } 
	}
	option = {
		name = optB_byzsla_slavic_event_swarog.27
		tooltip_info = gluttonous
		trigger = {
			trait = gluttonous
		}
		prestige = -30
		scaled_wealth = { value = 3 min = 60 max = 200 } 
		add_character_modifier = {
			name = the_greedy 
			duration = 400
		}
		add_character_modifier = {
			name = despised_aristocrat
			duration = 850
		}
	}
	option = {
		name = optC_byzsla_slavic_event_swarog.27
		scaled_piety = { value = 2 min = 30 max = 200 } 
		add_character_modifier = {
			name = church_appreciates 
			duration = 720
		}
		if = {
			limit = {
				trait = gluttonous
			}
			random = {
				chance = 30
				remove_trait = gluttonous
			}
		}
	}
}

# byzsla_slavic_event_swarog.28 - Przybycie wojaków

character_event = {
	id = byzsla_slavic_event_swarog.28
	
	desc = desc_byzsla_slavic_event_swarog.28
	picture = GFX_evt_viking_throneroom_oldgods
	is_triggered_only = yes
	
	trigger = {
		war = yes
	}
	
	option = {
		name = optA_byzsla_slavic_event_swarog.27
		if = {
			limit = {
				is_tribal = yes
			}
			capital_scope = {
				PREV = {
					spawn_unit = {
						owner = ROOT
						province = PREV
						home = PREV
						troops = {
							archers = { 500 500 }
							light_infantry = { 1500 1500 }
							heavy_infantry = { 300 300 }
							light_cavalry = { 200 200 }
						}
						attrition = 0.6
						maintenance_multiplier = 0.5
					}
				}
			}
		}
		if = {
			limit = {
				NOT = { is_tribal = yes }
			}
			capital_scope = {
				PREV = {
					spawn_unit = {
						owner = ROOT
						province = PREV
						home = PREV
						troops = {
							archers = { 800 800 }
							light_infantry = { 800 800 }
							heavy_infantry = { 600 600 }
							light_cavalry = { 200 200 }
							pikemen = { 200 200 }
							heavy_cavalry = { 50 500 }
						}
						attrition = 1.0
						maintenance_multiplier = 1.0
					}
				}
			}
		}
	}
}

# byzsla_slavic_event_swarog.29 - Niszczenie warsztatów przez prymitywów

province_event = {
	id = byzsla_slavic_event_swarog.29
	desc = desc_byzsla_slavic_event_swarog.29
	
	picture = GFX_evt_heretic

	trigger = {
		is_slav_religion = yes
		month = 6
		NOT = {
			has_province_modifier = byzsla_slavic_swarog_napad
		}
		NOT = {
			month = 8
		}
		owner = {
			NOT = {
				religion = old_slavic_pagan
			}
			capital_scope = {
				NOT = {
					has_province_modifier = byzsla_ogolny_timer
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 0.8
			owner = {
				NOT = { is_tribal = yes }
			}
		}
		modifier = {
			factor = 2.5
			owner = {
				war = yes
			}
		}
	}
	immediate = {
		owner = {
			capital_scope = {
				add_province_modifier = {
					name = byzsla_ogolny_timer
					duration = 150
					hidden = yes
				}
			}
		}
	}
	option = {
		name = optA_byzsla_slavic_event_swarog.29	#Bywa
		add_province_modifier = {
			name = byzsla_slavic_swarog_napad
			duration = 720
		}
		if = {
			limit = {
				has_global_flag = slavic_reformation
			}
			random = {
				chance = 3
				religion = old_slavic_pagan
			}
		}
		random_courtier = {
			limit = {
				at_location = ROOT
				NOT = { trait = wounded }
			}
			random = {
				chance = 50
				add_trait_wounded_effect = yes
			}
		}
		random_vassal = {
			limit = {
				at_location = ROOT
				trait = wounded
			}
			random = {
				chance = 10
				death = {
					death_reason = death_rabble
				}
			}
		}
		random_courtier = {
			limit = {
				at_location = ROOT
				trait = wounded
			}
			random = {
				chance = 10
				death = {
					death_reason = death_rabble
				}
			}
		}
		random_vassal = {
			limit = {
				at_location = ROOT
				NOT = { trait = wounded }
			}
			random = {
				chance = 50
				add_trait_wounded_effect = yes
			}
		}
		
		
	}
	option = {
		name = optB_byzsla_slavic_event_swarog.29	#Gaś pożar
		tooltip_info = brave
		trigger = {
			owner = {
				trait = brave
				NOT = { is_inaccessible_trigger = yes }
				NOT = { health_traits = 1 }
				
			}
		}
		random = {
			chance = 80
			add_province_modifier = {
				name = byzsla_slavic_swarog_napad
				duration = 720
			}
		}
		if = {
			limit = {
				has_global_flag = slavic_reformation
			}
			random = {
				chance = 1
				religion = old_slavic_pagan
			}
		}
		owner = {
			prestige = 100
			piety = 100
			add_character_modifier = {
				name = popular_ruler
				duration = 1500
			}
			random = {
				chance = 33
				health = -1
			}
			random = {
				chance = 25
				death = {
					death_reason = death_murder_unknown_combustion
				}
				if = {
					limit = { has_nickname = no }
					give_nickname = nick_the_bold
				}
			}
		}
	}
}

# byzsla_slavic_event_swarog.30 - Nadmierne uwielbienie Słońca

province_event = {
	id = byzsla_slavic_event_swarog.30
	desc = desc_byzsla_slavic_event_swarog.30
	
	picture = GFX_evt_heretic

	trigger = {
		is_slav_religion = yes
		month = 7
		NOT = {
			has_province_modifier = byzsla_slavic_swarog_zmeczenie
		}
		NOT = {
			month = 10
		}
		owner = {
			capital_scope = {
				NOT = {
					has_province_modifier = byzsla_ogolny_timer
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 100
		modifier = {
			factor = 2.5
			owner = {
				war = yes
			}
		}
		modifier = {
			factor = 0.8
			NOT = { month = 9 }
		}
	}
	immediate = {
		owner = {
			capital_scope = {
				add_province_modifier = {
					name = byzsla_ogolny_timer
					months = 12
					hidden = yes
				}
			}
		}
	}
	option = {
		name = optA_byzsla_slavic_event_swarog.30	#Bywa
		add_province_modifier = {
			name = byzsla_slavic_swarog_zmeczenie
			duration = 720
		}
	}
}

# byzsla_slavic_event_swarog.31 - Gildia łucznicza

province_event = {
	id = byzsla_slavic_event_swarog.31
	desc = desc_byzsla_slavic_event_swarog.31
	
	picture = GFX_evt_longbowman

	trigger = {
		is_slav_religion = yes
		NOT = {
			has_province_modifier = byzsla_slavic_swarog_strzala
		}
		owner = {
			OR = {
				religion_group = pagan_group
				trait = sympathy_pagans
			}
			capital_scope = {
				NOT = {
					has_province_modifier = byzsla_ogolny_timer
				}
			}
		}
	}
	
	mean_time_to_happen = {
		months = 300
		modifier = {
			factor = 0.89
			owner = {
				war = yes
			}
		}
		modifier = {
			factor = 2
			NOT = { month = 5 }
		}
		modifier = {
			factor = 0.8
			owner = {
				is_republic = yes
			}
		}
	}
	immediate = {
		owner = {
			capital_scope = {
				add_province_modifier = {
					name = byzsla_ogolny_timer
					months = 12
					hidden = yes
				}
			}
		}
	}
	option = {
		name = optA_byzsla_slavic_event_swarog.27	#OK
		add_province_modifier = {
			name = byzsla_slavic_swarog_strzala
			duration = 720
		}
	}
}

# byzsla_slavic_event_swarog.32 - Spór gildii ze świątynią (inicjacja)

character_event = {
	id = byzsla_slavic_event_swarog.32
	
	hide_window = yes
	
	only_playable = yes
	prisoner = no
	only_capable = yes
	
	trigger = {
		owns = 529		#Płock
		529 = {
			is_slav_religion = yes
			NOT = { has_province_modifier = bspm_swarog_timer }
		}
		any_vassal = {
			is_republic = yes 
		}
		has_focus = focus_business
		any_vassal = {
			is_theocracy = yes 
			has_landed_title = b_pruszkow
			is_slav_religion = yes
		}
	}
	mean_time_to_happen = {
		years = 2
	}
	immediate = {
		529 = {
			add_province_modifier = {
				name = bspm_swarog_timer
				duration = 1500
				hidden = yes
			}
		}
		random_vassal = {
			limit = {
				is_republic = yes 
			}
			set_character_flag = bspm_flaga_pruszkowa_1
			character_event = {
				id = byzsla_slavic_event_swarog.33
			}
		}
	}
}

# byzsla_slavic_event_swarog.33 - Spór gildii ze świątynią (burżuj)

character_event = {
	id = byzsla_slavic_event_swarog.33
	
	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {
		FROM = {
			character_event = {
				id = byzsla_slavic_event_swarog.34
			}
		}
	}
}

# byzsla_slavic_event_swarog.34 - Spór gildii ze świątynią (senior)

character_event = {
	id = byzsla_slavic_event_swarog.34
	desc = desc_byzsla_slavic_event_swarog.34
	
	picture = GFX_evt_kuznia
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.34
		add_character_modifier = {
			name = town_appreciate
			duration = 720
		}
		add_character_modifier = {
			name = church_unfunny
			duration = 720
		}
		wealth = 250
		piety = -100
		random = {
			chance = 50
			change_stewardship = 1
		}
	}
	option = {
		name = optB_byzsla_slavic_event_swarog.34
		add_character_modifier = {
			name = the_pious
			duration = 720
		}
		piety = 150
		add_character_modifier = {
			name = merchants_unhappy
			duration = 720
		}
		economy_techpoints = -50
	}
}

# byzsla_slavic_event_swarog.35 - Wspaniały kowal w kuźni świątynnej

character_event = {
	id = byzsla_slavic_event_swarog.35
	desc = desc_byzsla_slavic_event_swarog.35
	
	picture = GFX_evt_kuznia

	min_age = 16
	capable_only = yes
	only_playable = yes
	prisoner = no
	religion_group = pagan_group
	trigger = {
		owns = 529		#Płock
		529 = {
			is_slav_religion = yes
			NOT = { has_province_modifier = byzsla_slavic_swarog_kowal_timer }
		}
		OR = {
			religion_group = pagan_group
			trait = sympathy_pagans
		}
	}
	
	mean_time_to_happen = {
		years = 30
	}
	immediate = {
		529 = {
			add_province_modifier = {
				name = byzsla_slavic_swarog_kowal_timer
				duration = 2000
				hidden = yes
			}
		}
	}
	option = {
		name = optA_byzsla_slavic_event_swarog.35
		piety = 25
		prestige = 25
		529 = {
			add_province_modifier = {
				name = byzsla_slavic_swarog_kowal
				duration = 8000
			}
		}
	}
	option = {
		name = optB_byzsla_slavic_event_swarog.35
		prestige = 70
		wealth = -75
		capital_scope = {
			add_province_modifier = {
				name = byzsla_slavic_swarog_kowal
				duration = 4000
			}
		}
	}
}

# byzsla_slavic_event_swarog.36 - Rody rzemieślnicze trudnią się przemytem 

character_event = {
	id = byzsla_slavic_event_swarog.36
	desc = desc_byzsla_slavic_event_swarog.36
	
	picture = GFX_evt_kuznia
	
	min_age = 16
	capable_only = yes
	only_playable = yes
	prisoner = no
	religion_group = pagan_group
	trigger = {
		owns = 529		#Płock
		529 = {
			is_slav_religion = yes
			NOT = { has_province_modifier = smugglers_ring }
		}
	}
	
	mean_time_to_happen = {
		years = 30
	}
	option = {
		name = optB_byzsla_slavic_event_swarog.34
		529 = {
			add_province_modifier = {
				name = smugglers_ring
				duration = -1
			}
		}
	}
	option = {
		name = optB_byzsla_slavic_event_swarog.35
		wealth = -150
	}
}

#	Żarptak
# byzsla_slavic_event_swarog.37 - poszukiwania

character_event = {
	id = byzsla_slavic_event_swarog.37
	desc = desc_byzsla_slavic_event_swarog.37
	
	picture = GFX_evt_byzsla_zar_ptak
	border = GFX_event_normal_frame_religion
	
	min_age = 16
	capable_only = yes
	only_playable = yes
	prisoner = no
	religion_group = pagan_group
	trigger = {
		is_slav_religion = yes
		NOT = { religion = chram_roda }
		NOT = {	religion = chram_vales }
		NOT = { has_artifact = bspm_pioro }
	}
	mean_time_to_happen = {
		years = 150
	}
	option = {
		name = optA_byzsla_slavic_event_swarog.37
		wealth = -50
		add_character_modifier = {
			name = pays_for_artifact_hunt_minor
			duration = -1
		}
		random_list = {
			20 = {
				character_event = {
					id = byzsla_slavic_event_swarog.38
					days = 30
					random = 100
				}
			}
			80 = {
				character_event = {
					id = byzsla_slavic_event_swarog.39
					days = 30
					random = 130
				}
			}
		}
	}
	option = {
		name = optB_byzsla_slavic_event_swarog.37
		wealth = 5
		piety = 10
		prestige = 10
	}
	option = {
		name = optC_byzsla_slavic_event_swarog.37
		tooltip_info = poet
		trigger = { trait = poet }
		add_character_modifier = {
			name = published_poet 
			duration = 180
		}
		prestige = 100
		capital_scope = {
			add_province_modifier = {
				name = bspm_swarog_poeta
				duration = 600
			}
		}
	}
}

# byzsla_slavic_event_swarog.38 - znalezienie

character_event = {
	id = byzsla_slavic_event_swarog.38
	desc = desc_byzsla_slavic_event_swarog.38
	
	picture = GFX_evt_byzsla_zar_ptak
	border = GFX_event_normal_frame_religion
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.38
		remove_character_modifier = pays_for_artifact_hunt_minor
		add_artifact = bspm_pioro
		prestige = 100
	}
}

# byzsla_slavic_event_swarog.39 - nieodnalezienie

character_event = {
	id = byzsla_slavic_event_swarog.39
	desc = desc_byzsla_slavic_event_swarog.39
	
	picture = GFX_evt_whispers
	border = GFX_event_normal_frame_religion
	is_triggered_only = yes
	
	option = {
		name = optA_byzsla_slavic_event_swarog.39
		remove_character_modifier = pays_for_artifact_hunt_minor
		prestige = -100
	}
}

# byzsla_slavic_event_swarog.40 - samospalenie pióra


character_event = {
	id = byzsla_slavic_event_swarog.40
	desc = desc_byzsla_slavic_event_swarog.40
	
	picture = GFX_evt_byzsla_zar_ptak
	border = GFX_event_normal_frame_religion
	is_triggered_only = yes

	trigger = {
		has_artifact = bspm_pioro
	}
	
	option = {
		name = optA_byzsla_slavic_event_swarog.40
		trigger = {
			is_slav_religion = yes
		}
		destroy_artifact = bspm_pioro
	}
	option = {
		name = optB_byzsla_slavic_event_swarog.40
		trigger = {
			NOT = { is_slav_religion = yes }
		}
		destroy_artifact = bspm_pioro
	}
}