namespace = byzsla_slavic_event_kultysci
############
#byzsla_slavic_event_kultysci.100 - losuj
#byzsla_slavic_event_kultysci.15 - Postawienie monumentu inicjalizacja
#byzsla_slavic_event_kultysci.8 - Postawienie monumentu start
#byzsla_slavic_event_kultysci.9 - Postawienie monumentu koniec
############ Peruniacy
#byzsla_slavic_event_kultysci.1 - wybór Mokoszy
#byzsla_slavic_event_kultysci.2 - wybór Swaroga
####### Dla Mokoszy
#byzsla_slavic_event_kultysci.3 - Rozwój umiejętności intryg/dyplomacji
#byzsla_slavic_event_kultysci.4 - Przyjaźń z dzieckiem/krewnym
#byzsla_slavic_event_kultysci.5 - Dziecko nie rozumie twej drogi
#byzsla_slavic_event_kultysci.6 - Palec boży
#byzsla_slavic_event_kultysci.7 - Wykrycie spisku
####### Dla Swaroga
#byzsla_slavic_event_kultysci.10 - Rozwój umiejętności nauki/zarządzania
#byzsla_slavic_event_kultysci.11 - Przyjaźń duchowni/miastowi
#byzsla_slavic_event_kultysci.12 - Dziecko boi się ognia
#byzsla_slavic_event_kultysci.13 - Palec boży
#byzsla_slavic_event_kultysci.14 - Objawienie 
############ Welesowcy
#byzsla_slavic_event_kultysci.17 - Wybór (Weles, Marzanna, Trzygłów, Berstuk)
#byzsla_slavic_event_kultysci.18 - Wybór Trzygłówa
#byzsla_slavic_event_kultysci.19 - Wybór Berstuka
####### Dla Trzygłówa
#byzsla_slavic_event_kultysci.20 - Rozwój umiejętności wojennych
#byzsla_slavic_event_kultysci.21 - Przyjaźń z żołnierzem
#byzsla_slavic_event_kultysci.22 - Dziecko boi się wojny
#byzsla_slavic_event_kultysci.23 - Wojo
#byzsla_slavic_event_kultysci.24 - Palec boży
####### Dla Berstuka
#byzsla_slavic_event_kultysci.25 - Rozwój umiejętności gospodarskich/wojskowych
#byzsla_slavic_event_kultysci.26 - Przyjaźń z leśniczym
#byzsla_slavic_event_kultysci.27 - Dziecko boi się lasów
#byzsla_slavic_event_kultysci.28 - Wzmocniona gospodarka leśna
#byzsla_slavic_event_kultysci.29 - Palec boży (siła lasu)
####### Rodowcy
#byzsla_slavic_event_kultysci.25 - Wybór (Rod, Chors, Perepłut, Marowica)
#byzsla_slavic_event_kultysci.26 - Wybór Roda
#byzsla_slavic_event_kultysci.27 - Wybór Chorsa
#byzsla_slavic_event_kultysci.28 - Wybór Perepłuta
#byzsla_slavic_event_kultysci.29 - Wybór Marowicy
############

#Info wyboru Mokoszy
character_event = {
	id = byzsla_slavic_event_kultysci.1

	desc = desc_byzsla_slavic_event_kultysci.1
	border = GFX_event_normal_frame_intrigue
	picture = GFX_evt_midwinter_blot_oldgods

	is_triggered_only = yes

	#OK
	option = {
		name = optA_byzsla_slavic_event_kultysci.1
		hidden_tooltip = {
			character_event = {
				id = byzsla_slavic_event_kultysci5.1
				days = 10
			}
		}
	}
}

#Info wyboru Swaroga
character_event = {
	id = byzsla_slavic_event_kultysci.2

	desc = desc_byzsla_slavic_event_kultysci.2
	border = GFX_event_normal_frame_religion
	picture = GFX_evt_midwinter_blot_oldgods

	is_triggered_only = yes

	#OK
	option = {
		name = optA_byzsla_slavic_event_kultysci.2
		hidden_tooltip = {
			character_event = {
				id = byzsla_slavic_event_kultysci5.1
				days = 10
			}
		}
	}
}

#byzsla_slavic_event_kultysci.3 - Rozwój umiejętności intryg/dyplomacji

character_event = {
	id = byzsla_slavic_event_kultysci.3
	desc = desc_byzsla_slavic_event_kultysci.3
	
	border = GFX_event_normal_frame_diplomacy
	picture = GFX_evt_family

	is_triggered_only = yes
	hide_from = yes

	#OK
	option = {
		name = optA_byzsla_slavic_event_kultysci.3
		random_list = {
			50 = { change_intrigue = 1 }
			50 = { change_diplomacy = 1 }
		}
	}
}

#byzsla_slavic_event_kultysci.4 - Przyjaźń z dzieckiem/krewnym

character_event = {
	id = byzsla_slavic_event_kultysci.4
	desc = desc_byzsla_slavic_event_kultysci.4
	
	border = GFX_event_normal_frame_diplomacy
	picture = GFX_evt_family

	is_triggered_only = yes
	hide_from = yes

	option = {
		name = optA_byzsla_slavic_event_kultysci.4
		if = {
			limit = {
				num_of_children = 1
				any_child = {
					NOT = { is_friend = ROOT }
					NOT = { is_rival = ROOT }
				}
			}
			random_child = {
				limit = {
					NOT = { is_friend = ROOT }
					NOT = { is_rival = ROOT }
				}
				add_friend = ROOT 
			}
		}
		if = {
			limit = {
				num_of_children = 1
				any_child = {
					is_rival = ROOT
				}
			}
			random_child = {
				limit = {
					is_rival = ROOT
				}
				remove_rival = ROOT 
			}
		}
		if = {
			limit = {
				NOT = { num_of_children = 1 }
				num_of_dynasty_members = 2
			}
			random_dynasty_member = {
				add_friend = ROOT 
			}
		}
		if = {
			limit = {
				NOT = { num_of_children = 1 }
				NOT = { num_of_dynasty_members = 2 }
			}
			random_courtier = {
				add_friend = ROOT 
			}
		}
	}
	
	option = {
		name = optB_byzsla_slavic_event_kultysci.4
		piety = 50
	}
}