diff --git a/common/scripted_effects/RG_gray_leader_init_effects.txt b/common/scripted_effects/RG_gray_leader_init_effects.txt index 0b97343..847e8af 100644 --- a/common/scripted_effects/RG_gray_leader_init_effects.txt +++ b/common/scripted_effects/RG_gray_leader_init_effects.txt @@ -310,4 +310,64 @@ rg_gray_scientist_init = { } } set_global_flag = rg_kac_leader +} + +rg_gray_country_leader_init = { + create_leader = { #只用作看板娘 + class = governor + species = root + name = "NAME_Gray" + gender = female + immortal = yes + event_leader = yes + skip_background_generation = yes + custom_catch_phrase = gray_catch_phrase + custom_description = gray_backstory + background_ethic = ethic_gestalt_consciousness + hide_age = yes + skill = 10 + set_age = 18 + traits = { + 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 + # 暂时和小灰网络断开连接 + # 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 + } + } + } + last_created_leader = { + rg_set_gray_portrait = yes + } } \ No newline at end of file diff --git a/common/scripted_effects/RG_scripted_effects.txt b/common/scripted_effects/RG_scripted_effects.txt index de5c915..ba75efa 100644 --- a/common/scripted_effects/RG_scripted_effects.txt +++ b/common/scripted_effects/RG_scripted_effects.txt @@ -1972,6 +1972,43 @@ rg_create_graygoo_fleet_random = { } } +rg_gray_country_init = { + create_country = { + name = "NAME_Gray" + type = gray + flag = { + icon= { + category = "special" + file = "gray_goo.dds" + } + background= { + category = "backgrounds" + file = "sinus.dds" + } + colors={ + "grey" + "dark_grey" + "null" + "null" + } + } + effect = { + rg_create_gray_species = yes + # 灰风国家用于领袖切换时暂存领袖 + set_country_flag = can_have_wg_affection_country_flag + } + } + last_created_country = { + rg_create_gray_species = yes + # 下一阶段的事件再建立通讯 + # establish_communications_no_message = root + save_global_event_target_as = rg_gray_country + # 创建看板娘用于第一次接触 + rg_gray_country_leader_init = yes + set_leader = last_created_leader + } +} + rg_gray_country_after_init = { # 送灰风母舰初始科技 give_technology = { @@ -2001,40 +2038,10 @@ rg_gray_country_after_init = { } else = { set_variable = { which = rg_gray_level value = 10 } } + # 启动开局故事事件链 rg_storyline_trigger = yes + # 接受小灰建立通信 event_target:rg_gray_country = { establish_communications_no_message = event_target:gray_owner } -} - -rg_gray_country_init = { - create_country = { - name = "NAME_Gray" - type = gray - flag = { - icon= { - category = "special" - file = "gray_goo.dds" - } - background= { - category = "backgrounds" - file = "sinus.dds" - } - colors={ - "grey" - "dark_grey" - "null" - "null" - } - } - effect = { - rg_create_gray_species = yes - # 灰风国家用于领袖切换时暂存领袖 - set_country_flag = can_have_wg_affection_country_flag - } - } - last_created_country = { - # establish_communications_no_message = root - save_global_event_target_as = rg_gray_country - } } \ No newline at end of file diff --git a/events/!_RG_gray_goo_events.txt b/events/!_RG_gray_goo_events.txt index d4e4269..06997e7 100644 --- a/events/!_RG_gray_goo_events.txt +++ b/events/!_RG_gray_goo_events.txt @@ -69,15 +69,13 @@ country_event = { diplomatic = yes picture_event_data = { - portrait = event_target:gray_species + portrait = event_target:rg_gray_country_leader planet_background = event_target:gray_homeworld room = "ethic_spaceship_room" } - immediate = { - hidden_effect = { - rg_create_gray_species = yes - } + immediate = { + rg_gray_country_init = yes #创建国家 } option = { @@ -129,7 +127,7 @@ country_event = { diplomatic = yes picture_event_data = { - portrait = event_target:gray_species + portrait = event_target:rg_gray_country_leader planet_background = event_target:gray_homeworld room = "ethic_spaceship_room" } @@ -153,7 +151,7 @@ country_event = { diplomatic = yes picture_event_data = { - portrait = event_target:gray_species + portrait = event_target:rg_gray_country_leader planet_background = event_target:gray_homeworld room = "ethic_spaceship_room" } @@ -177,7 +175,7 @@ country_event = { diplomatic = yes picture_event_data = { - portrait = event_target:gray_species + portrait = event_target:rg_gray_country_leader planet_background = event_target:gray_homeworld room = "ethic_spaceship_room" } @@ -201,7 +199,7 @@ country_event = { diplomatic = yes picture_event_data = { - portrait = event_target:gray_species + portrait = event_target:rg_gray_country_leader planet_background = event_target:gray_homeworld room = "ethic_spaceship_room" } @@ -209,8 +207,6 @@ country_event = { is_triggered_only = yes immediate = { - rg_gray_country_init = yes #创建国家 - rg_gray_govener_init = yes event_target:gray_governor = { set_owner = event_target:rg_gray_country } @@ -227,11 +223,6 @@ country_event = { option = { name = graygoo.405.b response_text = graygoo.405.b.response - hidden_effect = { - event_target:gray_governor = { - kill_leader = { show_notification = no } - } - } } } @@ -244,7 +235,7 @@ country_event = { diplomatic = yes picture_event_data = { - portrait = event_target:gray_governor + portrait = event_target:rg_gray_country_leader planet_background = event_target:gray_homeworld room = ship_room } @@ -266,10 +257,8 @@ country_event = { name = graygoo.405.b tag = dismiss_leader response_text = graygoo.405.b.response - hidden_effect = { - event_target:gray_governor = { - kill_leader = { show_notification = no } - } + owner = { + country_event = { id = rg_grayleader_dialog.4051 } } } option = { diff --git a/events/RG_gray_leader_dialog_event.txt b/events/RG_gray_leader_dialog_event.txt index 9a4732e..9b7445b 100644 --- a/events/RG_gray_leader_dialog_event.txt +++ b/events/RG_gray_leader_dialog_event.txt @@ -1,5 +1,25 @@ namespace = rg_grayleader_dialog +country_event = { + id = rg_grayleader_dialog.4051 + title = "TRme = OKANSMISSION" + desc = "graygoo.405.b.response" + + event_window_type = leader_story + + picture_event_data = { + portrait = event_target:rg_gray_country_leader + planet_background = event_target:gray_homeworld + room = ship_room + } + + is_triggered_only = yes + + option = { + name = OK + } +} + country_event = { id = rg_grayleader_dialog.5001 title = "graygoo.500.title" @@ -25,8 +45,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -69,8 +89,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -113,8 +133,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -157,8 +177,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -201,8 +221,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -245,8 +265,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -289,8 +309,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -332,8 +352,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -375,8 +395,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -418,8 +438,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -461,8 +481,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -504,8 +524,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -547,8 +567,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -590,8 +610,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -633,8 +653,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -676,8 +696,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -719,8 +739,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = { @@ -762,8 +782,8 @@ country_event = { } } - option = { # 诶嘿 - name = YES + option = { + name = OK } option = {