namespace = rg_story

country_event = {
	id = rg_story.21
	title = "rg_story.21.title"
	is_triggered_only = yes
	trigger = {
	}
	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
	hide_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 = {
			nanites = -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 = {
			alloys = -1500
		}
		add_resource = {
			energy = -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 = {
			alloys = -1500
		}
		add_resource = {
			energy = -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 = {
			alloys = -1500
		}
		add_resource = {
			energy = -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 = {
			consumer_goods = -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 = {
			alloys = -1500
		}
		add_resource = {
			energy = -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 = {
			alloys = -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 = {
			alloys = -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
	}
}