je_rheinish_unification = {
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	is_shown_when_inactive = {
		country_has_primary_culture = cu:rheinish
	}

	possible = {
		custom_tooltip = {
			text = dvg_is_rheinish_candidate_tt
			OR = {
				AND = {
					exists = c:BEG
					this = c:BEG
				}
			}
		}
		has_technology_researched = nationalism
		is_subject = no
	}

	complete = {
		hidden_trigger = {
			has_variable = je_unification_progress
		}
		OR = {
			year >= 1852
			AND = {
				trigger_if = {
					limit = {
						exists = c:RHI
					}
					c:RHI = {
						relations:root >= relations_threshold:amicable
					}
				}
				trigger_if = {
					limit = {
						exists = c:HEK
					}
					c:HEK = {
						relations:root >= relations_threshold:amicable
					}
				}
				trigger_if = {
					limit = {
						exists = c:FRM
					}
					c:FRM = {
						relations:root >= relations_threshold:amicable
					}
				}
				trigger_if = {
					limit = {
						exists = c:DAR
					}
					c:DAR = {
						relations:root >= relations_threshold:amicable
					}
				}
				trigger_if = {
					limit = {
						exists = c:NAS
					}
					c:NAS = {
						relations:root >= relations_threshold:amicable
					}
				}
				trigger_if = {
					limit = {
						exists = c:MUN
					}
					c:MUN = {
						relations:root >= relations_threshold:amicable
					}
				}
				trigger_if = {
					limit = {
						exists = c:OSN
					}
					c:OSN = {
						relations:root >= relations_threshold:amicable
					}
				}
			}
		}
	}

	on_monthly_pulse = {
		effect = {
			if = { 
				limit = { NOT = { has_variable = je_unification_progress } } 
				set_variable = je_unification_progress
			}
		}
	}

	on_complete = {
		trigger_event = { id = dvg_rheinish_unification.10 } #The Conference of Düsseldorf
		remove_variable = je_unification_progress
	}

	status_desc = {
		first_valid = {
			triggered_desc = {
				desc = je_rheinish_status
				trigger = {
					always = yes
				}
			}
		}
	}

	weight = 100
}
