diff --git a/common/scripted_effects/RG_gray_leader_init_effects.txt b/common/scripted_effects/RG_gray_leader_init_effects.txt index 64b6255..c058c17 100644 --- a/common/scripted_effects/RG_gray_leader_init_effects.txt +++ b/common/scripted_effects/RG_gray_leader_init_effects.txt @@ -3,6 +3,37 @@ # 避免需要修改代码时需要重复修改n次,或是发生修改了A处忘记修改B处导致bug发生的问题。 # 当然,这种分块需要到什么程度,我也不知道 +#灰风 +################################ +# 舰R 灰风领袖好感度设定块部分:采样时间戳:2023/6/1 8:17 +# 仅用于留档比对不进行改动 +# wg_affection_wg_gray_system_launch = { +# if = { +# limit = { has_leader_flag = gray_leader } +# set_leader_flag = has_wg_affection +# set_leader_flag = has_wg_affection_wg_gray +# set_leader_flag = wg_affection_auto_change_no +# add_trait_no_notify = leader_trait_wg_gray_affection +# set_variable = { which = affection value = owner.wg_gray_affection } +# set_variable = { which = wg_leader_affection_to_lv2 value = @wg_gray_affection_to_lv2 } +# set_variable = { which = wg_leader_affection_to_lv3 value = @wg_gray_affection_to_lv3 } +# set_variable = { which = wg_leader_affection_to_lv4 value = @wg_gray_affection_to_lv4 } +# set_variable = { which = wg_leader_affection_to_lv5 value = @wg_gray_affection_to_lv5 } +# set_variable = { which = wg_leader_affection_reduce value = @wg_gray_affection_reduce } +# set_variable = { which = wg_leader_affection_increase value = @wg_gray_affection_increase } +# } +# +# } +# wg_affection_wg_gray_system_check = { +# if = { +# limit = { +# has_leader_flag = has_wg_affection_wg_gray +# } +# set_variable = { which = affection value = owner.wg_gray_affection } +# } +# } +################################ +# scripted_effects_override.txt 采样时间戳:2023/6/1 8:17 rg_gray_govener_init = { create_leader = { class = governor @@ -19,8 +50,6 @@ rg_gray_govener_init = { skill = 10 set_age = 18 traits = { - trait = rg_leader_trait_governor_gray - trait = RG_leader_trait_ruler_gray } effect = { save_global_event_target_as = gray_governor @@ -31,31 +60,40 @@ rg_gray_govener_init = { set_leader_flag = rg_gray_leader if = { - limit = { has_global_flag = kdc_event_mod_active } - set_leader_flag = "gray_leader" - add_trait = leader_trait_governor_gray - add_trait = RG_leader_trait_ruler_gray - add_trait = subclass_governor_economist - add_trait = leader_trait_urbanist_3 - add_trait = leader_trait_scrapper_2 + limit = { has_global_flag = has_wsg_mod } + set_leader_flag = not_has_wg_affection_normal } - else_if = { + + if = { limit = { - AND = { - has_global_flag = kdc_event_mod_active - has_country_flag = origin_gray_country + owner = { + OR = { + has_global_flag = has_wsg_mod + has_global_flag = kdc_event_mod_active + } } } set_leader_flag = "gray_leader" - add_trait = leader_trait_governor_gray - add_trait = RG_leader_trait_ruler_gray + add_trait_no_notify = leader_trait_governor_gray + add_trait_no_notify = RG_leader_trait_ruler_gray + add_trait_no_notify = subclass_governor_economist + add_trait_no_notify = leader_trait_urbanist_3 + add_trait_no_notify = leader_trait_scrapper_2 + if = { + limit = { owner = { + has_country_flag = origin_gray_weaken + has_country_flag = origin_gray_country + }} + remove_trait = leader_trait_governor_gray + add_trait_no_notify = leader_trait_governor_gray_weak + } } else = { - add_trait = RG_leader_trait_governor_gray - add_trait = RG_leader_trait_ruler_gray - add_trait = subclass_governor_economis - add_trait = leader_trait_urbanist_3 - add_trait = leader_trait_scrapper_2 + add_trait_no_notify = RG_leader_trait_governor_gray + add_trait_no_notify = RG_leader_trait_ruler_gray + add_trait_no_notify = subclass_governor_economis + add_trait_no_notify = leader_trait_urbanist_3 + add_trait_no_notify = leader_trait_scrapper_2 } } } @@ -65,27 +103,23 @@ rg_gray_govener_init = { random_owned_leader = { limit = { has_leader_flag = gray_governor } if = { - limit = { has_global_flag = kdc_event_mod_active } - if = { - limit = { owner = { has_country_flag = gray_encountered_the_loop }} - add_trait = leader_trait_governor_wg_the_loop - } - set_gray_portrait = yes - add_special_leader_affection_trait = { LEADER = gray LEADER_CLASS = governor MARRIED_FLAG = married_gray } - } - else_if = { limit = { - has_global_flag = has_wsg_mod - NOT = { - has_global_flag = kdc_event_mod_active - } + owner = { + OR = { + has_global_flag = has_wsg_mod + has_global_flag = kdc_event_mod_active + } + } + } + leader_event = { + id = wg_affection.8 days = 1 } if = { limit = { owner = { has_country_flag = gray_encountered_the_loop }} - add_trait = leader_trait_governor_wg_the_loop + add_trait_no_notify = leader_trait_governor_wg_the_loop } set_gray_portrait = yes - add_special_leader_affection_trait = { LEADER = gray LEADER_CLASS = governor MARRIED_FLAG = married_gray } + # add_special_leader_affection_trait = { LEADER = gray LEADER_CLASS = governor MARRIED_FLAG = married_gray } } else = { rg_set_gray_portrait = yes @@ -117,21 +151,34 @@ rg_gray_admiral_init = { set_leader_flag = gray_admiral set_leader_flag = legendary_leader set_leader_flag = immune_to_negative_traits - - set_leader_flag = rg_gray_leader - if = { - limit = { has_global_flag = kdc_event_mod_active } - set_leader_flag = "gray_leader" - add_trait = gray_admiral + limit = { + owner = { + OR = { + has_global_flag = has_wsg_mod + has_global_flag = kdc_event_mod_active + } + } + } + set_leader_flag = "gray_leader" # "gray_leader"==rg_gray_leader + add_trait_no_notify = gray_admiral + if = { + limit = { owner = { + has_country_flag = origin_gray_weaken + has_country_flag = origin_gray_country + }} + remove_trait = gray_admiral + add_trait_no_notify = leader_trait_admiral_gray_weak + # 缺少特质leader_trait_admiral_gray_weak将导致KDC故事包远星之歌起源研究纳米星球特殊项目无法完成 + } } - else = { - add_trait = leader_trait_artillerist_2 - add_trait = leader_trait_juryrigger_2 - } - add_trait = RG_leader_trait_admiral_gray - add_trait = subclass_admiral_aggressor - add_trait = leader_trait_carrier_specialization + set_leader_flag = rg_gray_leader + add_trait_no_notify = RG_leader_trait_admiral_gray + # 缺少特质RG_leader_trait_admiral_gray将导致小灰改造项目无法完成 + add_trait_no_notify = subclass_admiral_aggressor + add_trait_no_notify = leader_trait_carrier_specialization + add_trait_no_notify = leader_trait_artillerist_2 + add_trait_no_notify = leader_trait_juryrigger_2 } } last_created_leader = { @@ -141,36 +188,23 @@ rg_gray_admiral_init = { limit = { has_leader_flag = gray_admiral } if = { limit = { - has_global_flag = kdc_event_mod_active + owner = { + OR = { + has_global_flag = has_wsg_mod + has_global_flag = kdc_event_mod_active + } + } } + leader_event = { + id = wg_affection.8 days = 1 + } + add_trait_no_notify = leader_trait_admiral_wg_gray_affection if = { limit = { owner = { has_country_flag = gray_encountered_the_loop }} - add_trait = leader_trait_admiral_wg_the_loop + add_trait_no_notify = leader_trait_admiral_wg_the_loop } set_gray_portrait = yes - add_special_leader_affection_trait = { LEADER = gray LEADER_CLASS = admiral MARRIED_FLAG = married_gray } - if = { - limit = { owner = { - has_country_flag = origin_gray_country - has_country_flag = origin_gray_weaken - }} - remove_trait = gray_admiral - add_trait = leader_trait_admiral_gray_weak - } - } - else_if = { - limit = { - has_global_flag = has_wsg_mod - NOT = { - has_global_flag = kdc_event_mod_active - } - if = { - limit = { owner = { has_country_flag = gray_encountered_the_loop }} - add_trait_no_notify = leader_trait_admiral_wg_the_loop - } - } - set_gray_portrait = yes - add_special_leader_affection_trait = { LEADER = gray LEADER_CLASS = admiral MARRIED_FLAG = married_gray } + # add_special_leader_affection_trait = { LEADER = gray LEADER_CLASS = governor MARRIED_FLAG = married_gray } } else = { rg_set_gray_portrait = yes @@ -207,6 +241,17 @@ rg_gray_general_init = { set_leader_flag = gray_general set_leader_flag = legendary_leader set_leader_flag = immune_to_negative_traits + if = { + limit = { + owner = { + OR = { + has_global_flag = has_wsg_mod + has_global_flag = kdc_event_mod_active + } + } + } + set_leader_flag = "gray_leader" # "gray_leader"==rg_gray_leader + } } } last_created_leader = { @@ -215,30 +260,26 @@ rg_gray_general_init = { random_owned_leader = { limit = { has_leader_flag = gray_general } if = { - limit = { has_global_flag = kdc_event_mod_active } - set_gray_portrait = yes - if = { - limit = { owner = { has_country_flag = gray_encountered_the_loop }} - add_trait = leader_trait_governor_wg_the_loop - } - #add_special_leader_affection_trait = { LEADER = gray LEADER_CLASS = governor MARRIED_FLAG = married_gray } - } - else_if = { limit = { - has_global_flag = has_wsg_mod - NOT = { - has_global_flag = kdc_event_mod_active + owner = { + OR = { + has_global_flag = has_wsg_mod + has_global_flag = kdc_event_mod_active + } } } + leader_event = { + id = wg_affection.8 days = 1 + } + add_trait_no_notify = leader_trait_admiral_wg_gray_affection if = { limit = { owner = { has_country_flag = gray_encountered_the_loop }} - add_trait = leader_trait_governor_wg_the_loop + add_trait_no_notify = leader_trait_admiral_wg_the_loop } set_gray_portrait = yes - #add_special_leader_affection_trait = { LEADER = gray LEADER_CLASS = governor MARRIED_FLAG = married_gray } + # add_special_leader_affection_trait = { LEADER = gray LEADER_CLASS = governor MARRIED_FLAG = married_gray } } else = { - add_trait = RG_leader_trait_general_gray_skill rg_set_gray_portrait = yes } } @@ -280,6 +321,17 @@ rg_gray_scientist_init = { set_leader_flag = gray_scientist set_leader_flag = legendary_leader set_leader_flag = immune_to_negative_traits + if = { + limit = { + owner = { + OR = { + has_global_flag = has_wsg_mod + has_global_flag = kdc_event_mod_active + } + } + } + set_leader_flag = "gray_leader" # "gray_leader"==rg_gray_leader + } } } last_created_leader = { @@ -288,24 +340,21 @@ rg_gray_scientist_init = { random_owned_leader = { limit = { has_leader_flag = gray_scientist } if = { - limit = { has_global_flag = kdc_event_mod_active } - if = { - limit = { owner = { has_country_flag = gray_encountered_the_loop }} - add_trait = leader_trait_governor_wg_the_loop - } - set_gray_portrait = yes - # add_special_leader_affection_trait = { LEADER = gray LEADER_CLASS = governor MARRIED_FLAG = married_gray } - } - else_if = { limit = { - has_global_flag = has_wsg_mod - NOT = { - has_global_flag = kdc_event_mod_active + owner = { + OR = { + has_global_flag = has_wsg_mod + has_global_flag = kdc_event_mod_active + } } } + leader_event = { + id = wg_affection.8 days = 1 + } + add_trait_no_notify = leader_trait_admiral_wg_gray_affection if = { limit = { owner = { has_country_flag = gray_encountered_the_loop }} - add_trait = leader_trait_governor_wg_the_loop + add_trait_no_notify = leader_trait_admiral_wg_the_loop } set_gray_portrait = yes # add_special_leader_affection_trait = { LEADER = gray LEADER_CLASS = governor MARRIED_FLAG = married_gray } @@ -336,41 +385,40 @@ rg_gray_country_leader_init = { trait = rg_leader_trait_governor_gray trait = RG_leader_trait_ruler_gray } - effect = { - save_global_event_target_as = rg_gray_country_leader - set_leader_flag = rg_gray_country_governor - set_leader_flag = legendary_leader - set_leader_flag = immune_to_negative_traits - # 暂时和小灰网络断开连接 + effect = { + save_global_event_target_as = gray_governor + set_leader_flag = gray_governor + set_leader_flag = legendary_leader + set_leader_flag = immune_to_negative_traits + + # 暂时和小灰网络断开连接 # set_leader_flag = rg_gray_leader - if = { - limit = { has_global_flag = kdc_event_mod_active } - set_leader_flag = "gray_leader" - add_trait = leader_trait_governor_gray - add_trait = RG_leader_trait_ruler_gray - add_trait = subclass_governor_economist - add_trait = leader_trait_urbanist_3 - add_trait = leader_trait_scrapper_2 - } - else_if = { - limit = { - AND = { - has_global_flag = kdc_event_mod_active - has_country_flag = origin_gray_country - } - } - set_leader_flag = "gray_leader" - add_trait = leader_trait_governor_gray - add_trait = RG_leader_trait_ruler_gray - } - else = { - add_trait = RG_leader_trait_governor_gray - add_trait = RG_leader_trait_ruler_gray - add_trait = subclass_governor_economis - add_trait = leader_trait_urbanist_3 - add_trait = leader_trait_scrapper_2 - } - } + + if = { + limit = { + owner = { + OR = { + has_global_flag = has_wsg_mod + has_global_flag = kdc_event_mod_active + } + } + } + # 暂时和小灰网络断开连接 + #set_leader_flag = "gray_leader" + add_trait_no_notify = leader_trait_governor_gray + add_trait_no_notify = RG_leader_trait_ruler_gray + add_trait_no_notify = subclass_governor_economist + add_trait_no_notify = leader_trait_urbanist_3 + add_trait_no_notify = leader_trait_scrapper_2 + } + else = { + add_trait_no_notify = RG_leader_trait_governor_gray + add_trait_no_notify = RG_leader_trait_ruler_gray + add_trait_no_notify = subclass_governor_economis + add_trait_no_notify = leader_trait_urbanist_3 + add_trait_no_notify = leader_trait_scrapper_2 + } + } } last_created_leader = { rg_set_gray_portrait = yes