From d7e34a789b900a376aab0a09f9b1e379a01f893a Mon Sep 17 00:00:00 2001 From: "FA507RM-KALOSPA\\Kalo" Date: Wed, 21 Jun 2023 13:08:31 +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 --- .../rg_gray_warship_init_effects.txt | 16 ++++++++++++++++ events/RG_combat_skill_events.txt | 13 ++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/common/scripted_effects/rg_gray_warship_init_effects.txt b/common/scripted_effects/rg_gray_warship_init_effects.txt index 9d5fe70..b1512ee 100644 --- a/common/scripted_effects/rg_gray_warship_init_effects.txt +++ b/common/scripted_effects/rg_gray_warship_init_effects.txt @@ -18,6 +18,10 @@ rg_warship_init_mod1 = { random_existing_design = RG_graygoo_mothership prefix = no upgradable = yes + effect = { + set_fleet_flag = gray_fleet_ship + save_global_event_target_as = gray_warship_ship + } } set_fleet_stance = aggressive set_location = { @@ -58,6 +62,10 @@ rg_warship_init_mod2 = { random_existing_design = RG_graygoo_capitalship prefix = no upgradable = yes + effect = { + set_fleet_flag = gray_fleet_ship + save_global_event_target_as = gray_warship_ship + } } set_fleet_stance = aggressive set_location = { @@ -99,6 +107,10 @@ rg_warship_init_mod3 = { random_existing_design = RG_gray_juggernaut prefix = no upgradable = yes + effect = { + set_fleet_flag = gray_fleet_ship + save_global_event_target_as = gray_warship_ship + } } set_fleet_stance = aggressive set_location = { @@ -138,6 +150,10 @@ rg_warship_init_mod0 = { design = "NAME_Gray_Warship_base" prefix = no upgradable = yes + effect = { + set_fleet_flag = gray_fleet_ship + save_global_event_target_as = gray_warship_ship + } } set_fleet_stance = aggressive set_location = { diff --git a/events/RG_combat_skill_events.txt b/events/RG_combat_skill_events.txt index 280ea44..7bf5294 100644 --- a/events/RG_combat_skill_events.txt +++ b/events/RG_combat_skill_events.txt @@ -611,8 +611,9 @@ country_event = { FromFromFrom = { is_in_combat = yes NOT = { - is_same_value = event_target:gray_warship + is_same_value = event_target:gray_warship_ship } + exists = fleet.leader } FromFromFrom.fleet.leader = { has_trait = RG_leader_trait_admiral_nanorebuild_gray @@ -685,6 +686,16 @@ country_event = { hide_window = yes is_triggered_only = yes + trigger = { + FromFrom = { + is_in_combat = yes + exists = fleet.leader + } + FromFrom.fleet.leader = { + has_trait = RG_leader_trait_admiral_nanorebuild_gray + } + } + immediate = { FROMFROM = { # Winning ship. if = {