From 4a8a26bb7c2644da7fe5a43f2fcf867ff27551b3 Mon Sep 17 00:00:00 2001 From: "FA507RM-KALOSPA\\Kalo" Date: Mon, 12 Jun 2023 10:30:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scripted_effects/RG_scripted_effects.txt | 7 +- common/situations/rg_gray_situations.txt | 222 ++++++++++++++++++ events/RG_events.txt | 8 + events/rg_gray_mod_story_event.txt | 68 ++++++ .../simp_chinese/RG_event_l_simp_chinese.yml | 28 ++- .../simp_chinese/RG_l_simp_chinese.yml | 17 +- 6 files changed, 344 insertions(+), 6 deletions(-) diff --git a/common/scripted_effects/RG_scripted_effects.txt b/common/scripted_effects/RG_scripted_effects.txt index 17dbf86..3325b65 100644 --- a/common/scripted_effects/RG_scripted_effects.txt +++ b/common/scripted_effects/RG_scripted_effects.txt @@ -2564,10 +2564,9 @@ RG_gray_mod1_effect_project = { } RG_gray_mod2_effect = { custom_tooltip = rg_levelup_2.tooltip - enable_special_project = { - name = RG_GRAY_MOD2 - location = event_target:gray_owner_capital_starbase - owner = event_target:gray_owner + start_situation = { + type = situation_rg_gray_mod2 + target = this } add_resource = { energy = -150000 diff --git a/common/situations/rg_gray_situations.txt b/common/situations/rg_gray_situations.txt index c30f19f..27b673f 100644 --- a/common/situations/rg_gray_situations.txt +++ b/common/situations/rg_gray_situations.txt @@ -227,4 +227,226 @@ situation_rg_gray_mod1 = { } destroy_situation = this } +} + +situation_rg_gray_mod2 = { + picture = GFX_evt_planet_beam + complete_icon_frame = GFX_situation_outcome_frame_green + complete_icon = GFX_situation_outcome_positive + on_progress_complete = { + custom_tooltip = situation_rg_gray_mod1_finish_tooltip + hidden_effect = { + owner = { + country_event = { + id = rg_story.29 + } + } + } + destroy_situation = this + } + + on_start = { + owner = { + country_event = { + id = rg_event.9 + } + } + } + + on_monthly = { + events = { + } + } + + stages = { + situation_rg_gray_mod2_stage_1 = { + icon = GFX_situation_stage_1 + icon_background = GFX_situation_stage_frame_green + end = 8.4 + custom_tooltip = situation_rg_gray_mod2_stage_1_tooltip + on_first_enter = { + + } + } + situation_rg_gray_mod2_stage_2 = { + icon = GFX_situation_stage_2 + icon_background = GFX_situation_stage_frame_green + end = 16.8 + custom_tooltip = situation_rg_gray_mod2_stage_2_tooltip + on_first_enter = { + + } + } + situation_rg_gray_mod2_stage_3 = { + icon = GFX_situation_stage_3 + icon_background = GFX_situation_stage_frame_green + end = 25.2 + custom_tooltip = situation_rg_gray_mod2_stage_3_tooltip + on_first_enter = { + + } + } + situation_rg_gray_mod2_stage_4 = { + icon = GFX_situation_stage_4 + icon_background = GFX_situation_stage_frame_green + end = 33.6 + custom_tooltip = situation_rg_gray_mod2_stage_4_tooltip + on_first_enter = { + + } + } + situation_rg_gray_mod2_stage_5 = { + icon = GFX_situation_stage_5 + icon_background = GFX_situation_stage_frame_green + end = 42 + custom_tooltip = situation_rg_gray_mod2_stage_5_tooltip + on_first_enter = { + + } + } + situation_rg_gray_mod2_stage_6 = { + icon = GFX_situation_stage_6 + icon_background = GFX_situation_stage_frame_green + end = 50.4 + custom_tooltip = situation_rg_gray_mod2_stage_6_tooltip + on_first_enter = { + + } + } + situation_rg_gray_mod2_stage_7 = { + icon = GFX_situation_stage_1 + icon_background = GFX_situation_stage_frame_green + end = 58.8 + custom_tooltip = situation_rg_gray_mod2_stage_7_tooltip + on_first_enter = { + + } + } + situation_rg_gray_mod2_stage_8 = { + icon = GFX_situation_stage_2 + icon_background = GFX_situation_stage_frame_green + end = 67.2 + custom_tooltip = situation_rg_gray_mod2_stage_8_tooltip + on_first_enter = { + + } + } + situation_rg_gray_mod2_stage_9 = { + icon = GFX_situation_stage_3 + icon_background = GFX_situation_stage_frame_green + end = 75.6 + custom_tooltip = situation_rg_gray_mod2_stage_9_tooltip + on_first_enter = { + + } + } + situation_rg_gray_mod2_stage_10 = { + icon = GFX_situation_stage_4 + icon_background = GFX_situation_stage_frame_green + end = 84 + custom_tooltip = situation_rg_gray_mod2_stage_10_tooltip + on_first_enter = { + + } + } + situation_rg_gray_mod2_stage_11 = { + icon = GFX_situation_stage_5 + icon_background = GFX_situation_stage_frame_green + end = 92.4 + custom_tooltip = situation_rg_gray_mod2_stage_11_tooltip + on_first_enter = { + + } + } + situation_rg_gray_mod2_stage_12 = { + icon = GFX_situation_stage_6 + icon_background = GFX_situation_stage_frame_green + end = 100 + custom_tooltip = situation_rg_gray_mod2_stage_12_tooltip + on_first_enter = { + owner = { + country_event = { + id = rg_story.41 + } + } + } + } + } + approach = { + name = situation_rg_gray_mod1_approach_1 + icon = GFX_situation_approach_research + icon_background = GFX_situation_approach_bg_green + default = yes + on_select = { + if = { + limit = { + NOT = { + has_situation_flag = rg_stage6_locked + } + has_situation_flag = locked + } + set_situation_locked = no + remove_situation_flag = locked + } + event_target:gray_warship = { + set_event_locked = yes + } + custom_tooltip = situation_rg_gray_mod1_approach_1_tooltip + } + triggered_modifier = { + potential = { + has_situation_flag = situation_rg_gray_mod1_stage_5_booster + } + modifier = { + country_physics_research_produces_mult = -1 + } + } + triggered_modifier = { + potential = { + has_situation_flag = situation_rg_gray_mod1_stage_2_booster + } + modifier = { + country_engineering_research_produces_mult = -1 + } + } + } + approach = { + name = situation_rg_gray_mod1_approach_2 + icon = GFX_situation_approach_research + icon_background = GFX_situation_approach_bg_yellow + on_select = { + custom_tooltip = situation_rg_gray_mod1_approach_2_tooltip + set_situation_locked = yes + set_situation_flag = locked + event_target:gray_warship = { + set_event_locked = no + } + } + } + approach = { + name = situation_rg_gray_mod1_approach_3 + icon = GFX_situation_approach_research + icon_background = GFX_situation_approach_bg_red + on_select = { + custom_tooltip = situation_rg_gray_mod1_approach_3_tooltip + abort_situation = this + event_target:gray_warship = { + set_event_locked = no + } + } + } + monthly_progress = { + base = 0.1 + } + abort_trigger = { + + } + on_abort = { + owner = { + country_event = { + id = rg_event.10 + } + } + destroy_situation = this + } } \ No newline at end of file diff --git a/events/RG_events.txt b/events/RG_events.txt index 83ef022..301564b 100644 --- a/events/RG_events.txt +++ b/events/RG_events.txt @@ -638,6 +638,14 @@ country_event = { } add_ship_design = last_created_design rg_warship_init_mod2 = yes + random_situation = { + limit = { + is_situation_type = situation_rg_gray_mod2 + } + remove_situation_flag = rg_stage6_locked + set_situation_locked = no + remove_situation_flag = locked + } } option = { name = OK diff --git a/events/rg_gray_mod_story_event.txt b/events/rg_gray_mod_story_event.txt index d6a738e..2cfba3f 100644 --- a/events/rg_gray_mod_story_event.txt +++ b/events/rg_gray_mod_story_event.txt @@ -241,3 +241,71 @@ country_event = { default_hide_option = yes } } + +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_2 + has_country_flag = rg_gray_level_3 + } + } + immediate = { + } + 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 + } + enable_special_project = { + name = RG_GRAY_MOD2 + location = event_target:gray_owner_capital_starbase + owner = event_target:gray_owner + } + } +} + +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_2 + has_country_flag = rg_gray_level_3 + } + } + immediate = { + } + option = { + name = rg_story.42.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 + } + enable_special_project = { + name = RG_GRAY_MOD2 + location = event_target:gray_owner_capital_starbase + owner = event_target:gray_owner + } + } +} \ No newline at end of file diff --git a/localisation/simp_chinese/RG_event_l_simp_chinese.yml b/localisation/simp_chinese/RG_event_l_simp_chinese.yml index 12ab3b8..86f993c 100644 --- a/localisation/simp_chinese/RG_event_l_simp_chinese.yml +++ b/localisation/simp_chinese/RG_event_l_simp_chinese.yml @@ -341,4 +341,30 @@ rg_story.38.title:0 "§Y第九阶段:超空间引擎验证§!" rg_story.38.desc:0 "我们的计划已经进入第九阶段。在这一阶段我们需要设计一种超级规模的超空间引擎供旗舰使用。嗯,可能会出岔子。\n§Y在这一阶段不加干预仍将正常进行,不过投资建造试验舰将能够加快这一进程。§!" rg_story.38.a:0 "应该不会出问题的...吧?" - rg_story.38.b:0 "§Y投资额外材料§!" \ No newline at end of file + rg_story.38.b:0 "§Y投资额外材料§!" + + rg_story.39.title:0 "§Y第十阶段:子系统吊装§!" + rg_story.39.desc:0 "我们的计划已经进入第十阶段。我不知道,我编不出来了。\n§Y在这一阶段不加干预仍将正常进行,不过进行一些小小的投资能够加快这一进程。§!" + rg_story.39.a:0 "就这样了" + rg_story.39.b:0 "§Y投资额外材料§!" + + rg_story.40.title:0 "§Y第十一阶段:全舰纳米化设计§!" + rg_story.40.desc:0 "我们的计划已经进入第十一阶段。我不知道,我编不出来了。\n§Y在这一阶段不加干预仍将正常进行,不过进行一些小小的投资能够加快这一进程。§!" + rg_story.40.a:0 "就这样了" + rg_story.40.b:0 "§Y投资额外材料§!" + + rg_story.41.title:0 "§Y第十二阶段:最终试航§!" + rg_story.41.desc:0 "我们的计划已经进入最终阶段。我们的旗舰改造项目已经基本完成,接下来就是实际试航的阶段。如果一切顺利,那就一切顺利。\n§Y在这一阶段我们需要执行小灰改造计划。§!" + rg_story.41.a:0 "就这样了" + rg_story.41.b:0 "§Y投资额外材料§!" + + rg_story.42.title:0 "§Y第十三阶段:居住区划设计§!" + rg_story.42.desc:0 "我们的计划已经进入基本完成,作为追加选项,我们可以对旗舰进行主宰改造。但这需要我们进行额外的投资。在这一阶段我们将制造一个能够容纳大量人口居住的宜居仓段。\n§Y在这一阶段不加干预仍将正常进行,不过进行一些小小的投资能够加快这一进程。§!" + rg_story.42.a:0 "就这样了" + rg_story.42.b:0 "§Y投资额外材料§!" + + rg_story.43.title:0 "§Y第十四阶段:主宰船坞铺设§!" + rg_story.43.desc:0 "我们的计划已经进入基本完成,作为追加选项,我们可以对旗舰进行主宰改造。我不知道,我编不出来了。\n§Y在这一阶段我们需要执行小灰改造计划。§!" + rg_story.43.a:0 "就这样了" + rg_story.43.b:0 "§Y投资额外材料§!" + diff --git a/localisation/simp_chinese/RG_l_simp_chinese.yml b/localisation/simp_chinese/RG_l_simp_chinese.yml index b15e665..2e3b3e1 100644 --- a/localisation/simp_chinese/RG_l_simp_chinese.yml +++ b/localisation/simp_chinese/RG_l_simp_chinese.yml @@ -383,4 +383,19 @@ situation_rg_gray_mod2_stage_11:0 "§Y第十一阶段:全舰纳米化设计阶段§!" situation_rg_gray_mod2_stage_12:0 "§Y第十二阶段:最终试航阶段§!" situation_rg_gray_mod2_stage_13:0 "§Y第十三阶段:居住区划设计阶段§!" - situation_rg_gray_mod2_stage_14:0 "§Y第十四阶段:主宰船坞铺设阶段§!" \ No newline at end of file + situation_rg_gray_mod2_stage_14:0 "§Y第十四阶段:主宰船坞铺设阶段§!" + + situation_rg_gray_mod2_stage_1_tooltip:0 "$rg_story.30.desc$" + situation_rg_gray_mod2_stage_2_tooltip:0 "$rg_story.31.desc$" + situation_rg_gray_mod2_stage_3_tooltip:0 "$rg_story.32.desc$" + situation_rg_gray_mod2_stage_4_tooltip:0 "$rg_story.33.desc$" + situation_rg_gray_mod2_stage_5_tooltip:0 "$rg_story.34.desc$" + situation_rg_gray_mod2_stage_6_tooltip:0 "$rg_story.35.desc$" + situation_rg_gray_mod2_stage_7_tooltip:0 "$rg_story.36.desc$" + situation_rg_gray_mod2_stage_8_tooltip:0 "$rg_story.37.desc$" + situation_rg_gray_mod2_stage_9_tooltip:0 "$rg_story.38.desc$" + situation_rg_gray_mod2_stage_10_tooltip:0 "$rg_story.39.desc$" + situation_rg_gray_mod2_stage_11_tooltip:0 "$rg_story.40.desc$" + situation_rg_gray_mod2_stage_12_tooltip:0 "$rg_story.41.desc$" + situation_rg_gray_mod2_stage_13_tooltip:0 "$rg_story.42.desc$" + situation_rg_gray_mod2_stage_14_tooltip:0 "$rg_story.43.desc$"