namespace = byzsla_slavic_event_zmij

############################
# byzsla_slavic_event_zmij.1 - Proroctwo Żmija
# byzsla_slavic_event_zmij.2 - Początek budowy labiryntu
# byzsla_slavic_event_zmij.3 - Zbudowano - prowincja
# byzsla_slavic_event_zmij.4 - Zbudowano - budowniczy
# byzsla_slavic_event_zmij.5 - Zbudowano - świat
# byzsla_slavic_event_zmij.6 - Psujka lub pomoc w budowie (do użycia)
# byzsla_slavic_event_zmij.7 - Psujka lub pomoc w budowie (do użycia)
# byzsla_slavic_event_zmij.8 - Psujka lub pomoc w budowie (do użycia)
# byzsla_slavic_event_zmij.9 - Psujka lub pomoc w budowie (do użycia)
################
# byzsla_slavic_event_zmij.10 - Początek pielgrzymki
# byzsla_slavic_event_zmij.11 - Dojście do celu
# byzsla_slavic_event_zmij.12 - 
# byzsla_slavic_event_zmij.13 - 
# byzsla_slavic_event_zmij.14 - Niedźwiedź
# byzsla_slavic_event_zmij.15 - 
# byzsla_slavic_event_zmij.16 - Spotkanie szaleńca
# byzsla_slavic_event_zmij.17 - 
# byzsla_slavic_event_zmij.18 - 
# byzsla_slavic_event_zmij.19 - 
# byzsla_slavic_event_zmij.20 - 
# byzsla_slavic_event_zmij.21 - Podróżny w potrzebie
# byzsla_slavic_event_zmij.22 - Spotkanie wilkołaka
# byzsla_slavic_event_zmij.23 - Spotkanie wampira
# byzsla_slavic_event_zmij.24 - Polowanie na wampira
# byzsla_slavic_event_zmij.25 - Nauka na trasie
# byzsla_slavic_event_zmij.26 - Kradzież czy dar
# byzsla_slavic_event_zmij.27 - Objawienie czarnego nieba
# byzsla_slavic_event_zmij.28 - W około straganów
# byzsla_slavic_event_zmij.29 - W około zabawy
# byzsla_slavic_event_zmij.30 - W około uczonych
# byzsla_slavic_event_zmij.31 - Wkroczenie do labiryntu
# byzsla_slavic_event_zmij.32 - Zgubienie się w labiryncie - powrót
# byzsla_slavic_event_zmij.33 - Zgubienie się w labiryncie - śmierć 
# byzsla_slavic_event_zmij.34 - Zgubienie się w labiryncie - szaleństwo
# byzsla_slavic_event_zmij.35 - Dojście spokojne do końca
# byzsla_slavic_event_zmij.36 - Dojście szaleńcze do końca
# byzsla_slavic_event_zmij.37 - Dojście mistyczne do końca
############################

# byzsla_slavic_event_zmij.1 - Proroctwo Żmija

narrative_event = {
	id = byzsla_slavic_event_zmij.1
	title = title_byzsla_slavic_event_zmij.1
	desc = desc_byzsla_slavic_event_zmij.1
	
	picture = GFX_evt_byzla_gamajun

	is_triggered_only = yes
	
	trigger = {
		religion = chram_vales
		is_landed = yes
		NOT = {
			has_global_flag = bspm_proroctwo_zmija_flaga
		}
	}
	
	option = {
		name = optA_byzsla_slavic_event_zmij.1 #Ok
		set_global_flag = bspm_proroctwo_zmija_flaga
	}
}

# byzsla_slavic_event_zmij.2 - Początek budowy labiryntu

character_event = {
	id = byzsla_slavic_event_zmij.2
	desc = desc_byzsla_slavic_event_zmij.2
	picture = GFX_evt_castle_construction
	border = GFX_event_normal_frame_religion
	
	is_triggered_only = yes
	
	hide_from = yes
	
	option = {
		name = optA_byzsla_slavic_event_zmij.2
		custom_tooltip = { text = budowy_labiryntu_start }
	}
}

# byzsla_slavic_event_zmij.3 - Zbudowano - prowincja

province_event = {
	id = byzsla_slavic_event_zmij.3
	
	hide_window = yes
	
	is_triggered_only = yes
	
	immediate = {
		owner = { narrative_event = { id = byzsla_slavic_event_zmij.4 } }
	}
}
# byzsla_slavic_event_zmij.4 - Zbudowano - budowniczy

narrative_event = {
	id = byzsla_slavic_event_zmij.4
	title = title_byzsla_slavic_event_zmij.4
	desc = desc_byzsla_slavic_event_zmij.4
	
	picture = GFX_evt_byzsla_labirynt
	border = GFX_event_narrative_frame_religion
	major = yes
	
	is_triggered_only = yes
	
	hide_from = yes
	
	major_trigger = {
		religion = chram_vales
	}
	immediate = {
		set_global_flag = bspm_proroctwo_zmija_flaga1
		clr_global_flag = bspm_proroctwo_zmija_flaga2
	}
	option = {
		name = optA_byzsla_slavic_event_zmij.4
		religion_authority = {
			modifier = byzsla_slavic_zmij_labirynt
			years = 30
		}
		if = {
			limit = {
				has_nickname = no
			}
			give_nickname = nick_the_shadow
		}
		hidden_tooltip = {
			random_playable_ruler = {
				limit = {
					ai = no
				}
				narrative_event = { id = byzsla_slavic_event_zmij.5 }
			}
		}
	}
}

# byzsla_slavic_event_zmij.5 - Zbudowano - świat
