# equivalent to utopia.3304-3308
country_event = {
	id = $EVENT_ID$
	diplomatic_title = shroud.3.diplo_title
	title = $EVENT_ID$.title
	desc = {
		trigger = {
			if = {
				limit = {
					is_machine_empire = yes
				}
				text = $EVENT_ID$.desc.gestalt_machine
			}
			else_if = {
				limit = {
					is_robot_empire = yes
				}
				text = $EVENT_ID$.desc.individual_machine
			}
			else_if = {
				limit = {
					is_hive_empire = yes
				}
				text = $EVENT_ID$.desc.hive
			}
			else = {
				text = $EVENT_ID$.desc.default
			}
		}
	}

	is_triggered_only = yes
	diplomatic = yes
	force_open = yes

	picture_event_data = {
		portrait = shroud1
		room = shroud_room
	}

	show_sound = {
		trigger = { is_robot_empire = yes }
		sound = event_psionic_robot
	}
	show_sound = {
		trigger = { is_robot_empire = no }
		sound = event_psionic
	}

	option = {
		name = $EVENT_ID$.a
		custom_tooltip = covenant.tooltip
		custom_tooltip = $CHAIN$_begin
		accept_covenant = $PATRON_TYPE$
		hidden_effect = {
			if = {
				limit = { is_robot_empire = yes }
				begin_event_chain = {
					event_chain = robot_$CHAIN$
					target = this
				}
			}
			else = {
				begin_event_chain = {
					event_chain = $CHAIN$
					target = this
				}
			}
			set_country_flag = has_shroud_patron
			country_event = { id = $FORMED_EVENT_ID$ } # utopia.3310
			country_event = { id = $CONFIRM_EVENT_ID$ days = @covenant_confirmation_time_days } # utopia.2658
		}
	}
	option = {
		name = shroud.reject_covenant
		custom_tooltip = shroud.reject_covenant.tt
		default_hide_option = yes
		hidden_effect = {
			refuse_covenant = {
				patron = $PATRON_TYPE$
				reset_attunement = yes
			}
		}
	}
	option = {
		allow = {
			NOT = { is_chosen_empire = yes }
		}
		name = shroud.forge_our_own_path
		shroud_forge_your_own_path = yes
	}
}
