namespace = NEOW_dynamic_titles

NEOW_dynamic_titles.1000 = { # The Great Event
	hidden = yes

	immediate = {
		if = {
			limit = {
				has_title = title:e_europa
			}
			if = {
				limit = { 
					religion = religion:europeanist_religion
				}
				title:e_europa = {
					set_title_name = cn_europa
					set_title_color = { 0 51 153 }
					set_definitive_form = no
				}
			}
			else = {
				title:e_europa = {
					reset_title_name = yes
					set_title_color = { 229 153 45 }
					set_definitive_form = yes
				}
			}
		}
		if = {
			limit = {
				has_title = title:e_britannia
			}
			if = {
				limit = { 
					faith = faith:druidic
				}
				title:e_britannia = {
					set_title_name = cn_tir_na_nog
					set_title_color = { 10 102 40 }
					set_definitive_form = yes
				}
			}
			else = {
				title:e_brittania = {
					reset_title_name = yes
					set_title_color = { 140 7 29 }
					set_definitive_form = no
				}
			}
		}
		if = {
			limit = {
				has_title = title:e_nistrenia
			}
			if = {
				limit = { 
					faith = faith:fracture
				}
				title:e_nistrenia = {
					set_title_name = cn_the_zone
					set_title_color = { 225 235 235 }
					set_definitive_form = yes
				}
			}
			else = {
				title:e_nistrenia = {
					reset_title_name = yes
					set_title_color = { 110 82 196 }
					set_definitive_form = no
				}
			}
		}
		if = {
			limit = {
				has_title = title:e_france
			}
			if = {
				limit = { 
					faith = faith:romanticist
				}
				title:e_france = {
					set_title_name = e_gallia_cosmetic
					set_title_color = { 8 165 126 }
				}
			}
			if = {
				limit = { 
					faith = faith:carolingian
				}
				title:e_france = {
					set_title_name = e_carolingia_cosmetic
					set_title_color = { 255 216 0 }
				}
			}
			else = {
				title:e_france = {
					reset_title_name = yes
					set_title_color = { 20 17 114 }
				}
			}
		}
		if = {
			limit = {
				has_title = title:k_kuban
			}
			if = {
				limit = { 
					faith = faith:stalinist
				}
				title:k_kuban = {
					set_title_name = cn_stalingrad
					set_title_color = { 230 20 50 }
				}
			}
			else = {
				title:k_kuban = {
					reset_title_name = yes
					set_title_color = { 111 45 80 }
				}
			}
			if = {
				limit = { 
					culture = culture:kalmyk
				}
				title:k_kuban = {
					set_title_color = { 242 169 24 }
				}
			}
		}
		if = {
			limit = {
				has_title = title:d_volgograd
			}
			if = {
				limit = { 
					faith = faith:stalinist
				}
				title:d_volgograd = {
					set_title_name = cn_stalingrad
					set_title_color = { 230 20 50 }
				}
			}
			else = {
				title:d_volgograd = {
					reset_title_name = yes
					set_title_color = { 143 92 21 }
				}
			}
		}
		if = {
			limit = {
				has_title = title:c_volgograd
			}
			if = {
				limit = { 
					faith = faith:stalinist
				}
				title:c_volgograd = {
					set_title_name = cn_stalingrad
					set_title_color = { 230 20 50 }
				}
			}
			else = {
				title:c_volgograd = {
					reset_title_name = yes
					set_title_color = { 91 95 25 }
				}
			}
		}
		if = {
			limit = {
				has_title = title:b_volgograd
			}
			if = {
				limit = { 
					faith = faith:stalinist
				}
				title:b_volgograd = {
					set_title_name = cn_stalingrad
					set_title_color = { 91 95 25 }
				}
			}
			else = {
				title:b_volgograd = {
					reset_title_name = yes
					set_title_color = { 91 95 25 }
				}
			}
		}
	}
}