From 4d8d762c32425be691704c2f1332b591a9355443 Mon Sep 17 00:00:00 2001 From: "FA507RM-KALOSPA\\Kalo" Date: Wed, 7 Jun 2023 23:56:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=98=9F=E5=9B=A2=E6=94=B9?= =?UTF-8?q?=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- events/RG_cluster_events.txt | 9 +++++-- events/RG_events.txt | 49 +++++++++++++++++++++++++++++++----- 2 files changed, 50 insertions(+), 8 deletions(-) diff --git a/events/RG_cluster_events.txt b/events/RG_cluster_events.txt index 26c141a..1fc930f 100644 --- a/events/RG_cluster_events.txt +++ b/events/RG_cluster_events.txt @@ -90,7 +90,8 @@ country_event = { trigger = { AND = { - has_origin = origin_rg_gray + has_country_flag = origin_rg_gray_1st + #has_origin = origin_rg_gray NOT = { has_global_flag = rg_origin_l_cluster } } } @@ -282,7 +283,10 @@ country_event = { immediate = { random_system = { limit = { - has_star_flag = lcluster4 + has_star_flag = lcluster + NOT = { + has_star_flag = lcluster_lgate + } } save_event_target_as = rg_cluster_home_system @@ -364,6 +368,7 @@ country_event = { # Planet setup event_target:rg_cluster_home_planet = { + change_pc = pc_gaia set_owner = root set_controller = root set_capital = yes diff --git a/events/RG_events.txt b/events/RG_events.txt index edf1cb1..8b959ec 100644 --- a/events/RG_events.txt +++ b/events/RG_events.txt @@ -6,19 +6,43 @@ country_event = { hide_window = yes is_triggered_only = yes - fire_only_once = yes trigger = { has_country_flag = origin_rg_gray } immediate = { - set_country_flag = rg_gray_level_1 - country_event = { id = rg.3 days = 30 } - add_modifier = { - modifier = rg_distant_stars_modifier + if = { + NOT = { + has_global_flag = origin_rg_gray_1st + } + set_global_flag = origin_rg_gray_1st_global + set_country_flag = origin_rg_gray_1st + set_country_flag = rg_gray_level_1 + country_event = { id = rg.3 days = 30 } + add_modifier = { + modifier = rg_distant_stars_modifier + } + save_global_event_target_as = origin_rg_gray_country + } + else_if = { + limit = { + has_global_flag = origin_rg_gray_1st_global + } + set_country_flag = origin_gray_dragon_country + rg_create_fake_dragon = yes + start_lcluster_chain = yes + add_event_chain_counter = { + event_chain = l_cluster_chain + counter = clues + amount = 7 + } + # increment variable + change_variable = { + which = num_lcluster_clues + value = 7 + } } - save_global_event_target_as = origin_rg_gray_country } } @@ -775,12 +799,25 @@ country_event = { else_if = { limit = { has_country_flag = rg_fake_dragon_reborn_country + NOT = { + has_country_flag = origin_gray_dragon_country + } } change_variable = { which = rg_fake_dragon_timedlife_counter value = 1 } } + else_if = { + limit = { + has_country_flag = rg_fake_dragon_reborn_country + has_country_flag = origin_gray_dragon_country + } + change_variable = { + which = rg_fake_dragon_timedlife_counter + value = 12 + } + } #等级导入,把存储的领袖等级赋予到领袖身上 random_owned_leader = {