namespace = byzsla_slavic_event_kultysci5

#byzsla_slavic_event_kultysci5.1 - losuj

character_event = {
	id = byzsla_slavic_event_kultysci5.1

	is_triggered_only = yes
	hide_window = yes

	immediate = {
		character_event = { id = byzsla_slavic_event_kultysci5.1 days = 1000 random = 400 }
		random_list = {
			#Staty
			20 = {
				if = {
					limit = {
						has_character_modifier = follower_of_swarog
					}
					character_event = { id = byzsla_slavic_event_kultysci.10 }
				}
				if = {
					limit = {
						has_character_modifier = follower_of_mokosz
					}
					character_event = { id = byzsla_slavic_event_kultysci.3 }
				}
				if = {
					limit = {
						has_character_modifier = follower_of_triglav
					}
					character_event = { id = byzsla_slavic_event_kultysci.20 }
				}
				if = {
					limit = {
						has_character_modifier = follower_of_berstuk
					}
					character_event = { id = byzsla_slavic_event_kultysci.25 }
				}
			}
			#Przyjaciele
			15 = {
				if = {
					limit = {
						has_character_modifier = follower_of_mokosz
					}
					character_event = { id = byzsla_slavic_event_kultysci.4 }
				}
				if = {
					limit = {
						has_character_modifier = follower_of_swarog
					}
					character_event = { id = byzsla_slavic_event_kultysci.11 }
				}
				if = {
					limit = {
						has_character_modifier = follower_of_triglav
					}
					character_event = { id = byzsla_slavic_event_kultysci.21 }
				}
				if = {
					limit = {
						has_character_modifier = follower_of_berstuk
					}
					character_event = { id = byzsla_slavic_event_kultysci.26 }
				}
			}
			#Dzieci
			15 = {
				if = {
					limit = {
						has_character_modifier = follower_of_mokosz
					}
					character_event = { id = byzsla_slavic_event_kultysci.5 }
				}
				if = {
					limit = {
						has_character_modifier = follower_of_swarog
					}
					character_event = { id = byzsla_slavic_event_kultysci.12 }
				}
				if = {
					limit = {
						has_character_modifier = follower_of_triglav
					}
					character_event = { id = byzsla_slavic_event_kultysci.22 }
				}
				if = {
					limit = {
						has_character_modifier = follower_of_berstuk
					}
					character_event = { id = byzsla_slavic_event_kultysci.27 }
				}
			}
			#Objawienie lub moc
			20 = {
				if = {
					limit = { has_character_modifier = follower_of_mokosz }
					random_list = {
						50 = { character_event = { id = byzsla_slavic_event_kultysci.7 } }
						50 = { character_event = { id = byzsla_slavic_event_kultysci.6 } }
					}
				}
				if = {
					limit = { has_character_modifier = follower_of_swarog }
					random_list = {
						50 = { character_event = { id = byzsla_slavic_event_kultysci.13 } }
						50 = { character_event = { id = byzsla_slavic_event_kultysci.14 } }
					}
				}
				if = {
					limit = { has_character_modifier = follower_of_triglav }
					random_list = {
						50 = { character_event = { id = byzsla_slavic_event_kultysci.23 } }
						50 = { character_event = { id = byzsla_slavic_event_kultysci.24 } }
					}
				}
				if = {
					limit = {
						has_character_modifier = follower_of_berstuk
					}
					random_list = {
						50 = { character_event = { id = byzsla_slavic_event_kultysci.28 } }
						50 = { character_event = { id = byzsla_slavic_event_kultysci.29 } }
					}
				}
			}
			#Monument
			50 = {
				modifier = {
					factor = 0
					has_character_flag = pagan_monument 
				}
				random_courtier = {
					limit = { has_job_title = job_treasurer }
					character_event = { id = byzsla_slavic_event_kultysci.15 }
				}
			}
			#Nic
			65 = {
				#noTHING
			}
		}
	}
}

character_event = {
	id = byzsla_slavic_event_kultysci5.2

	hide_window = yes
	is_triggered_only = yes

	trigger = {
		religion = chram_vales
	}
	immediate = {
		add_trait = byzsla_zla_religia
	}
}