2023-05-29 20:45:32 +08:00
|
|
|
namespace = rg_grayleader
|
|
|
|
# Check list (Initial)
|
2023-06-03 14:49:10 +08:00
|
|
|
# 快速返回首页的按钮。
|
2023-05-29 20:45:32 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.1
|
|
|
|
hide_window = yes
|
|
|
|
is_triggered_only = yes
|
|
|
|
trigger = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
fromfrom = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
}
|
|
|
|
immediate = {
|
|
|
|
if = {
|
2023-06-08 13:11:05 +08:00
|
|
|
limit = {
|
|
|
|
#500.initial
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
|
|
|
fromfrom = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_constship_active
|
2023-11-17 03:46:51 +08:00
|
|
|
has_country_flag = gray_official_active
|
|
|
|
has_country_flag = gray_governor_active #旧版flag
|
2023-06-08 13:11:05 +08:00
|
|
|
has_country_flag = gray_warship_active
|
|
|
|
has_country_flag = gray_army_active
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
2023-05-30 09:33:22 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.500
|
2023-05-30 09:33:22 +08:00
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
else_if = {
|
|
|
|
#501.governor
|
2023-05-29 20:45:32 +08:00
|
|
|
limit = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
fromfrom = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
is_same_value = event_target:gray_owner
|
2023-11-17 03:46:51 +08:00
|
|
|
OR = {
|
|
|
|
has_country_flag = gray_official_active
|
|
|
|
has_country_flag = gray_governor_active #旧版flag
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
2023-05-30 09:33:22 +08:00
|
|
|
has_country_flag = gray_diplomacy_engaged
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
2023-05-30 09:33:22 +08:00
|
|
|
exists = event_target:gray_governor
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.501
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
else_if = {
|
|
|
|
#502.warship
|
2023-05-29 20:45:32 +08:00
|
|
|
limit = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
fromfrom = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
has_country_flag = gray_warship_active
|
2023-06-08 13:11:05 +08:00
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
2023-05-30 09:33:22 +08:00
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
exists = event_target:gray_warship
|
2023-06-08 13:11:05 +08:00
|
|
|
any_owned_fleet = {
|
|
|
|
is_same_value = event_target:gray_warship
|
|
|
|
}
|
|
|
|
event_target:gray_warship = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.502
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
else_if = {
|
|
|
|
#503.army
|
2023-05-29 20:45:32 +08:00
|
|
|
limit = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
fromfrom = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
has_country_flag = gray_army_active
|
2023-06-08 13:11:05 +08:00
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
has_country_flag = gray_diplomacy_engaged
|
2023-05-30 09:33:22 +08:00
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
OR = {
|
|
|
|
exists = planet
|
|
|
|
AND = {
|
|
|
|
exists = fleet
|
2023-06-08 13:11:05 +08:00
|
|
|
fleet = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.503
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
else_if = {
|
|
|
|
#505.scienceship
|
2023-05-29 20:45:32 +08:00
|
|
|
limit = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
fromfrom = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
has_country_flag = gray_constship_active
|
2023-06-08 13:11:05 +08:00
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
2023-05-30 09:33:22 +08:00
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
exists = event_target:global_gray_constship
|
2023-06-08 13:11:05 +08:00
|
|
|
any_owned_fleet = {
|
|
|
|
is_same_value = event_target:global_gray_constship
|
|
|
|
}
|
|
|
|
event_target:global_gray_constship = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.505
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
else_if = {
|
|
|
|
#504.gale
|
|
|
|
limit = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
|
|
|
fromfrom = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
}
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.504
|
2023-05-30 09:33:22 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
# Main Menu (Initial)
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.500
|
|
|
|
title = "graygoo.500.title"
|
|
|
|
desc = "graygoo.500.a.desc"
|
|
|
|
desc = "graygoo.500.b.desc"
|
|
|
|
desc = "graygoo.500.c.desc"
|
|
|
|
desc = "graygoo.500.d.desc"
|
|
|
|
diplomatic = yes
|
|
|
|
event_window_type = leader_recruit
|
|
|
|
picture_event_data = {
|
2023-06-03 20:53:35 +08:00
|
|
|
portrait = event_target:rg_gray_country_leader
|
2023-05-29 20:45:32 +08:00
|
|
|
planet_background = root.capital_scope
|
|
|
|
room = "ethic_spaceship_room"
|
|
|
|
}
|
|
|
|
is_triggered_only = yes
|
|
|
|
immediate = {
|
|
|
|
set_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
after = {
|
2023-06-08 13:11:05 +08:00
|
|
|
hidden_effect = {
|
2023-05-29 20:45:32 +08:00
|
|
|
remove_country_flag = gray_diplomacy_engaged
|
|
|
|
#初始化衣柜
|
|
|
|
reset_gray_cloth = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
trigger = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
fromfrom = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_constship_active
|
2023-11-17 03:46:51 +08:00
|
|
|
has_country_flag = gray_official_active
|
|
|
|
has_country_flag = gray_governor_active #旧版flag
|
2023-05-29 20:45:32 +08:00
|
|
|
has_country_flag = gray_warship_active
|
|
|
|
has_country_flag = gray_army_active
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# Governor
|
2023-05-29 20:45:32 +08:00
|
|
|
name = graygoo.500.a
|
|
|
|
response_text = graygoo.500.a.response
|
|
|
|
trigger = {
|
2023-11-17 03:46:51 +08:00
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_official_active
|
|
|
|
has_country_flag = gray_governor_active #旧版flag
|
2023-06-08 13:11:05 +08:00
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_governor = yes
|
2023-06-03 11:34:25 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5001
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# Warship
|
2023-05-29 20:45:32 +08:00
|
|
|
name = graygoo.500.b
|
|
|
|
response_text = graygoo.500.b.response
|
|
|
|
trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
NOT = {
|
|
|
|
has_country_flag = gray_warship_active
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_warship = yes
|
2023-06-03 11:34:25 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5002
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# Army
|
2023-05-29 20:45:32 +08:00
|
|
|
name = graygoo.500.c
|
|
|
|
response_text = graygoo.500.c.response
|
|
|
|
trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
NOT = {
|
|
|
|
has_country_flag = gray_army_active
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_army = yes
|
2023-06-03 11:34:25 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5003
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# const
|
2023-05-29 20:45:32 +08:00
|
|
|
name = rg_const
|
|
|
|
response_text = rg_const.500.response
|
|
|
|
trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
NOT = {
|
|
|
|
has_country_flag = gray_const_active
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_const = yes
|
2023-06-03 11:34:25 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5004
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2024-08-31 10:31:22 +08:00
|
|
|
option = {
|
|
|
|
# 空间站
|
|
|
|
name = RG_graygoo.500.f
|
|
|
|
response_text = RG_graygoo.502.f.response
|
|
|
|
trigger = {
|
|
|
|
NOT = {
|
|
|
|
has_country_flag = rg_habitat_enabled
|
|
|
|
}
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_need_manual_toggle
|
|
|
|
hidden_effect = {
|
|
|
|
if = {
|
|
|
|
limit = {
|
|
|
|
has_country_flag = rg_habitat_enabled
|
|
|
|
}
|
|
|
|
rg_clear_harbitat = yes
|
|
|
|
}
|
|
|
|
else = {
|
|
|
|
rg_juggernaut_habitat_init = yes
|
|
|
|
}
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5026
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = {
|
|
|
|
# 空间站
|
|
|
|
name = RG_graygoo.500.g
|
|
|
|
response_text = RG_graygoo.502.g.response
|
|
|
|
trigger = {
|
|
|
|
has_country_flag = rg_habitat_enabled
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_need_manual_toggle
|
|
|
|
hidden_effect = {
|
|
|
|
country_event = {
|
2024-09-17 02:52:42 +08:00
|
|
|
id = rg_grayleader_dialog.5028
|
2024-08-31 10:31:22 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# help
|
2023-05-29 20:45:32 +08:00
|
|
|
name = rg_help
|
|
|
|
hidden_effect = {
|
|
|
|
country_event = {
|
2023-05-29 21:58:46 +08:00
|
|
|
id = rg_grayleader.4
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-09-21 11:54:45 +08:00
|
|
|
option = {
|
|
|
|
# 衣柜
|
|
|
|
name = rg_wardrobe
|
|
|
|
hidden_effect = {
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.7
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Main Menu (Governor)
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.501
|
|
|
|
title = "graygoo.500.title"
|
|
|
|
desc = "graygoo.501.a.desc"
|
|
|
|
desc = "graygoo.501.b.desc"
|
|
|
|
desc = "graygoo.501.c.desc"
|
|
|
|
desc = "graygoo.501.d.desc"
|
|
|
|
diplomatic = yes
|
|
|
|
event_window_type = leader_recruit
|
|
|
|
picture_event_data = {
|
2023-06-11 17:53:31 +08:00
|
|
|
portrait = event_target:gray_governor
|
2023-05-29 20:45:32 +08:00
|
|
|
planet_background = event_target:gray_governor_planet
|
|
|
|
room = root
|
|
|
|
}
|
|
|
|
is_triggered_only = yes
|
|
|
|
trigger = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
fromfrom = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
is_same_value = event_target:gray_owner
|
2023-11-17 03:46:51 +08:00
|
|
|
OR = {
|
|
|
|
has_country_flag = gray_official_active
|
|
|
|
has_country_flag = gray_governor_active #旧版flag
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
2023-05-29 20:45:32 +08:00
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
exists = event_target:gray_governor
|
|
|
|
}
|
|
|
|
immediate = {
|
|
|
|
set_country_flag = gray_diplomacy_engaged
|
|
|
|
if = {
|
|
|
|
limit = {
|
|
|
|
any_owned_planet = {
|
|
|
|
exists = sector.leader
|
2023-06-08 13:11:05 +08:00
|
|
|
sector.leader = {
|
|
|
|
is_same_value = event_target:gray_governor
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
random_owned_planet = {
|
|
|
|
limit = {
|
|
|
|
exists = sector.leader
|
2023-06-08 13:11:05 +08:00
|
|
|
sector.leader = {
|
|
|
|
is_same_value = event_target:gray_governor
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
save_event_target_as = gray_governor_planet
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else = {
|
2023-06-08 13:11:05 +08:00
|
|
|
capital_scope = {
|
|
|
|
save_event_target_as = gray_governor_planet
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
after = {
|
2023-06-08 13:11:05 +08:00
|
|
|
hidden_effect = {
|
|
|
|
remove_country_flag = gray_diplomacy_engaged
|
2023-05-29 20:45:32 +08:00
|
|
|
reset_gray_cloth = yes
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# Warship
|
2023-05-29 20:45:32 +08:00
|
|
|
name = graygoo.500.b
|
|
|
|
response_text = graygoo.501.b.response
|
|
|
|
allow = {
|
2023-06-08 13:11:05 +08:00
|
|
|
hidden_trigger = {
|
|
|
|
exists = event_target:gray_governor
|
|
|
|
} # To prevent exploit
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_warship = yes
|
2023-06-03 11:34:25 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5011
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# Army
|
2023-06-03 11:34:25 +08:00
|
|
|
name = graygoo.500.c
|
|
|
|
response_text = graygoo.501.c.response
|
2023-05-29 20:45:32 +08:00
|
|
|
allow = {
|
2023-06-08 13:11:05 +08:00
|
|
|
hidden_trigger = {
|
|
|
|
exists = event_target:gray_governor
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
hidden_effect = {
|
2023-06-03 11:34:25 +08:00
|
|
|
rg_create_gray_army = yes
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5012
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2024-08-30 06:13:54 +08:00
|
|
|
option = {
|
2024-08-31 10:31:22 +08:00
|
|
|
# const
|
|
|
|
name = rg_const
|
|
|
|
response_text = rg_const.501.response
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
|
|
|
exists = event_target:gray_governor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_const = yes
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5013
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = {
|
|
|
|
# 空间站
|
2024-08-30 06:13:54 +08:00
|
|
|
name = RG_graygoo.500.f
|
|
|
|
response_text = RG_graygoo.502.f.response
|
|
|
|
trigger = {
|
|
|
|
NOT = {
|
|
|
|
has_country_flag = rg_habitat_enabled
|
|
|
|
}
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_need_manual_toggle
|
|
|
|
hidden_effect = {
|
2024-08-31 10:31:22 +08:00
|
|
|
rg_juggernaut_habitat_init = yes
|
2024-08-30 06:13:54 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5026
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = {
|
2024-08-31 10:31:22 +08:00
|
|
|
# 空间站
|
2024-08-30 06:13:54 +08:00
|
|
|
name = RG_graygoo.500.g
|
|
|
|
response_text = RG_graygoo.502.g.response
|
|
|
|
trigger = {
|
|
|
|
has_country_flag = rg_habitat_enabled
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_need_manual_toggle
|
|
|
|
hidden_effect = {
|
|
|
|
country_event = {
|
2024-09-17 02:52:42 +08:00
|
|
|
id = rg_grayleader_dialog.5028
|
2024-08-30 06:13:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# help
|
2023-05-29 20:45:32 +08:00
|
|
|
name = rg_help
|
|
|
|
hidden_effect = {
|
|
|
|
country_event = {
|
2023-05-29 21:58:46 +08:00
|
|
|
id = rg_grayleader.4
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-09-21 11:54:45 +08:00
|
|
|
option = {
|
|
|
|
# 衣柜
|
|
|
|
name = rg_wardrobe
|
|
|
|
hidden_effect = {
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.7
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Main Menu (Warship)
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.502
|
|
|
|
title = "graygoo.500.title"
|
|
|
|
desc = "graygoo.502.a.desc"
|
|
|
|
desc = "graygoo.502.b.desc"
|
|
|
|
desc = "graygoo.502.c.desc"
|
|
|
|
desc = "graygoo.502.d.desc"
|
|
|
|
diplomatic = yes
|
|
|
|
event_window_type = leader_recruit
|
|
|
|
picture_event_data = {
|
2023-06-11 17:53:31 +08:00
|
|
|
portrait = event_target:gray_leader_admiral
|
2023-05-29 20:45:32 +08:00
|
|
|
room = "ethic_spaceship_room"
|
|
|
|
}
|
|
|
|
is_triggered_only = yes
|
|
|
|
trigger = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
fromfrom = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
has_country_flag = gray_warship_active
|
2023-06-08 13:11:05 +08:00
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
2023-05-29 20:45:32 +08:00
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
exists = event_target:gray_warship
|
2023-06-08 13:11:05 +08:00
|
|
|
any_owned_fleet = {
|
|
|
|
is_same_value = event_target:gray_warship
|
|
|
|
}
|
|
|
|
event_target:gray_warship = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
immediate = {
|
|
|
|
set_country_flag = gray_diplomacy_engaged
|
2023-06-08 13:11:05 +08:00
|
|
|
capital_scope = {
|
|
|
|
solar_system = {
|
|
|
|
starbase = {
|
2023-06-11 16:17:01 +08:00
|
|
|
save_global_event_target_as = gray_owner_capital_starbase
|
2023-06-08 13:11:05 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
after = {
|
2023-06-08 13:11:05 +08:00
|
|
|
hidden_effect = {
|
|
|
|
remove_country_flag = gray_diplomacy_engaged
|
2023-05-29 20:45:32 +08:00
|
|
|
reset_gray_cloth = yes
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# Governor
|
2023-05-29 20:45:32 +08:00
|
|
|
name = graygoo.500.a
|
|
|
|
response_text = graygoo.502.a.response
|
|
|
|
allow = {
|
2023-06-08 13:11:05 +08:00
|
|
|
hidden_trigger = {
|
|
|
|
# To prevent exploit
|
|
|
|
event_target:gray_warship = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:gray_warship = {
|
|
|
|
is_in_combat = no
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:gray_warship = {
|
|
|
|
NOT = {
|
|
|
|
has_hp_percentage < 0.97
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_governor = yes
|
2023-06-03 11:34:25 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5021
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# Army
|
2023-05-29 20:45:32 +08:00
|
|
|
name = graygoo.500.c
|
|
|
|
response_text = graygoo.502.c.response
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:gray_warship = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:gray_warship = {
|
|
|
|
is_in_combat = no
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:gray_warship = {
|
|
|
|
NOT = {
|
|
|
|
has_hp_percentage < 0.97
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_army = yes
|
2023-06-03 11:34:25 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5022
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# Juggernaut
|
2023-05-29 20:45:32 +08:00
|
|
|
name = RG_graygoo.500.d
|
|
|
|
response_text = RG_graygoo.502.d.response
|
|
|
|
trigger = {
|
|
|
|
has_country_flag = rg_juggernaut_fired
|
2023-06-08 13:11:05 +08:00
|
|
|
NOT = {
|
|
|
|
has_country_flag = gray_warship_is_juggernaut
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:gray_warship = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:gray_warship = {
|
|
|
|
is_in_combat = no
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:gray_warship = {
|
|
|
|
NOT = {
|
|
|
|
has_hp_percentage < 0.97
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_need_manual_toggle
|
|
|
|
hidden_effect = {
|
|
|
|
set_country_flag = gray_warship_is_juggernaut
|
2023-06-03 11:34:25 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5023
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# Warship
|
2023-05-29 20:45:32 +08:00
|
|
|
name = RG_graygoo.500.e
|
|
|
|
response_text = RG_graygoo.502.e.response
|
|
|
|
trigger = {
|
|
|
|
has_country_flag = rg_juggernaut_fired
|
|
|
|
has_country_flag = gray_warship_is_juggernaut
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:gray_warship = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:gray_warship = {
|
|
|
|
is_in_combat = no
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:gray_warship = {
|
|
|
|
NOT = {
|
|
|
|
has_hp_percentage < 0.97
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_need_manual_toggle
|
|
|
|
hidden_effect = {
|
|
|
|
remove_country_flag = gray_warship_is_juggernaut
|
2023-06-03 11:34:25 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5024
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# const
|
2023-06-03 11:34:25 +08:00
|
|
|
name = rg_const
|
|
|
|
response_text = rg_const.502.response
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:gray_warship = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-06-03 11:34:25 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:gray_warship = {
|
|
|
|
is_in_combat = no
|
|
|
|
}
|
2023-06-03 11:34:25 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:gray_warship = {
|
|
|
|
NOT = {
|
|
|
|
has_hp_percentage < 0.97
|
|
|
|
}
|
|
|
|
}
|
2023-06-03 11:34:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_const = yes
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5025
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2024-08-31 10:31:22 +08:00
|
|
|
option = {
|
|
|
|
# 空间站
|
|
|
|
name = RG_graygoo.500.f
|
|
|
|
response_text = RG_graygoo.502.f.response
|
|
|
|
trigger = {
|
|
|
|
NOT = {
|
|
|
|
has_country_flag = rg_habitat_enabled
|
|
|
|
}
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_need_manual_toggle
|
|
|
|
hidden_effect = {
|
|
|
|
if = {
|
|
|
|
limit = {
|
|
|
|
has_country_flag = rg_habitat_enabled
|
|
|
|
}
|
|
|
|
rg_clear_harbitat = yes
|
|
|
|
}
|
|
|
|
else = {
|
|
|
|
rg_juggernaut_habitat_init = yes
|
|
|
|
}
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5026
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = {
|
|
|
|
# 空间站
|
|
|
|
name = RG_graygoo.500.g
|
|
|
|
response_text = RG_graygoo.502.g.response
|
|
|
|
trigger = {
|
|
|
|
has_country_flag = rg_habitat_enabled
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_need_manual_toggle
|
|
|
|
hidden_effect = {
|
|
|
|
country_event = {
|
2024-09-17 02:52:42 +08:00
|
|
|
id = rg_grayleader_dialog.5028
|
2024-08-31 10:31:22 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
#升级-2
|
2023-05-29 20:45:32 +08:00
|
|
|
name = rg_levelup_2
|
|
|
|
trigger = {
|
2023-06-11 11:10:20 +08:00
|
|
|
RG_gray_mod1_trigger = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
allow = {
|
2023-06-11 11:10:20 +08:00
|
|
|
RG_gray_mod1_allow_trigger = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
2023-06-11 14:35:30 +08:00
|
|
|
RG_gray_mod1_effect = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
#升级-3
|
2023-05-29 20:45:32 +08:00
|
|
|
name = rg_levelup_3
|
|
|
|
trigger = {
|
2023-06-11 11:10:20 +08:00
|
|
|
RG_gray_mod2_trigger = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
allow = {
|
2023-06-11 11:10:20 +08:00
|
|
|
RG_gray_mod2_allow_trigger = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
2023-06-11 14:35:30 +08:00
|
|
|
RG_gray_mod2_effect = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
2023-06-11 11:10:20 +08:00
|
|
|
#升级-4
|
2023-06-10 14:28:50 +08:00
|
|
|
name = rg_event.4.d
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
2023-06-11 11:10:20 +08:00
|
|
|
RG_gray_mod3_trigger = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
allow = {
|
2023-06-11 11:10:20 +08:00
|
|
|
RG_gray_mod3_allow_trigger = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
2023-06-11 14:35:30 +08:00
|
|
|
RG_gray_mod3_effect = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# 开启隐形
|
2023-06-10 14:28:50 +08:00
|
|
|
name = rg_event.4.e
|
2023-05-29 22:36:11 +08:00
|
|
|
response_text = rg_cloak.a.response
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
|
|
|
any_owned_fleet = {
|
|
|
|
AND = {
|
|
|
|
is_ship_size = RG_gray_juggernaut
|
|
|
|
is_cloaked = no
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
every_owned_fleet = {
|
|
|
|
limit = {
|
|
|
|
any_owned_ship = {
|
|
|
|
is_ship_size = RG_gray_juggernaut
|
|
|
|
}
|
|
|
|
}
|
|
|
|
set_cloaking_active = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# 关闭隐形
|
2023-06-10 14:28:50 +08:00
|
|
|
name = rg_event.4.f
|
2023-05-29 22:36:11 +08:00
|
|
|
response_text = rg_cloak_off.a.response
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
|
|
|
any_owned_fleet = {
|
|
|
|
AND = {
|
|
|
|
is_ship_size = RG_gray_juggernaut
|
|
|
|
is_cloaked = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
every_owned_fleet = {
|
|
|
|
limit = {
|
|
|
|
any_owned_ship = {
|
|
|
|
is_ship_size = RG_gray_juggernaut
|
|
|
|
}
|
|
|
|
}
|
|
|
|
set_cloaking_active = no
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Main Menu (Army)
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.503
|
|
|
|
title = "graygoo.500.title"
|
|
|
|
desc = "graygoo.503.a.desc"
|
|
|
|
desc = "graygoo.503.b.desc"
|
|
|
|
desc = "graygoo.503.c.desc"
|
|
|
|
desc = "graygoo.503.d.desc"
|
|
|
|
diplomatic = yes
|
|
|
|
event_window_type = leader_recruit
|
|
|
|
picture_event_data = {
|
2023-06-11 17:53:31 +08:00
|
|
|
portrait = event_target:gray_leader_general
|
2023-05-29 20:45:32 +08:00
|
|
|
room = "ethic_spaceship_room"
|
|
|
|
}
|
|
|
|
is_triggered_only = yes
|
|
|
|
trigger = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
fromfrom = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
has_country_flag = gray_army_active
|
2023-06-08 13:11:05 +08:00
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
has_country_flag = gray_diplomacy_engaged
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
OR = {
|
|
|
|
exists = planet
|
|
|
|
AND = {
|
|
|
|
exists = fleet
|
2023-06-08 13:11:05 +08:00
|
|
|
fleet = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
immediate = {
|
|
|
|
set_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
after = {
|
2023-06-08 13:11:05 +08:00
|
|
|
hidden_effect = {
|
|
|
|
remove_country_flag = gray_diplomacy_engaged
|
2023-05-29 20:45:32 +08:00
|
|
|
reset_gray_cloth = yes
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# Governor
|
2023-05-29 20:45:32 +08:00
|
|
|
name = graygoo.500.a
|
|
|
|
response_text = graygoo.503.a.response
|
|
|
|
allow = {
|
2023-06-08 13:11:05 +08:00
|
|
|
hidden_trigger = {
|
|
|
|
# To prevent exploit
|
2023-05-29 20:45:32 +08:00
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
OR = {
|
|
|
|
exists = planet
|
|
|
|
AND = {
|
|
|
|
exists = fleet
|
2023-06-08 13:11:05 +08:00
|
|
|
fleet = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
if = {
|
2023-06-08 13:11:05 +08:00
|
|
|
limit = {
|
|
|
|
exists = planet
|
|
|
|
}
|
|
|
|
planet = {
|
|
|
|
has_ground_combat = no
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
OR = {
|
|
|
|
exists = planet
|
|
|
|
AND = {
|
|
|
|
exists = fleet
|
2023-06-08 13:11:05 +08:00
|
|
|
fleet = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
if = {
|
2023-06-08 13:11:05 +08:00
|
|
|
limit = {
|
|
|
|
exists = fleet
|
|
|
|
}
|
|
|
|
fleet = {
|
|
|
|
is_in_combat = no
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_governor = yes
|
2023-06-03 11:34:25 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5031
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# Warship
|
2023-05-29 20:45:32 +08:00
|
|
|
name = graygoo.500.b
|
|
|
|
response_text = graygoo.503.b.response
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
OR = {
|
|
|
|
exists = planet
|
|
|
|
AND = {
|
|
|
|
exists = fleet
|
2023-06-08 13:11:05 +08:00
|
|
|
fleet = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
if = {
|
2023-06-08 13:11:05 +08:00
|
|
|
limit = {
|
|
|
|
exists = planet
|
|
|
|
}
|
|
|
|
planet = {
|
|
|
|
has_ground_combat = no
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
OR = {
|
|
|
|
exists = planet
|
|
|
|
AND = {
|
|
|
|
exists = fleet
|
2023-06-08 13:11:05 +08:00
|
|
|
fleet = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
if = {
|
2023-06-08 13:11:05 +08:00
|
|
|
limit = {
|
|
|
|
exists = fleet
|
|
|
|
}
|
|
|
|
fleet = {
|
|
|
|
is_in_combat = no
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_warship = yes
|
2023-06-03 11:34:25 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5032
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# const
|
2023-05-29 20:45:32 +08:00
|
|
|
name = rg_const
|
|
|
|
response_text = rg_const.503.response
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
OR = {
|
|
|
|
exists = planet
|
|
|
|
AND = {
|
|
|
|
exists = fleet
|
2023-06-08 13:11:05 +08:00
|
|
|
fleet = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
if = {
|
2023-06-08 13:11:05 +08:00
|
|
|
limit = {
|
|
|
|
exists = planet
|
|
|
|
}
|
|
|
|
planet = {
|
|
|
|
has_ground_combat = no
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
OR = {
|
|
|
|
exists = planet
|
|
|
|
AND = {
|
|
|
|
exists = fleet
|
2023-06-08 13:11:05 +08:00
|
|
|
fleet = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
if = {
|
2023-06-08 13:11:05 +08:00
|
|
|
limit = {
|
|
|
|
exists = fleet
|
|
|
|
}
|
|
|
|
fleet = {
|
|
|
|
is_in_combat = no
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_const = yes
|
2023-06-03 11:34:25 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5033
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2024-08-31 10:31:22 +08:00
|
|
|
option = {
|
|
|
|
# 空间站
|
|
|
|
name = RG_graygoo.500.f
|
|
|
|
response_text = RG_graygoo.502.f.response
|
|
|
|
trigger = {
|
|
|
|
NOT = {
|
|
|
|
has_country_flag = rg_habitat_enabled
|
|
|
|
}
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_need_manual_toggle
|
|
|
|
hidden_effect = {
|
|
|
|
if = {
|
|
|
|
limit = {
|
|
|
|
has_country_flag = rg_habitat_enabled
|
|
|
|
}
|
|
|
|
rg_clear_harbitat = yes
|
|
|
|
}
|
|
|
|
else = {
|
|
|
|
rg_juggernaut_habitat_init = yes
|
|
|
|
}
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5026
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = {
|
|
|
|
# 空间站
|
|
|
|
name = RG_graygoo.500.g
|
|
|
|
response_text = RG_graygoo.502.g.response
|
|
|
|
trigger = {
|
|
|
|
has_country_flag = rg_juggernaut_fired
|
|
|
|
has_country_flag = rg_habitat_enabled
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
has_country_flag = rg_juggernaut_fired # To prevent exploit
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_need_manual_toggle
|
|
|
|
hidden_effect = {
|
|
|
|
country_event = {
|
2024-09-17 02:52:42 +08:00
|
|
|
id = rg_grayleader_dialog.5028
|
2024-08-31 10:31:22 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# 开启隐形
|
2023-06-10 14:28:50 +08:00
|
|
|
name = rg_event.4.e
|
2023-05-29 22:36:11 +08:00
|
|
|
response_text = rg_cloak.a.response
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
|
|
|
any_owned_fleet = {
|
|
|
|
AND = {
|
|
|
|
is_ship_size = RG_armed_transport_ship
|
|
|
|
is_cloaked = no
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
every_owned_fleet = {
|
|
|
|
limit = {
|
|
|
|
any_owned_ship = {
|
|
|
|
is_ship_size = RG_armed_transport_ship
|
|
|
|
}
|
|
|
|
}
|
|
|
|
set_cloaking_active = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# 关闭隐形
|
2023-06-10 14:28:50 +08:00
|
|
|
name = rg_event.4.f
|
2023-05-29 22:36:11 +08:00
|
|
|
response_text = rg_cloak_off.a.response
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
|
|
|
any_owned_fleet = {
|
|
|
|
AND = {
|
|
|
|
is_ship_size = RG_armed_transport_ship
|
|
|
|
is_cloaked = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
every_owned_fleet = {
|
|
|
|
limit = {
|
|
|
|
any_owned_ship = {
|
|
|
|
is_ship_size = RG_armed_transport_ship
|
|
|
|
}
|
|
|
|
}
|
|
|
|
set_cloaking_active = no
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-30 09:33:22 +08:00
|
|
|
# Main Menu (Gray Reforming)
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.504
|
|
|
|
title = "graygoo.500.title"
|
|
|
|
desc = "graygoo.504.desc"
|
|
|
|
diplomatic = yes
|
|
|
|
is_triggered_only = yes
|
|
|
|
trigger = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
from = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-30 09:33:22 +08:00
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
}
|
|
|
|
option = {
|
|
|
|
name = OK
|
|
|
|
}
|
2024-05-15 22:50:36 +08:00
|
|
|
# option = {
|
|
|
|
# name = rg_graygoo.504.a
|
|
|
|
# allow = {
|
|
|
|
# has_country_flag = gray_reforming
|
|
|
|
# resource_stockpile_compare = {
|
|
|
|
# resource = nanites
|
|
|
|
# value >= 1000
|
|
|
|
# }
|
|
|
|
# resource_stockpile_compare = {
|
|
|
|
# resource = alloys
|
|
|
|
# value >= 50000
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
# add_resource = {
|
|
|
|
# nanites = -1000
|
|
|
|
# alloys = -50000
|
|
|
|
# }
|
|
|
|
# remove_modifier = "gray_scattered"
|
|
|
|
# country_event = {
|
|
|
|
# id = graygoo.512
|
|
|
|
# }
|
|
|
|
# }
|
2023-05-30 09:33:22 +08:00
|
|
|
}
|
|
|
|
|
2023-05-29 20:45:32 +08:00
|
|
|
# Main Menu (const)
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.505
|
|
|
|
title = "graygoo.500.title"
|
|
|
|
desc = "graygoo.505.a.desc"
|
|
|
|
desc = "graygoo.505.b.desc"
|
|
|
|
desc = "graygoo.505.c.desc"
|
|
|
|
desc = "graygoo.505.d.desc"
|
|
|
|
diplomatic = yes
|
|
|
|
event_window_type = leader_recruit
|
|
|
|
picture_event_data = {
|
2023-06-11 17:53:31 +08:00
|
|
|
portrait = event_target:gray_leader_scientist
|
2023-05-29 20:45:32 +08:00
|
|
|
room = "ethic_spaceship_room"
|
|
|
|
}
|
|
|
|
is_triggered_only = yes
|
|
|
|
trigger = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
fromfrom = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
has_country_flag = gray_constship_active
|
2023-06-08 13:11:05 +08:00
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
2023-05-29 20:45:32 +08:00
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
exists = event_target:global_gray_constship
|
2023-06-08 13:11:05 +08:00
|
|
|
any_owned_fleet = {
|
|
|
|
is_same_value = event_target:global_gray_constship
|
|
|
|
}
|
|
|
|
event_target:global_gray_constship = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
immediate = {
|
|
|
|
set_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
after = {
|
2023-06-08 13:11:05 +08:00
|
|
|
hidden_effect = {
|
|
|
|
remove_country_flag = gray_diplomacy_engaged
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# Governor
|
2023-05-29 20:45:32 +08:00
|
|
|
name = graygoo.500.a
|
|
|
|
response_text = graygoo.505.a.response
|
|
|
|
allow = {
|
2023-06-08 13:11:05 +08:00
|
|
|
hidden_trigger = {
|
|
|
|
# To prevent exploit
|
|
|
|
event_target:global_gray_constship = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:global_gray_constship = {
|
|
|
|
is_in_combat = no
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:global_gray_constship = {
|
|
|
|
NOT = {
|
|
|
|
has_hp_percentage < 0.97
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = gray_become_ruler
|
2023-06-08 13:11:05 +08:00
|
|
|
NOT = {
|
|
|
|
ruler = {
|
|
|
|
has_leader_flag = "gray_leader"
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_governor = yes
|
2023-06-03 11:34:25 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5051
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# Warship
|
2023-05-29 20:45:32 +08:00
|
|
|
name = graygoo.500.b
|
|
|
|
response_text = graygoo.505.b.response
|
|
|
|
allow = {
|
2023-06-08 13:11:05 +08:00
|
|
|
hidden_trigger = {
|
|
|
|
# To prevent exploit
|
|
|
|
event_target:global_gray_constship = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:global_gray_constship = {
|
|
|
|
is_in_combat = no
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:global_gray_constship = {
|
|
|
|
NOT = {
|
|
|
|
has_hp_percentage < 0.97
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_warship = yes
|
2023-06-03 11:34:25 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5052
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# Army
|
2023-05-29 20:45:32 +08:00
|
|
|
name = graygoo.500.c
|
|
|
|
response_text = graygoo.505.c.response
|
|
|
|
allow = {
|
2023-06-08 13:11:05 +08:00
|
|
|
hidden_trigger = {
|
|
|
|
# To prevent exploit
|
|
|
|
event_target:global_gray_constship = {
|
|
|
|
num_ships > 0
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:global_gray_constship = {
|
|
|
|
is_in_combat = no
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
2023-06-08 13:11:05 +08:00
|
|
|
event_target:global_gray_constship = {
|
|
|
|
NOT = {
|
|
|
|
has_hp_percentage < 0.97
|
|
|
|
}
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_army = yes
|
2023-06-03 11:34:25 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5053
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2024-08-31 10:31:22 +08:00
|
|
|
option = {
|
|
|
|
# 空间站
|
|
|
|
name = RG_graygoo.500.f
|
|
|
|
response_text = RG_graygoo.502.f.response
|
|
|
|
trigger = {
|
|
|
|
NOT = {
|
|
|
|
has_country_flag = rg_habitat_enabled
|
|
|
|
}
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_need_manual_toggle
|
|
|
|
hidden_effect = {
|
|
|
|
if = {
|
|
|
|
limit = {
|
|
|
|
has_country_flag = rg_habitat_enabled
|
|
|
|
}
|
|
|
|
rg_clear_harbitat = yes
|
|
|
|
}
|
|
|
|
else = {
|
|
|
|
rg_juggernaut_habitat_init = yes
|
|
|
|
}
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.5026
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = {
|
|
|
|
# 空间站
|
|
|
|
name = RG_graygoo.500.g
|
|
|
|
response_text = RG_graygoo.502.g.response
|
|
|
|
trigger = {
|
|
|
|
has_country_flag = rg_habitat_enabled
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_need_manual_toggle
|
|
|
|
hidden_effect = {
|
|
|
|
country_event = {
|
2024-09-17 02:52:42 +08:00
|
|
|
id = rg_grayleader_dialog.5028
|
2024-08-31 10:31:22 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
# option = { # 开启建造中继器
|
2023-06-10 14:28:50 +08:00
|
|
|
# name = rg_event.5.e
|
2023-06-08 13:11:05 +08:00
|
|
|
# trigger = {
|
|
|
|
# has_country_flag = rg_can_const_hyper_relay
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# hidden_effect = {
|
|
|
|
# remove_country_flag = rg_can_const_hyper_relay
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# option = { # 关闭建造中继器
|
2023-06-10 14:28:50 +08:00
|
|
|
# name = rg_event.5.f
|
2023-06-08 13:11:05 +08:00
|
|
|
# trigger = {
|
|
|
|
# NOT = {
|
|
|
|
# has_country_flag = rg_can_const_hyper_relay
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# hidden_effect = {
|
|
|
|
# hidden_effect = {
|
|
|
|
# set_country_flag = rg_can_const_hyper_relay
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# }
|
2023-05-29 20:45:32 +08:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# help Menu (Initial)
|
|
|
|
country_event = {
|
2023-05-29 21:58:46 +08:00
|
|
|
id = rg_grayleader.4
|
2023-05-29 20:45:32 +08:00
|
|
|
title = "graygoo.500.title"
|
2023-06-10 14:28:50 +08:00
|
|
|
desc = "rg_event.4.a.desc"
|
2023-05-29 20:45:32 +08:00
|
|
|
event_window_type = leader_recruit
|
|
|
|
picture_event_data = {
|
2023-06-11 17:53:31 +08:00
|
|
|
portrait = event_target:gray_governor
|
2023-05-29 20:45:32 +08:00
|
|
|
room = "ethic_spaceship_room"
|
|
|
|
}
|
|
|
|
is_triggered_only = yes
|
|
|
|
immediate = {
|
|
|
|
set_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
after = {
|
2023-06-08 13:11:05 +08:00
|
|
|
hidden_effect = {
|
|
|
|
remove_country_flag = gray_diplomacy_engaged
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# 购买灰风母舰
|
2023-06-10 14:28:50 +08:00
|
|
|
name = rg_event.4.a
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
NOT = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = rg_gray_level_1
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
resource_stockpile_compare = {
|
|
|
|
resource = energy
|
|
|
|
value >= 40000
|
|
|
|
}
|
|
|
|
resource_stockpile_compare = {
|
|
|
|
resource = alloys
|
|
|
|
value >= 40000
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
if = {
|
|
|
|
limit = {
|
|
|
|
has_country_flag = gray_begging
|
|
|
|
}
|
|
|
|
remove_country_flag = gray_begging
|
|
|
|
}
|
|
|
|
else = {
|
|
|
|
add_resource = {
|
|
|
|
energy = -40000
|
2023-06-08 13:11:05 +08:00
|
|
|
alloys = -40000
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_warship_1 = yes
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# 购买工程船
|
2023-06-10 14:28:50 +08:00
|
|
|
name = rg_event.4.b
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
NOT = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
allow = {
|
2023-06-08 13:11:05 +08:00
|
|
|
resource_stockpile_compare = {
|
|
|
|
resource = energy
|
|
|
|
value >= 2000
|
|
|
|
}
|
|
|
|
resource_stockpile_compare = {
|
|
|
|
resource = alloys
|
|
|
|
value >= 2000
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
add_resource = {
|
2023-05-29 20:45:32 +08:00
|
|
|
energy = -2000
|
|
|
|
alloys = -2000
|
2023-06-08 13:11:05 +08:00
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_constship_1 = yes
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# 购买殖民船
|
2023-06-10 14:28:50 +08:00
|
|
|
name = rg_event.4.g
|
2023-06-03 17:46:32 +08:00
|
|
|
trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
NOT = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
}
|
2023-06-03 17:46:32 +08:00
|
|
|
}
|
|
|
|
allow = {
|
2023-06-08 13:11:05 +08:00
|
|
|
resource_stockpile_compare = {
|
|
|
|
resource = food
|
|
|
|
value >= 2000
|
|
|
|
}
|
|
|
|
resource_stockpile_compare = {
|
|
|
|
resource = energy
|
|
|
|
value >= 2000
|
|
|
|
}
|
2023-06-03 17:46:32 +08:00
|
|
|
}
|
|
|
|
add_resource = {
|
|
|
|
food = -2000
|
|
|
|
energy = -2000
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_colony_1 = yes
|
|
|
|
}
|
|
|
|
}
|
2024-08-31 10:31:22 +08:00
|
|
|
option = {
|
|
|
|
# 购买巨像
|
|
|
|
name = rg_event.4.h
|
|
|
|
trigger = {
|
|
|
|
NOT = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
}
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
resource_stockpile_compare = {
|
|
|
|
resource = energy
|
|
|
|
value >= 8000
|
|
|
|
}
|
|
|
|
resource_stockpile_compare = {
|
|
|
|
resource = alloys
|
|
|
|
value >= 8000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
add_resource = {
|
|
|
|
energy = -8000
|
|
|
|
alloys = -8000
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_planetkiller_testship_1 = yes
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# 没钱了,救救
|
2023-06-10 14:28:50 +08:00
|
|
|
name = rg_event.4.c
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
NOT = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
if = {
|
|
|
|
limit = {
|
|
|
|
has_country_flag = gray_alreadybegged
|
|
|
|
}
|
|
|
|
country_event = {
|
2023-05-29 21:58:46 +08:00
|
|
|
id = rg_grayleader.6
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else = {
|
|
|
|
country_event = {
|
2023-05-29 21:58:46 +08:00
|
|
|
id = rg_grayleader.5
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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 = {
|
2023-05-29 21:58:46 +08:00
|
|
|
id = rg_grayleader.5
|
2023-05-29 20:45:32 +08:00
|
|
|
title = "graygoo.500.title"
|
2023-06-10 14:28:50 +08:00
|
|
|
desc = "rg_event.5.a.desc"
|
|
|
|
desc = "rg_event.5.b.desc"
|
|
|
|
desc = "rg_event.5.c.desc"
|
2023-05-29 20:45:32 +08:00
|
|
|
event_window_type = leader_recruit
|
|
|
|
picture_event_data = {
|
2023-06-11 17:53:31 +08:00
|
|
|
portrait = event_target:gray_governor
|
2023-05-29 20:45:32 +08:00
|
|
|
room = "ethic_spaceship_room"
|
|
|
|
}
|
|
|
|
is_triggered_only = yes
|
|
|
|
immediate = {
|
|
|
|
set_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
after = {
|
2023-06-08 13:11:05 +08:00
|
|
|
hidden_effect = {
|
|
|
|
remove_country_flag = gray_diplomacy_engaged
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# 没钱了,救救
|
2023-06-10 14:28:50 +08:00
|
|
|
name = rg_event.5.a
|
2023-05-29 20:45:32 +08:00
|
|
|
hidden_effect = {
|
|
|
|
set_country_flag = gray_begging
|
2023-06-08 13:11:05 +08:00
|
|
|
set_timed_country_flag = {
|
|
|
|
flag = gray_alreadybegged
|
|
|
|
days = 3600
|
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
tooltip = {
|
|
|
|
add_resource = {
|
2023-06-01 16:48:38 +08:00
|
|
|
energy = 400
|
2023-05-29 20:45:32 +08:00
|
|
|
alloys = 200
|
|
|
|
consumer_goods = 200
|
2023-06-01 16:48:38 +08:00
|
|
|
mult = owner.rg_gray_level
|
2023-06-08 13:11:05 +08:00
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
}
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
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 = {
|
2023-05-29 22:36:11 +08:00
|
|
|
id = rg_grayleader.6
|
2023-05-29 20:45:32 +08:00
|
|
|
title = "graygoo.500.title"
|
2023-06-10 14:28:50 +08:00
|
|
|
desc = "rg_event.6.a.desc"
|
|
|
|
desc = "rg_event.6.b.desc"
|
2023-05-29 22:36:11 +08:00
|
|
|
event_window_type = leader_recruit
|
2023-05-29 20:45:32 +08:00
|
|
|
picture_event_data = {
|
2023-06-11 17:53:31 +08:00
|
|
|
portrait = event_target:gray_governor
|
2023-05-29 20:45:32 +08:00
|
|
|
room = "ethic_spaceship_room"
|
|
|
|
}
|
|
|
|
is_triggered_only = yes
|
|
|
|
immediate = {
|
|
|
|
set_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
after = {
|
2023-06-08 13:11:05 +08:00
|
|
|
hidden_effect = {
|
|
|
|
remove_country_flag = gray_diplomacy_engaged
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
option = {
|
|
|
|
# 诶嘿
|
2023-06-10 14:28:50 +08:00
|
|
|
name = rg_event.6.a
|
2023-05-29 20:45:32 +08:00
|
|
|
}
|
2023-05-29 22:36:11 +08:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
}
|
2024-09-21 11:54:45 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|