namespace = rg_story

country_event = {
	id = rg_story.2
	title = "graygoo.500.title"
	is_triggered_only = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	diplomatic = yes
	picture_event_data = {
		portrait = event_target:gray_species
		room = "ethic_spaceship_room"
	}
	desc = {
		text = "rg_story.2.desc"
	}
	option = {
		name = rg_story.2.a
		hidden_effect = {
			country_event = {
				id = rg_story.3
			}
		}
		default_hide_option = yes
	}
	option = {
		name = rg_story.2.b
		hidden_effect = {
			country_event = {
				id = rg_story.3
			}
		}
	}
	option = {
		name = rg_story.2.c
		hidden_effect = {
			country_event = {
				id = rg_story.3
			}
		}
	}
}

country_event = {
	id = rg_story.3
	title = "graygoo.500.title"
	is_triggered_only = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	diplomatic = yes
	picture_event_data = {
		portrait = event_target:gray_species
		room = "ethic_spaceship_room"
	}
	desc = {
		text = "rg_story.3.desc"
	}
	option = {
		name = rg_story.3.a
		hidden_effect = {
			country_event = {
				id = rg_story.4
			}
		}
		default_hide_option = yes
	}
	option = {
		name = rg_story.3.b
		hidden_effect = {
			country_event = {
				id = rg_story.4
			}
		}
	}
	option = {
		name = rg_story.3.c
		hidden_effect = {
			country_event = {
				id = rg_story.4
			}
		}
	}
}

country_event = {
	id = rg_story.4
	title = "graygoo.500.title"
	is_triggered_only = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	diplomatic = yes
	picture_event_data = {
		portrait = event_target:gray_species
		room = "ethic_spaceship_room"
	}
	desc = {
		text = "rg_story.4.desc"
	}
	option = {
		name = rg_story.4.a
		hidden_effect = {
			country_event = {
				id = rg_story.5
			}
		}
		default_hide_option = yes
	}
	option = {
		name = rg_story.4.b
		hidden_effect = {
			country_event = {
				id = rg_story.5
			}
		}
	}
	option = {
		name = rg_story.4.c
		hidden_effect = {
			country_event = {
				id = rg_story.5
			}
		}
	}
}

country_event = {
	id = rg_story.5
	title = "graygoo.500.title"
	is_triggered_only = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	diplomatic = yes
	picture_event_data = {
		portrait = event_target:gray_species
		room = "ethic_spaceship_room"
	}
	desc = {
		text = "rg_story.5.desc"
	}
	option = {
		name = rg_story.5.a
		hidden_effect = {
			rg_create_gray_planetkiller_testship_1 = yes
		}
		default_hide_option = yes
	}
}

planet_event = {
	id = rg_story.6
	title = "rg_story.6.title"
	is_triggered_only = yes
	fire_only_once = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	picture = GFX_evt_failed_observation
	show_sound = evn_fc_observation
	immediate = {
		every_country = {
			every_owned_fleet = {
				limit = {
					any_owned_ship = {
						has_ship_flag = rg_test_ship
					}
				}
				delete_fleet = this
			}
		}
	}
	desc = {
		text = "rg_story.6.desc"
	}
	option = {
		name = rg_story.6.a
		hidden_effect = {
			country_event = {
				id = rg_story.7
			}
		}
		default_hide_option = yes
	}
}

country_event = {
	id = rg_story.7
	is_triggered_only = yes
	hide_window = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	immediate = {
		every_owned_fleet = {
			limit = {
				has_fleet_flag = rg_test_ship_fleet
			}
			delete_fleet = this
		}
		event_target:rg_test_ship_global_event_target = {
			delete_ship = this
		}
	}
}

country_event = {
	id = rg_story.8
	title = "graygoo.500.title"
	is_triggered_only = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	diplomatic = yes
	picture_event_data = {
		portrait = event_target:gray_species
		room = "ethic_spaceship_room"
	}
	desc = {
		text = "rg_story.8.desc"
	}
	option = {
		name = rg_story.8.a
		hidden_effect = {
			country_event = {
				id = rg_story.9
			}
		}
		default_hide_option = yes
	}
	option = {
		name = rg_story.8.b
		hidden_effect = {
			country_event = {
				id = rg_story.9
			}
		}
	}
	option = {
		name = rg_story.8.c
		hidden_effect = {
			country_event = {
				id = rg_story.9
			}
		}
	}
}

country_event = {
	id = rg_story.9
	title = "graygoo.500.title"
	is_triggered_only = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	diplomatic = yes
	picture_event_data = {
		portrait = event_target:gray_species
		room = "ethic_spaceship_room"
	}
	desc = {
		text = "rg_story.9.desc"
	}
	option = {
		name = rg_story.9.a
		hidden_effect = {
			rg_create_gray_paperwork_testship_1 = yes
		}
		default_hide_option = yes
	}
}

country_event = {
	id = rg_story.10
	title = "rg_story.10.title"
	is_triggered_only = yes
	fire_only_once = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
		any_owned_fleet = {
			any_owned_ship = {
				has_component = RG_revive_component
			}
		}
	}
	picture = GFX_evt_ship_in_orbit
	show_sound = event_radio_chatter
	desc = {
		text = "rg_story.10.desc"
	}
	option = {
		name = rg_story.10.a
		default_hide_option = yes
	}
	option = {
		name = rg_story.10.b
	}
}

country_event = {
	id = rg_story.11
	title = "graygoo.500.title"
	is_triggered_only = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
		exists = event_target:guardian_dragon_country
	}
	diplomatic = yes
	picture_event_data = {
		portrait = event_target:gray_species
		room = "ethic_spaceship_room"
	}
	desc = {
		text = "rg_story.11.desc"
	}
	option = {
		name = rg_story.11.a
		hidden_effect = {
			country_event = {
				id = rg_story.12
			}
		}
		default_hide_option = yes
	}
	option = {
		name = rg_story.11.b
		hidden_effect = {
			country_event = {
				id = rg_story.12
			}
		}
	}
	option = {
		name = rg_story.11.c
		hidden_effect = {
			country_event = {
				id = rg_story.12
			}
		}
	}
}

country_event = {
	id = rg_story.12
	title = "graygoo.500.title"
	is_triggered_only = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	diplomatic = yes
	picture_event_data = {
		portrait = event_target:gray_species
		room = "ethic_spaceship_room"
	}
	desc = {
		text = "rg_story.12.desc"
	}
	immediate = {
		event_target:guardian_dragon_country = {
			random_owned_fleet = {
				limit = {
					has_fleet_flag = dragon_fleet
				}
				save_event_target_as = dragon_fleet_target
			}
		}
	}
	option = {
		name = rg_story.12.a
		allow = {
			exists = event_target:guardian_dragon_country
			event_target:guardian_dragon_country = {
				any_owned_fleet = {
					has_fleet_flag = dragon_fleet
				}
			}
		}
		hidden_effect = {
			enable_special_project = {
				name = RG_FAKE_DRAGON_SCAN_PROJECT
				location = event_target:dragon_fleet_target
				owner = root
			}
		}
	}
	option = {
		name = rg_story.12.b
	}
	option = {
		name = rg_story.12.c
	}
}

country_event = {
	id = rg_story.13
	title = "rg_story.13.title"
	is_triggered_only = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	picture = GFX_evt_space_dragon
	show_sound = evn_fc_observation
	desc = {
		text = "rg_story.13.desc"
	}
	option = {
		name = rg_story.13.a
		default_hide_option = yes
	}
}

country_event = {
	id = rg_story.14
	title = "rg_story.14.title"
	is_triggered_only = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	picture = GFX_evt_space_dragon
	show_sound = evn_fc_observation
	desc = {
		text = "rg_story.14.desc"
	}
	option = {
		name = rg_story.14.a
		default_hide_option = yes
	}
}

country_event = {
	id = rg_story.15
	title = "rg_story.15.title"
	is_triggered_only = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	picture = GFX_evt_space_dragon
	show_sound = evn_fc_observation
	desc = {
		text = "rg_story.15.desc"
	}
	option = {
		name = rg_story.15.a
		hidden_effect = {
			country_event = {
				id = rg_story.16
			}
		}
		default_hide_option = yes
	}
}

country_event = {
	id = rg_story.16
	title = "graygoo.500.title"
	is_triggered_only = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	diplomatic = yes
	picture_event_data = {
		portrait = event_target:gray_species
		room = "ethic_spaceship_room"
	}
	desc = {
		text = "rg_story.16.desc"
	}
	option = {
		name = rg_story.16.a
		hidden_effect = {
			country_event = {
				id = rg_story.17
				days = 360
				random = 640
			}
		}
		default_hide_option = yes
	}
}

country_event = {
	id = rg_story.17
	title = "graygoo.500.title"
	is_triggered_only = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	diplomatic = yes
	picture_event_data = {
		portrait = event_target:gray_species
		room = "ethic_spaceship_room"
	}
	desc = {
		text = "rg_story.17.desc"
	}
	option = {
		name = rg_story.17.a
		hidden_effect = {
			country_event = {
				id = rg_story.18
			}
		}
		default_hide_option = yes
	}
	option = {
		name = rg_story.17.b
		hidden_effect = {
			country_event = {
				id = rg_story.18
			}
		}
	}
	option = {
		name = rg_story.17.c
		hidden_effect = {
			country_event = {
				id = rg_story.18
			}
		}
	}
}

country_event = {
	id = rg_story.18
	title = "simulasion_dragon_name"
	is_triggered_only = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	diplomatic = yes
	picture_event_data = {
		portrait = event_target:rg_fake_dragon_admiral
		room = "ethic_spaceship_room"
	}
	desc = {
		text = "rg_story.18.desc"
	}
	immediate = {
		rg_create_fake_dragon = yes
	}
	option = {
		name = rg_story.18.a
		hidden_effect = {
			country_event = {
				id = rg_story.19
			}
		}
		default_hide_option = yes
	}
	option = {
		name = rg_story.18.b
		hidden_effect = {
			country_event = {
				id = rg_story.19
			}
		}
	}
	option = {
		name = rg_story.18.c
		hidden_effect = {
			country_event = {
				id = rg_story.19
			}
		}
	}
}

country_event = {
	id = rg_story.19
	title = "graygoo.500.title"
	is_triggered_only = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	diplomatic = yes
	picture_event_data = {
		portrait = event_target:gray_species
		room = "ethic_spaceship_room"
	}
	desc = {
		text = "rg_story.19.desc"
	}
	option = {
		name = rg_story.19.a
		default_hide_option = yes
	}
	option = {
		name = rg_story.19.b
	}
	option = {
		name = rg_story.19.c
	}
}

# sim dragon ga le
country_event = {
	id = rg_story.20
	hide_window = yes
	is_triggered_only = yes
	fire_only_once = yes
	trigger = {
		exists = event_target:rg_fake_dragon_owner
		OR = {
			AND = {
				NOT = {
					exists = event_target:rg_fake_dragon_fleet
				}
				exists = event_target:rg_fake_dragon_admiral
			}
			event_target:rg_fake_dragon_fleet = {
				leader = {
					OR = {
						exists = NO
						NOT = {
							has_leader_flag = rg_fake_dragon
						}
					}
				}
			}
		}
	}
	immediate = {
		random_owned_leader = {
			limit = {
				has_leader_flag = rg_fake_dragon
			}
			remove_trait = RG_leader_trait_admiral_timed_life
			add_trait = RG_leader_trait_admiral_born_tobe_dragon
			set_leader_flag = rg_fake_dragon_reborn
			set_age = 0
		}
		set_country_flag = rg_fake_dragon_reborn_country
		set_variable = {
			which = rg_fake_dragon_timedlife_counter
			value = 0
		}
		country_event = {
			id = rg_story.21
		}
	}
}

country_event = {
	id = rg_story.21
	title = "rg_story.21.title"
	is_triggered_only = yes
	trigger = {
		NOT = {
			# has_global_flag = has_wsg_mod
		}
	}
	picture = GFX_evt_space_dragon
	show_sound = evn_fc_observation
	desc = {
		text = "rg_story.21.desc"
	}
	option = {
		name = rg_story.21.a
		default_hide_option = yes
	}
}

# 龙噶了把所有卡住的的模拟龙扫描事件中止
country_event = {
	id = rg_story.22
	hidden_window = yes
	is_triggered_only = yes
	trigger = {
		from = {
			is_country_type = guardian_dragon
			NOR = {
				has_country_flag = rubricator_dragon_country
				has_country_flag = here_be_the_dragon
			}
		}
		#fromfromfrom = {
		#	has_fleet_flag = dragon_fleet
		#}
	}
	immediate = {
		every_country = {
			limit = {
				has_special_project = RG_FAKE_DRAGON_SCAN_PROJECT
			}
			abort_special_project = {
				type = RG_FAKE_DRAGON_SCAN_PROJECT
			}
		}
	}
}

# 开始改造
country_event = {
	id = rg_story.23
	title = rg_story.23.title
	desc = rg_story.23.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_2
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.23.a
		default_hide_option = yes
	}
	option = {
		name = rg_story.23.b
		allow = {
			resource_stockpile_compare = {
				resource = energy
				value >= 1500
			}
			resource_stockpile_compare = {
				resource = alloys
				value >= 1500
			}
		}
		add_resource = {
			energy = -1500
			alloys = -1500
		}
		random_situation = {
			limit = {
				is_situation_type = situation_rg_gray_mod1
			}
			set_situation_flag = situation_rg_gray_mod1_stage_1_booster
		}
	}
}

country_event = {
	id = rg_story.24
	title = rg_story.24.title
	desc = rg_story.24.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_2
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.24.a
		default_hide_option = yes
	}
	option = {
		name = rg_story.24.b
		random_situation = {
			limit = {
				is_situation_type = situation_rg_gray_mod1
			}
			set_situation_flag = situation_rg_gray_mod1_stage_2_booster
		}
	}
}

country_event = {
	id = rg_story.25
	title = rg_story.25.title
	desc = rg_story.25.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_2
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.25.a
		default_hide_option = yes
		random_situation = {
			limit = {
				is_situation_type = situation_rg_gray_mod1
			}
			set_situation_flag = situation_rg_gray_mod1_stage_3_booster
		}
	}
	option = {
		name = rg_story.25.b
		allow = {
			resource_stockpile_compare = {
				resource = energy
				value >= 5000
			}
			resource_stockpile_compare = {
				resource = alloys
				value >= 5000
			}
		}
		add_resource = {
			energy = -5000
			alloys = -5000
		}
		rg_create_gray_mod1_testship_1 = yes
	}
}

country_event = {
	id = rg_story.26
	title = rg_story.26.title
	desc = rg_story.26.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_2
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.26.a
		default_hide_option = yes
		random_situation = {
			limit = {
				is_situation_type = situation_rg_gray_mod1
			}
			set_situation_flag = situation_rg_gray_mod1_stage_4_booster
		}
	}
	option = {
		name = rg_story.26.b
		add_resource = {
			energy = -5000
			alloys = -5000
		}
		rg_create_gray_planetkiller_testship_1 = yes
	}
}

country_event = {
	id = rg_story.27
	title = rg_story.27.title
	desc = rg_story.27.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_2
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.27.a
		default_hide_option = yes

	}
	option = {
		name = rg_story.27.b
		random_situation = {
			limit = {
				is_situation_type = situation_rg_gray_mod1
			}
			set_situation_flag = situation_rg_gray_mod1_stage_5_booster
		}
	}
}

country_event = {
	id = rg_story.28
	title = rg_story.28.title
	desc = rg_story.28.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_2
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
		enable_special_project = {
			name = RG_GRAY_MOD1
			location = event_target:gray_owner_capital_starbase
			owner = event_target:gray_owner
		}
	}
	option = {
		name = rg_story.28.a
		default_hide_option = yes
		random_situation = {
			limit = {
				is_situation_type = situation_rg_gray_mod1
			}
			set_situation_locked = yes
			set_situation_flag = locked
			set_situation_flag = rg_stage6_locked
			set_situation_flag = situation_rg_gray_mod1_stage_6_booster
		}
	}
}

country_event = {
	id = rg_story.29
	title = rg_story.29.title
	desc = rg_story.29.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_2
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.29.a
		default_hide_option = yes
	}
}

country_event = {
	id = rg_story.30
	title = rg_story.30.title
	desc = rg_story.30.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_1
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.30.a
		default_hide_option = yes
	}
	option = {
		name = rg_story.30.b
		enable_special_project = {
			name = rg_gray_mod2_stage1_project
			# location = event_target:gray_owner_capital_starbase
			owner = event_target:gray_owner
		}
	}
}

country_event = {
	id = rg_story.31
	title = rg_story.31.title
	desc = rg_story.31.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_1
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.31.a
		default_hide_option = yes
	}
	option = {
		name = rg_story.31.b
		allow = {
			resource_stockpile_compare = {
				resource = nanites
				value >= 150
			}
		}
		add_resource = {
			resource = nanites
			value = -150
		}
		random_situation = {
			limit = {
				is_situation_type = situation_rg_gray_mod2
			}
			set_situation_flag = situation_rg_gray_mod2_stage_2_booster
		}
	}
}

country_event = {
	id = rg_story.32
	title = rg_story.32.title
	desc = rg_story.32.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_1
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.32.a
		default_hide_option = yes
	}
}

country_event = {
	id = rg_story.33
	title = rg_story.33.title
	desc = rg_story.33.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_1
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.33.a
		default_hide_option = yes
	}
	option = {
		name = rg_story.33.b
		enable_special_project = {
			name = rg_gray_mod2_stage4_project
			# location = event_target:gray_owner_capital_starbase
			owner = event_target:gray_owner
		}
	}
}

country_event = {
	id = rg_story.34
	title = rg_story.34.title
	desc = rg_story.34.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_1
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.34.a
		default_hide_option = yes
	}
	option = {
		name = rg_story.34.b
		allow = {
			resource_stockpile_compare = {
				resource = alloys
				value >= 1500
			}
			resource_stockpile_compare = {
				resource = energy
				value >= 1500
			}
		}
		add_resource = {
			resource = alloys
			value = -1500
		}
		add_resource = {
			resource = energy
			value = -1500
		}
		rg_create_gray_mod1_testship_2 = yes
		random_situation = {
			limit = {
				is_situation_type = situation_rg_gray_mod2
			}
			set_situation_flag = situation_rg_gray_mod2_stage_5_booster
		}
	}
}

country_event = {
	id = rg_story.35
	title = rg_story.35.title
	desc = rg_story.35.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_1
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.35.a
		default_hide_option = yes
	}
	option = {
		name = rg_story.35.b
		allow = {
			resource_stockpile_compare = {
				resource = alloys
				value >= 1500
			}
			resource_stockpile_compare = {
				resource = energy
				value >= 1500
			}
		}
		add_resource = {
			resource = alloys
			value = -1500
		}
		add_resource = {
			resource = energy
			value = -1500
		}
		rg_create_gray_mod1_testship_2 = yes
		random_situation = {
			limit = {
				is_situation_type = situation_rg_gray_mod2
			}
			set_situation_flag = situation_rg_gray_mod2_stage_6_booster
		}
	}
}

country_event = {
	id = rg_story.36
	title = rg_story.36.title
	desc = rg_story.36.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_1
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.36.a
		default_hide_option = yes
	}
	option = {
		name = rg_story.36.b
		allow = {
			resource_stockpile_compare = {
				resource = energy
				value >= 4000
			}
			resource_stockpile_compare = {
				resource = minerals
				value >= 1500
			}
		}
		add_resource = {
			resource = energy
			value = -4000
		}
		add_resource = {
			resource = minerals
			value = -1500
		}
		random_situation = {
			limit = {
				is_situation_type = situation_rg_gray_mod2
			}
			set_situation_flag = situation_rg_gray_mod2_stage_7_booster
		}
	}
}

country_event = {
	id = rg_story.37
	title = rg_story.37.title
	desc = rg_story.37.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_1
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.37.a
		default_hide_option = yes
	}
	option = {
		name = rg_story.37.b
		allow = {
			resource_stockpile_compare = {
				resource = consumer_goods
				value >= 3000
			}
		}
		add_resource = {
			resource = consumer_goods
			value = -3000
		}
		random_situation = {
			limit = {
				is_situation_type = situation_rg_gray_mod2
			}
			set_situation_flag = situation_rg_gray_mod2_stage_8_booster
		}
	}
}

country_event = {
	id = rg_story.38
	title = rg_story.38.title
	desc = rg_story.38.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_1
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.38.a
		default_hide_option = yes
	}
	option = {
		name = rg_story.38.b
		allow = {
			resource_stockpile_compare = {
				resource = alloys
				value >= 1500
			}
			resource_stockpile_compare = {
				resource = energy
				value >= 1500
			}
		}
		add_resource = {
			resource = alloys
			value = -1500
		}
		add_resource = {
			resource = energy
			value = -1500
		}
		rg_create_gray_mod1_testship_2 = yes
		random_situation = {
			limit = {
				is_situation_type = situation_rg_gray_mod2
			}
			set_situation_flag = situation_rg_gray_mod2_stage_9_booster
		}
	}
}

country_event = {
	id = rg_story.39
	title = rg_story.39.title
	desc = rg_story.39.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_1
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.39.a
		default_hide_option = yes
	}
	option = {
		name = rg_story.39.b
		allow = {
			resource_stockpile_compare = {
				resource = alloys
				value >= 3000
			}
		}
		add_resource = {
			resource = alloys
			value = -3000
		}
		random_situation = {
			limit = {
				is_situation_type = situation_rg_gray_mod2
			}
			set_situation_flag = situation_rg_gray_mod2_stage_10_booster
		}
	}
}

country_event = {
	id = rg_story.40
	title = rg_story.40.title
	desc = rg_story.40.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_1
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.40.a
		default_hide_option = yes
	}
	option = {
		name = rg_story.40.b
		allow = {
			resource_stockpile_compare = {
				resource = nanites
				value >= 500
			}
		}
		add_resource = {
			resource = alloys
			value = -500
		}
		random_situation = {
			limit = {
				is_situation_type = situation_rg_gray_mod2
			}
			set_situation_flag = situation_rg_gray_mod2_stage_11_booster
		}
	}
}

country_event = {
	id = rg_story.41
	title = rg_story.41.title
	desc = rg_story.41.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_1
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
		enable_special_project = {
			name = RG_GRAY_MOD2
			location = event_target:gray_owner_capital_starbase
			owner = event_target:gray_owner
		}
	}
	option = {
		name = rg_story.41.a
		default_hide_option = yes
		random_situation = {
			limit = {
				is_situation_type = situation_rg_gray_mod2
			}
			set_situation_locked = yes
			set_situation_flag = locked
			set_situation_flag = rg_stage6_locked
		}
	}
}

country_event = {
	id = rg_story.42
	title = rg_story.42.title
	desc = rg_story.42.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_1
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
	}
	option = {
		name = rg_story.42.a
		default_hide_option = yes
	}
}

country_event = {
	id = rg_story.43
	title = rg_story.43.title
	desc = rg_story.43.desc
	picture = GFX_evt_gray_goo_ships
	show_sound = event_radio_chatter
	is_triggered_only = yes
	trigger = {
		NOR = {
			has_country_flag = rg_gray_level_1
			has_country_flag = rg_gray_level_3
		}
	}
	immediate = {
		enable_special_project = {
			name = RG_GRAY_MOD3
			location = event_target:gray_owner_capital_starbase
			owner = event_target:gray_owner
		}
	}
	option = {
		name = rg_story.43.a
		default_hide_option = yes
	}
}