namespace = rg_story

# 开始改造
country_event = {
	id = rg_story.23
	title = rg_story.23.title
	desc = rg_story.23.desc
	picture = GFX_evt_gray_goo_ships
	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
	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
	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
	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
	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
	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.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
		}
		enable_special_project = {
			name = RG_GRAY_MOD1
			location = event_target:gray_owner_capital_starbase
			owner = root
		}
	}
}

country_event = {
	id = rg_story.29
	title = rg_story.29.title
	desc = rg_story.29.desc
	picture = GFX_evt_gray_goo_ships
	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
	}
}
