From 7a545c4c88fef91bf48e06e659f4e494634b5767 Mon Sep 17 00:00:00 2001 From: "ProjectKoi-Kalo\\Kalo" Date: Sat, 21 Sep 2024 11:54:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=A8mod=E7=AB=8B=E7=BB=98=E9=80=89?= =?UTF-8?q?=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RG_gray_leader_init_effects.txt | 6 +- .../scripted_effects/RG_scripted_effects.txt | 163 +++++++++++++++- .../RG_scripted_variables.txt | 1 + events/RG_gray_leader_event.txt | 184 ++++++++++++++++++ events/RG_wsg_graygoo_event.txt | 18 ++ .../simp_chinese/RG_event_l_simp_chinese.yml | 14 ++ realgray-stellaris-mod.code-workspace | 3 + 7 files changed, 385 insertions(+), 4 deletions(-) diff --git a/common/scripted_effects/RG_gray_leader_init_effects.txt b/common/scripted_effects/RG_gray_leader_init_effects.txt index 9781520..b0504c6 100644 --- a/common/scripted_effects/RG_gray_leader_init_effects.txt +++ b/common/scripted_effects/RG_gray_leader_init_effects.txt @@ -105,7 +105,7 @@ rg_gray_govener_init = { # } # add_trait_no_notify = leader_trait_governor_wg_the_loop # } - set_gray_portrait = yes + rg_set_gray_portrait = yes # add_special_leader_affection_trait = { LEADER = gray LEADER_CLASS = governor MARRIED_FLAG = married_gray } } else = { @@ -222,7 +222,7 @@ rg_gray_commander_init = { # } # add_trait_no_notify = leader_trait_admiral_wg_the_loop # } - set_gray_portrait = yes + rg_set_gray_portrait = yes # add_special_leader_affection_trait = { LEADER = gray LEADER_CLASS = governor MARRIED_FLAG = married_gray } } else = { @@ -542,7 +542,7 @@ rg_gray_scientist_init = { # } # add_trait_no_notify = leader_trait_admiral_wg_the_loop # } - set_gray_portrait = yes + rg_set_gray_portrait = yes # add_special_leader_affection_trait = { LEADER = gray LEADER_CLASS = governor MARRIED_FLAG = married_gray } } else = { diff --git a/common/scripted_effects/RG_scripted_effects.txt b/common/scripted_effects/RG_scripted_effects.txt index a964068..aa91180 100644 --- a/common/scripted_effects/RG_scripted_effects.txt +++ b/common/scripted_effects/RG_scripted_effects.txt @@ -1,8 +1,9 @@ -@gray_portrait = Gray rg_set_gray_portrait = { + #美味女仆-小灰@chougou if = { limit = { has_global_flag = ms_species_enabled + has_global_flag = rg_ms_gray_portrait_set event_target:gray_owner = { has_country_flag = mss_enable_gray_maid } @@ -12,12 +13,168 @@ rg_set_gray_portrait = { ms_update_gray_portrait = yes } } + #动态灰风@NCSIMON + else_if = { + limit = { + has_global_flag = has_grayextend_mod + has_global_flag = rg_ge_gray_portrait_set + } + #手动选择立绘启用 + if = { + limit = { + has_global_flag = rg_ge_gray_portrait_manual_toggle + } + if = { + limit = { + event_target:gray_owner = { + has_country_flag = rg_ge_governor_portrait_set + } + } + change_leader_portrait = GFX_gray_portrait_governor + event_target:rg_gray_country_leader = { + change_leader_portrait = GFX_gray_portrait_governor + } + } + else_if = { + limit = { + event_target:gray_owner = { + has_country_flag = rg_ge_scientist_portrait_set + } + change_leader_portrait = GFX_gray_scientist_portrait + event_target:rg_gray_country_leader = { + change_leader_portrait = GFX_gray_scientist_portrait + } + } + } + else = { + change_leader_portrait = GFX_gray_portrait_governor + event_target:rg_gray_country_leader = { + change_leader_portrait = GFX_gray_portrait_governor + } + } + } + #默认自动选择立绘启用 + else = { + if = { + limit = { + event_target:gray_owner = { + has_country_flag = gray_official_active + } + + event_target:gray_official = { + change_leader_portrait = GFX_gray_portrait_governor + } + } + } + else_if = { + limit = { + event_target:gray_owner = { + has_country_flag = gray_constship_active + } + event_target:gray_scientist = { + change_leader_portrait = GFX_gray_scientist_portrait + } + } + } + else_if = { + limit = { + event_target:gray_owner = { + OR = { + has_country_flag = gray_warship_active + has_country_flag = gray_army_active + } + + } + event_target:gray_leader_general = { + change_leader_portrait = GFX_gray_portrait_governor + } + } + } + else = { + change_leader_portrait = GFX_gray_portrait_governor + } + event_target:rg_gray_country_leader = { + change_leader_portrait = GFX_gray_portrait_governor + } + } + } + #舰r/KDC + else_if = { + limit = { + OR = { + has_global_flag = has_wsg_mod + has_global_flag = kdc_event_mod_active + } + has_global_flag = rg_wg_gray_portrait_set + } + set_gray_portrait = yes + } + #默认 else = { change_leader_portrait = @gray_portrait event_target:rg_gray_country_leader = { change_leader_portrait = @gray_portrait } } + +} + +# effect 留档3.13.0 +# # scope: leader +# set_gray_portrait = { +# optimize_memory +# if = { +# limit = { owner = { +# OR = { +# has_wg_special_authority = yes +# has_global_flag = wg_cheat_all_clothes +# } +# check_variable = { which = wg_gray_cloth value = 1 } +# }} +# change_leader_portrait = GrayTempest01 +# } else_if = { +# limit = { owner = { +# check_variable = { which = wg_gray_cloth value = 2 } +# }} +# change_leader_portrait = GrayTempest02 +# } else_if = { +# limit = { owner = { +# check_variable = { which = wg_gray_cloth value = 3 } +# }} +# change_leader_portrait = GrayTempest03 +# } else_if = { +# limit = { owner = { +# check_variable = { which = wg_gray_cloth value = 4 } +# }} +# change_leader_portrait = GrayTempest04 +# } else_if = { +# limit = { owner = { +# check_variable = { which = wg_gray_cloth value = 5 } +# }} +# change_leader_portrait = GrayTempest05 +# }else_if = { +# limit = { owner = { +# check_variable = { which = wg_gray_cloth value = 6 } +# }} +# change_leader_portrait = GrayTempest06 +# } else_if = { +# limit = { always = yes } +# change_leader_portrait = GrayTempest06 +# } +# } + +#scope country target:gray_owner +rg_ge_clear_portrait_select = { + event_target:gray_owner = { + remove_country_flag = rg_ge_governor_portrait_set + remove_country_flag = rg_ge_scientist_portrait_set + } +} + +rg_global_clear_portrait_select = { + remove_global_flag = rg_ms_gray_portrait_set + remove_global_flag = rg_ge_gray_portrait_set + remove_global_flag = rg_wg_gray_portrait_set } rg_create_gray_species = { @@ -2260,6 +2417,10 @@ rg_gray_country_after_init = { event_target:rg_gray_country = { establish_communications_no_message = event_target:gray_owner } + country_event = { + id = rg_grayleader.7 + days = -1 + } rg_juggernaut_habitat_init = yes } diff --git a/common/scripted_variables/RG_scripted_variables.txt b/common/scripted_variables/RG_scripted_variables.txt index e69de29..1447d40 100644 --- a/common/scripted_variables/RG_scripted_variables.txt +++ b/common/scripted_variables/RG_scripted_variables.txt @@ -0,0 +1 @@ +@gray_portrait = Gray \ No newline at end of file diff --git a/events/RG_gray_leader_event.txt b/events/RG_gray_leader_event.txt index 9a97609..507c0d6 100644 --- a/events/RG_gray_leader_event.txt +++ b/events/RG_gray_leader_event.txt @@ -361,6 +361,15 @@ country_event = { } } } + option = { + # 衣柜 + name = rg_wardrobe + hidden_effect = { + country_event = { + id = rg_grayleader.7 + } + } + } option = { name = graygoo.500.d tag = hire_leader @@ -540,6 +549,15 @@ country_event = { } } } + option = { + # 衣柜 + name = rg_wardrobe + hidden_effect = { + country_event = { + id = rg_grayleader.7 + } + } + } option = { name = graygoo.500.d tag = hire_leader @@ -1854,3 +1872,169 @@ country_event = { } } } + +country_event = { + id = rg_grayleader.7 + title = "graygoo.500.title" + desc = "rg_event.7.a.desc" + event_window_type = leader_recruit + picture_event_data = { + portrait = event_target:gray_governor + room = "ethic_spaceship_room" + } + is_triggered_only = yes + immediate = { + set_country_flag = gray_diplomacy_engaged + } + after = { + hidden_effect = { + remove_country_flag = gray_diplomacy_engaged + } + } + option = { + # 美味女仆 + name = rg_event.7.a + trigger = { + has_global_flag = ms_species_enabled + } + hidden_effect = { + rg_global_clear_portrait_select = yes + set_global_flag = rg_ms_gray_portrait_set + event_target:gray_owner = { + set_country_flag = mss_enable_gray_maid + } + remove_global_flag = rg_ge_gray_portrait_set + } + } + option = { + # 动态灰风 + name = rg_event.7.b + trigger = { + has_global_flag = has_grayextend_mod + } + hidden_effect = { + rg_global_clear_portrait_select = yes + set_global_flag = rg_ge_gray_portrait_set + country_event = { + id = rg_grayleader.8 + } + } + } + option = { + # 舰r + name = rg_event.7.d + trigger = { + OR = { + has_global_flag = has_wsg_mod + has_global_flag = kdc_event_mod_active + } + } + hidden_effect = { + rg_global_clear_portrait_select = yes + set_global_flag = rg_wg_gray_portrait_set + } + } + option = { + # 默认 + name = rg_event.7.z + } + option = { + name = graygoo.500.d + tag = hire_leader + default_hide_option = yes + } + option = { + name = graygoo.500.prepage + tag = dismiss_leader + hidden_effect = { + country_event = { + id = rg_grayleader.1 + } + } + } +} + +country_event = { + id = rg_grayleader.8 + title = "graygoo.500.title" + desc = "rg_event.8.a.desc" + event_window_type = leader_recruit + picture_event_data = { + portrait = event_target:gray_governor + room = "ethic_spaceship_room" + } + is_triggered_only = yes + immediate = { + set_country_flag = gray_diplomacy_engaged + } + after = { + hidden_effect = { + remove_country_flag = gray_diplomacy_engaged + } + } + option = { + # 执政官 + name = rg_event.8.a + hidden_effect = { + if = { + limit = { + NOT = { + has_global_flag = rg_ge_gray_portrait_manual_toggle + } + set_global_flag = rg_ge_gray_portrait_manual_toggle + } + } + rg_ge_clear_portrait_select = yes + event_target:gray_owner = { + set_country_flag = rg_ge_governor_portrait_set + } + } + } + option = { + # 科学家 + name = rg_event.8.b + hidden_effect = { + if = { + limit = { + NOT = { + has_global_flag = rg_ge_gray_portrait_manual_toggle + } + set_global_flag = rg_ge_gray_portrait_manual_toggle + } + } + rg_ge_clear_portrait_select = yes + event_target:gray_owner = { + set_country_flag = rg_ge_scientist_portrait_set + } + } + } + option = { + # 关闭手动选择 + name = rg_event.8.c + trigger = { + has_global_flag = rg_ge_gray_portrait_manual_toggle + } + hidden_effect = { + rg_ge_clear_portrait_select = yes + remove_global_flag = rg_ge_gray_portrait_manual_toggle + } + } + option = { + # 算了 + name = rg_event.8.d + } + option = { + name = graygoo.500.d + tag = hire_leader + default_hide_option = yes + } + option = { + name = graygoo.500.prepage + tag = dismiss_leader + hidden_effect = { + country_event = { + id = rg_grayleader.1 + } + } + } +} \ No newline at end of file diff --git a/events/RG_wsg_graygoo_event.txt b/events/RG_wsg_graygoo_event.txt index ee15b83..feba58d 100644 --- a/events/RG_wsg_graygoo_event.txt +++ b/events/RG_wsg_graygoo_event.txt @@ -185,6 +185,15 @@ country_event = { } } } + option = { + # 衣柜 + name = rg_wardrobe + hidden_effect = { + country_event = { + id = rg_grayleader.7 + } + } + } option = { name = marry_gray trigger = { @@ -433,6 +442,15 @@ country_event = { } } } + option = { + # 衣柜 + name = rg_wardrobe + hidden_effect = { + country_event = { + id = rg_grayleader.7 + } + } + } option = { name = marry_gray trigger = { diff --git a/localisation/simp_chinese/RG_event_l_simp_chinese.yml b/localisation/simp_chinese/RG_event_l_simp_chinese.yml index bda7dcd..cd2478a 100644 --- a/localisation/simp_chinese/RG_event_l_simp_chinese.yml +++ b/localisation/simp_chinese/RG_event_l_simp_chinese.yml @@ -101,6 +101,7 @@ rg_cluster.13.a:0 "他们是从哪里冒出来的?!" rg_help:0 "我需要一些帮助" + rg_wardrobe:0 "§Y$NAME_Gray$的衣柜§!" rg_event.4:0 "我需要一些帮助" rg_event.4.a.desc:0 "我可以帮你建造一些舰队,或是一些其他我能帮得上的忙。你想让我做什么?" @@ -126,6 +127,19 @@ rg_event.6.b.desc:0 "§Y呜呜呜...真的已经没有钱了..真的不要再来了...§!\n\n§H<厨圣啊!这次还请回吧。>§!" rg_event.6.a:0 "诶嘿。" + rg_event.7.a.desc:0 "这里可以给$NAME_Gray$换衣服。能选择的立绘选项取决于你开启的mod,如果没有任何选项说明你启用的mod尚未兼容或未启用兼容的mod。" + + rg_event.7.a:0 "§G美味女仆:肖像§!-$NAME_Gray$@Chougou" + rg_event.7.b:0 "§H灰风扩展(动态灰风)/灰风肖像美化§!@NCSIMON" + rg_event.7.c:0 "§Y灰风立绘替换§!@Earth Aeolian" + rg_event.7.d:0 "§HWarship Girls R And MIST Species/KDC Story Pack§!@KDC Mod Group" + rg_event.7.z:0 "§Y默认§!" + + rg_event.8.a:0 "§H执政官-$NAME_Gray$§!" + rg_event.8.b:0 "§B科学家-$NAME_Gray$§!" + rg_event.8.c:0 "§G关闭手动选择立绘§!" + rg_event.8.d:0 "§Y算了§!" + rg_graygoo.4:0 "我需要一些帮助" rg_graygoo.4.a.desc:0 "我可以帮你建造一些舰队,或是一些其他我能帮得上的忙。你想让我做什么?" diff --git a/realgray-stellaris-mod.code-workspace b/realgray-stellaris-mod.code-workspace index 06061f3..b62cf79 100644 --- a/realgray-stellaris-mod.code-workspace +++ b/realgray-stellaris-mod.code-workspace @@ -35,6 +35,9 @@ }, { "path": "D:/SteamLibrary/steamapps/common/Stellaris/interface" + }, + { + "path": "../gray_extend" } ] } \ No newline at end of file