2023-05-29 20:45:32 +08:00
|
|
|
namespace = rg_grayleader
|
|
|
|
|
|
|
|
# Check list (Initial)
|
|
|
|
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
|
|
|
|
}
|
|
|
|
from = { OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}}
|
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
immediate = {
|
|
|
|
if = {
|
|
|
|
limit = { #500.initial
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
|
|
|
from = { OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}}
|
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_constship_active
|
|
|
|
has_country_flag = gray_governor_active
|
|
|
|
has_country_flag = gray_warship_active
|
|
|
|
has_country_flag = gray_army_active
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
}
|
|
|
|
country_event = { id = graygoo.500 }
|
|
|
|
}
|
|
|
|
else_if = { #501.governor
|
|
|
|
limit = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
|
|
|
from = { OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}}
|
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
has_country_flag = gray_governor_active
|
|
|
|
exists = event_target:gray_governor
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
}
|
|
|
|
country_event = { id = graygoo.501 }
|
|
|
|
}
|
|
|
|
else_if = { #502.warship
|
|
|
|
limit = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
|
|
|
from = { OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}}
|
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
has_country_flag = gray_warship_active
|
|
|
|
exists = event_target:gray_warship
|
|
|
|
any_owned_fleet = { is_same_value = event_target:gray_warship }
|
|
|
|
event_target:gray_warship = { num_ships > 0 }
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
}
|
|
|
|
country_event = { id = graygoo.502 }
|
|
|
|
}
|
|
|
|
else_if = { #503.army
|
|
|
|
limit = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
|
|
|
from = { OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}}
|
|
|
|
has_country_flag = gray_army_active
|
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
OR = {
|
|
|
|
exists = planet
|
|
|
|
AND = {
|
|
|
|
exists = fleet
|
|
|
|
fleet = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
}
|
|
|
|
country_event = { id = graygoo.503 }
|
|
|
|
}
|
|
|
|
else_if = { #505.scienceship
|
|
|
|
limit = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
|
|
|
from = { OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}}
|
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
has_country_flag = gray_constship_active
|
|
|
|
exists = event_target:global_gray_constship
|
|
|
|
any_owned_fleet = { is_same_value = event_target:global_gray_constship }
|
|
|
|
event_target:global_gray_constship = { num_ships > 0 }
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
}
|
|
|
|
country_event = { id = graygoo.505 }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
# 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 = {
|
|
|
|
portrait = event_target:gray_governor
|
|
|
|
planet_background = root.capital_scope
|
|
|
|
room = "ethic_spaceship_room"
|
|
|
|
}
|
|
|
|
|
|
|
|
is_triggered_only = yes
|
|
|
|
|
|
|
|
immediate = {
|
|
|
|
set_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
|
|
|
|
after = {
|
|
|
|
hidden_effect = {
|
|
|
|
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
|
|
|
|
}
|
|
|
|
from = { OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}}
|
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_constship_active
|
|
|
|
has_country_flag = gray_governor_active
|
|
|
|
has_country_flag = gray_warship_active
|
|
|
|
has_country_flag = gray_army_active
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
option = { # Governor
|
|
|
|
name = graygoo.500.a
|
|
|
|
response_text = graygoo.500.a.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
|
|
|
NOT = { has_country_flag = gray_governor_active }
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_governor = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = { # Warship
|
|
|
|
name = graygoo.500.b
|
|
|
|
response_text = graygoo.500.b.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
|
|
|
NOT = { has_country_flag = gray_warship_active }
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_warship = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = { # Army
|
|
|
|
name = graygoo.500.c
|
|
|
|
response_text = graygoo.500.c.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
|
|
|
NOT = { has_country_flag = gray_army_active }
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = { # const
|
|
|
|
name = rg_const
|
|
|
|
response_text = rg_const.500.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
|
|
|
NOT = { has_country_flag = gray_const_active }
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_const = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = { # help
|
|
|
|
name = rg_help
|
|
|
|
hidden_effect = {
|
|
|
|
country_event = {
|
|
|
|
id = rg.4
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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 = {
|
|
|
|
portrait = event_target:gray_governor
|
|
|
|
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
|
|
|
|
}
|
|
|
|
from = { OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}}
|
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
has_country_flag = gray_governor_active
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
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
|
|
|
|
sector.leader = { is_same_value = event_target:gray_governor }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
random_owned_planet = {
|
|
|
|
limit = {
|
|
|
|
exists = sector.leader
|
|
|
|
sector.leader = { is_same_value = event_target:gray_governor }
|
|
|
|
}
|
|
|
|
save_event_target_as = gray_governor_planet
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else = {
|
|
|
|
capital_scope = { save_event_target_as = gray_governor_planet }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
after = {
|
|
|
|
hidden_effect = {
|
|
|
|
remove_country_flag = gray_diplomacy_engaged
|
|
|
|
reset_gray_cloth = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
option = { # Warship
|
|
|
|
name = graygoo.500.b
|
|
|
|
response_text = graygoo.501.b.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
allow = {
|
|
|
|
hidden_trigger = { exists = event_target:gray_governor } # To prevent exploit
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_warship = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = { # const
|
|
|
|
name = rg_const
|
|
|
|
response_text = rg_const.501.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
allow = {
|
|
|
|
hidden_trigger = { exists = event_target:gray_governor }
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_const = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = { # Army
|
|
|
|
name = graygoo.500.c
|
|
|
|
response_text = graygoo.501.c.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
allow = {
|
|
|
|
hidden_trigger = { exists = event_target:gray_governor }
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = { # help
|
|
|
|
name = rg_help
|
|
|
|
hidden_effect = {
|
|
|
|
country_event = {
|
|
|
|
id = rg.4
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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 = {
|
|
|
|
portrait = event_target:gray_leader_admiral
|
|
|
|
room = "ethic_spaceship_room"
|
|
|
|
}
|
|
|
|
|
|
|
|
is_triggered_only = yes
|
|
|
|
|
|
|
|
trigger = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
|
|
|
from = { OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}}
|
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
has_country_flag = gray_warship_active
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
exists = event_target:gray_warship
|
|
|
|
any_owned_fleet = { is_same_value = event_target:gray_warship }
|
|
|
|
event_target:gray_warship = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
|
|
|
|
immediate = {
|
|
|
|
set_country_flag = gray_diplomacy_engaged
|
|
|
|
capital_scope = { solar_system = { starbase = { save_event_target_as = gray_owner_capital_starbase }}}
|
|
|
|
}
|
|
|
|
|
|
|
|
after = {
|
|
|
|
hidden_effect = {
|
|
|
|
remove_country_flag = gray_diplomacy_engaged
|
|
|
|
reset_gray_cloth = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
option = { # Governor
|
|
|
|
name = graygoo.500.a
|
|
|
|
response_text = graygoo.502.a.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
allow = {
|
|
|
|
hidden_trigger = { # To prevent exploit
|
|
|
|
event_target:gray_warship = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
event_target:gray_warship = { is_in_combat = no }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
|
|
|
event_target:gray_warship = { NOT = { has_hp_percentage < 0.97 } }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_governor = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = { # const
|
|
|
|
name = rg_const
|
|
|
|
response_text = rg_const.502.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
|
|
|
event_target:gray_warship = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
event_target:gray_warship = { is_in_combat = no }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
|
|
|
event_target:gray_warship = { NOT = { has_hp_percentage < 0.97 } }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_const = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = { # Army
|
|
|
|
name = graygoo.500.c
|
|
|
|
response_text = graygoo.502.c.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
|
|
|
event_target:gray_warship = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
event_target:gray_warship = { is_in_combat = no }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
|
|
|
event_target:gray_warship = { NOT = { has_hp_percentage < 0.97 } }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
option = { # Juggernaut
|
|
|
|
name = RG_graygoo.500.d
|
|
|
|
response_text = RG_graygoo.502.d.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
|
|
|
has_country_flag = rg_juggernaut_fired
|
|
|
|
NOT = { has_country_flag = gray_warship_is_juggernaut }
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
|
|
|
event_target:gray_warship = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
event_target:gray_warship = { is_in_combat = no }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
|
|
|
event_target:gray_warship = { NOT = { has_hp_percentage < 0.97 } }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_need_manual_toggle
|
|
|
|
hidden_effect = {
|
|
|
|
set_country_flag = gray_warship_is_juggernaut
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
option = { # Warship
|
|
|
|
name = RG_graygoo.500.e
|
|
|
|
response_text = RG_graygoo.502.e.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
|
|
|
has_country_flag = rg_juggernaut_fired
|
|
|
|
has_country_flag = gray_warship_is_juggernaut
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
|
|
|
event_target:gray_warship = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
event_target:gray_warship = { is_in_combat = no }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
|
|
|
event_target:gray_warship = { NOT = { has_hp_percentage < 0.97 } }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_need_manual_toggle
|
|
|
|
hidden_effect = {
|
|
|
|
remove_country_flag = gray_warship_is_juggernaut
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
option = { #升级-2
|
|
|
|
name = rg_levelup_2
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
|
|
|
event_target:gray_leader_admiral = { has_skill >= 10 }
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = rg_gray_level_2
|
|
|
|
has_country_flag = rg_gray_level_3
|
|
|
|
has_special_project = RG_GRAY_MOD1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
|
|
|
event_target:gray_warship = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
event_target:gray_warship = { is_in_combat = no }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
|
|
|
event_target:gray_warship = { NOT = { has_hp_percentage < 0.97 } }
|
|
|
|
}
|
|
|
|
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = requires_rg_graylevel_higherthan_25
|
|
|
|
event_target:gray_leader_admiral = { has_skill >= 10 }
|
|
|
|
}
|
|
|
|
resource_stockpile_compare = { resource = energy value >= 40000 }
|
|
|
|
resource_stockpile_compare = { resource = alloys value >= 40000 }
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_levelup_2.tooltip
|
|
|
|
enable_special_project = {
|
|
|
|
name = RG_GRAY_MOD1
|
|
|
|
location = event_target:gray_owner_capital_starbase
|
|
|
|
owner = root
|
|
|
|
}
|
|
|
|
add_resource = {
|
|
|
|
energy = -40000
|
|
|
|
alloys = -40000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
option = { #升级-3
|
|
|
|
name = rg_levelup_3
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
|
|
|
AND = {
|
|
|
|
event_target:gray_leader_admiral = { has_skill >= 10 }
|
|
|
|
has_country_flag = rg_gray_level_2
|
|
|
|
}
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = rg_gray_level_3
|
|
|
|
has_special_project = RG_GRAY_MOD2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = { # To prevent exploit
|
|
|
|
event_target:gray_warship = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
event_target:gray_warship = { is_in_combat = no }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
|
|
|
event_target:gray_warship = { NOT = { has_hp_percentage < 0.97 } }
|
|
|
|
}
|
|
|
|
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = requires_rg_graylevel_higherthan_50
|
|
|
|
has_technology = tech_juggernaut
|
|
|
|
}
|
|
|
|
resource_stockpile_compare = { resource = energy value >= 150000 }
|
|
|
|
resource_stockpile_compare = { resource = alloys value >= 150000 }
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_levelup_2.tooltip
|
|
|
|
enable_special_project = {
|
|
|
|
name = RG_GRAY_MOD2
|
|
|
|
location = event_target:gray_owner_capital_starbase
|
|
|
|
owner = root
|
|
|
|
}
|
|
|
|
add_resource = {
|
|
|
|
energy = -150000
|
|
|
|
alloys = -150000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
option = { # 购买主宰
|
|
|
|
name = rg.4.d
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
has_country_flag = rg_juggernaut_fired
|
|
|
|
}
|
|
|
|
has_country_flag = rg_gray_level_3
|
|
|
|
}
|
|
|
|
|
|
|
|
allow = {
|
|
|
|
resource_stockpile_compare = { resource = energy value >= 150000 }
|
|
|
|
resource_stockpile_compare = { resource = alloys value >= 150000 }
|
|
|
|
has_technology = tech_juggernaut
|
|
|
|
}
|
|
|
|
custom_tooltip = rg_levelup_2.tooltip
|
|
|
|
enable_special_project = {
|
|
|
|
name = RG_GRAY_MOD3
|
|
|
|
location = event_target:gray_owner_capital_starbase
|
|
|
|
owner = root
|
|
|
|
}
|
|
|
|
add_resource = {
|
|
|
|
energy = -150000
|
|
|
|
alloys = -150000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
option = { # 开启隐形
|
|
|
|
name = rg.4.e
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
option = { # 关闭隐形
|
|
|
|
name = rg.4.f
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
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 = { # help
|
|
|
|
name = rg_help
|
|
|
|
hidden_effect = {
|
|
|
|
country_event = {
|
|
|
|
id = rg.4
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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 = {
|
|
|
|
portrait = event_target:gray_leader_general
|
|
|
|
room = "ethic_spaceship_room"
|
|
|
|
}
|
|
|
|
|
|
|
|
is_triggered_only = yes
|
|
|
|
|
|
|
|
trigger = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
|
|
|
from = { OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}}
|
|
|
|
has_country_flag = gray_army_active
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
|
|
|
|
}
|
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
OR = {
|
|
|
|
exists = planet
|
|
|
|
AND = {
|
|
|
|
exists = fleet
|
|
|
|
fleet = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
immediate = {
|
|
|
|
set_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
|
|
|
|
after = {
|
|
|
|
hidden_effect = {
|
|
|
|
remove_country_flag = gray_diplomacy_engaged
|
|
|
|
reset_gray_cloth = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
option = { # Governor
|
|
|
|
name = graygoo.500.a
|
|
|
|
response_text = graygoo.503.a.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
allow = {
|
|
|
|
hidden_trigger = { # To prevent exploit
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
OR = {
|
|
|
|
exists = planet
|
|
|
|
AND = {
|
|
|
|
exists = fleet
|
|
|
|
fleet = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
if = {
|
|
|
|
limit = { exists = planet }
|
|
|
|
planet = { has_ground_combat = no }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
OR = {
|
|
|
|
exists = planet
|
|
|
|
AND = {
|
|
|
|
exists = fleet
|
|
|
|
fleet = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
if = {
|
|
|
|
limit = { exists = fleet }
|
|
|
|
fleet = { is_in_combat = no }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_governor = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = { # Warship
|
|
|
|
name = graygoo.500.b
|
|
|
|
response_text = graygoo.503.b.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
OR = {
|
|
|
|
exists = planet
|
|
|
|
AND = {
|
|
|
|
exists = fleet
|
|
|
|
fleet = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
if = {
|
|
|
|
limit = { exists = planet }
|
|
|
|
planet = { has_ground_combat = no }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
OR = {
|
|
|
|
exists = planet
|
|
|
|
AND = {
|
|
|
|
exists = fleet
|
|
|
|
fleet = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
if = {
|
|
|
|
limit = { exists = fleet }
|
|
|
|
fleet = { is_in_combat = no }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_warship = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = { # const
|
|
|
|
name = rg_const
|
|
|
|
response_text = rg_const.503.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
OR = {
|
|
|
|
exists = planet
|
|
|
|
AND = {
|
|
|
|
exists = fleet
|
|
|
|
fleet = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
if = {
|
|
|
|
limit = { exists = planet }
|
|
|
|
planet = { has_ground_combat = no }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
allow = {
|
|
|
|
hidden_trigger = {
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
OR = {
|
|
|
|
exists = planet
|
|
|
|
AND = {
|
|
|
|
exists = fleet
|
|
|
|
fleet = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
if = {
|
|
|
|
limit = { exists = fleet }
|
|
|
|
fleet = { is_in_combat = no }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_const = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
option = { # 开启隐形
|
|
|
|
name = rg.4.e
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
option = { # 关闭隐形
|
|
|
|
name = rg.4.f
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
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 = { # help
|
|
|
|
name = rg_help
|
|
|
|
hidden_effect = {
|
|
|
|
country_event = {
|
|
|
|
id = rg.4
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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 (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 = {
|
|
|
|
portrait = event_target:gray_leader_scientist
|
|
|
|
room = "ethic_spaceship_room"
|
|
|
|
}
|
|
|
|
|
|
|
|
is_triggered_only = yes
|
|
|
|
|
|
|
|
trigger = {
|
|
|
|
NOR = {
|
|
|
|
has_global_flag = has_wsg_mod
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
|
|
|
from = { OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}}
|
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
has_country_flag = gray_constship_active
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
|
|
|
|
}
|
|
|
|
exists = event_target:global_gray_constship
|
|
|
|
any_owned_fleet = { is_same_value = event_target:global_gray_constship }
|
|
|
|
event_target:global_gray_constship = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
|
|
|
|
immediate = {
|
|
|
|
set_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
|
|
|
|
after = {
|
|
|
|
hidden_effect = {
|
|
|
|
remove_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
option = { # Governor
|
|
|
|
name = graygoo.500.a
|
|
|
|
response_text = graygoo.505.a.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
allow = {
|
|
|
|
hidden_trigger = { # To prevent exploit
|
|
|
|
event_target:global_gray_constship = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
event_target:global_gray_constship = { is_in_combat = no }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
|
|
|
event_target:global_gray_constship = { NOT = { has_hp_percentage < 0.97 } }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = gray_become_ruler
|
|
|
|
NOT = { ruler = { has_leader_flag = "gray_leader" }}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_governor = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = { # Warship
|
|
|
|
name = graygoo.500.b
|
|
|
|
response_text = graygoo.505.b.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
allow = {
|
|
|
|
hidden_trigger = { # To prevent exploit
|
|
|
|
event_target:global_gray_constship = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
event_target:global_gray_constship = { is_in_combat = no }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
|
|
|
event_target:global_gray_constship = { NOT = { has_hp_percentage < 0.97 } }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_warship = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = { # Army
|
|
|
|
name = graygoo.500.c
|
|
|
|
response_text = graygoo.505.c.response
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
allow = {
|
|
|
|
hidden_trigger = { # To prevent exploit
|
|
|
|
event_target:global_gray_constship = { num_ships > 0 }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.a
|
|
|
|
event_target:global_gray_constship = { is_in_combat = no }
|
|
|
|
}
|
|
|
|
custom_tooltip = {
|
|
|
|
fail_text = graygoo.500.allow.b
|
|
|
|
event_target:global_gray_constship = { NOT = { has_hp_percentage < 0.97 } }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_army = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = { # help
|
|
|
|
name = rg_help
|
|
|
|
hidden_effect = {
|
|
|
|
country_event = {
|
|
|
|
id = rg.4
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# option = { # 开启建造中继器
|
|
|
|
# name = rg.5.e
|
|
|
|
# trigger = {
|
|
|
|
# has_country_flag = rg_can_const_hyper_relay
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# hidden_effect = {
|
|
|
|
# remove_country_flag = rg_can_const_hyper_relay
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# option = { # 关闭建造中继器
|
|
|
|
# name = rg.5.f
|
|
|
|
# trigger = {
|
|
|
|
# NOT = {
|
|
|
|
# has_country_flag = rg_can_const_hyper_relay
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# hidden_effect = {
|
|
|
|
# hidden_effect = {
|
|
|
|
# set_country_flag = rg_can_const_hyper_relay
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
#
|
|
|
|
# }
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace = rg
|
|
|
|
|
|
|
|
# help Menu (Initial)
|
|
|
|
country_event = {
|
|
|
|
id = rg.4
|
|
|
|
title = "graygoo.500.title"
|
|
|
|
desc = "rg.4.a.desc"
|
|
|
|
|
|
|
|
diplomatic = yes
|
|
|
|
event_window_type = leader_recruit
|
|
|
|
|
|
|
|
picture_event_data = {
|
|
|
|
portrait = event_target:gray_species
|
|
|
|
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.4.a
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
|
|
|
NOT = { has_country_flag = gray_reforming }
|
|
|
|
}
|
|
|
|
|
|
|
|
allow = {
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = rg_gray_level_1
|
|
|
|
}
|
|
|
|
resource_stockpile_compare = { resource = energy value >= 40000 }
|
|
|
|
resource_stockpile_compare = { resource = alloys value >= 40000 }
|
|
|
|
}
|
|
|
|
|
|
|
|
if = {
|
|
|
|
limit = {
|
|
|
|
has_country_flag = gray_begging
|
|
|
|
}
|
|
|
|
remove_country_flag = gray_begging
|
|
|
|
}
|
|
|
|
else = {
|
|
|
|
add_resource = {
|
|
|
|
energy = -40000
|
|
|
|
alloys = -40000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_warship_1 = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = { # 购买工程船
|
|
|
|
name = rg.4.b
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
trigger = {
|
|
|
|
NOT = { has_country_flag = gray_reforming }
|
|
|
|
}
|
|
|
|
|
|
|
|
allow = {
|
|
|
|
resource_stockpile_compare = { resource = energy value >= 2000 }
|
|
|
|
resource_stockpile_compare = { resource = alloys value >= 2000 }
|
|
|
|
}
|
|
|
|
|
|
|
|
add_resource = {
|
|
|
|
energy = -2000
|
|
|
|
alloys = -2000
|
|
|
|
}
|
|
|
|
|
|
|
|
hidden_effect = {
|
|
|
|
rg_create_gray_constship_1 = yes
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
option = { # 没钱了,救救
|
|
|
|
name = rg.4.c
|
|
|
|
trigger = {
|
|
|
|
NOT = { has_country_flag = gray_reforming }
|
|
|
|
}
|
|
|
|
|
|
|
|
hidden_effect = {
|
|
|
|
if = {
|
|
|
|
limit = {
|
|
|
|
has_country_flag = gray_alreadybegged
|
|
|
|
}
|
|
|
|
country_event = {
|
|
|
|
id = rg.6
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else = {
|
|
|
|
country_event = {
|
|
|
|
id = rg.5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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.5
|
|
|
|
title = "graygoo.500.title"
|
|
|
|
desc = "rg.5.a.desc"
|
|
|
|
desc = "rg.5.b.desc"
|
|
|
|
desc = "rg.5.c.desc"
|
|
|
|
|
|
|
|
diplomatic = yes
|
|
|
|
event_window_type = leader_recruit
|
|
|
|
|
|
|
|
picture_event_data = {
|
|
|
|
portrait = event_target:gray_species
|
|
|
|
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.5.a
|
2023-05-29 21:45:53 +08:00
|
|
|
is_dialog_only = yes
|
2023-05-29 20:45:32 +08:00
|
|
|
hidden_effect = {
|
|
|
|
set_country_flag = gray_begging
|
|
|
|
set_timed_country_flag = { flag = gray_alreadybegged days = 3600 }
|
|
|
|
tooltip = {
|
|
|
|
add_resource = {
|
|
|
|
energy = 200
|
|
|
|
alloys = 200
|
|
|
|
consumer_goods = 200
|
|
|
|
mult = value:years_passed
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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.6
|
|
|
|
title = "graygoo.500.title"
|
|
|
|
desc = "rg.6.a.desc"
|
|
|
|
desc = "rg.6.b.desc"
|
|
|
|
|
|
|
|
diplomatic = yes
|
|
|
|
event_window_type = leader_story
|
|
|
|
|
|
|
|
picture_event_data = {
|
|
|
|
portrait = event_target:gray_species
|
|
|
|
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.6.a
|
|
|
|
default_hide_option = yes
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|