2023-05-23 11:11:33 +08:00
|
|
|
############################
|
|
|
|
#
|
|
|
|
# Gray Goo Events
|
|
|
|
#
|
|
|
|
# Written by Henrik Thyrwall
|
|
|
|
#
|
|
|
|
############################
|
|
|
|
namespace = graygoo
|
|
|
|
# Encountered Gray
|
|
|
|
ship_event = {
|
|
|
|
id = graygoo.400
|
|
|
|
title = "graygoo.400.name"
|
|
|
|
trigger = {
|
|
|
|
NOT = {
|
|
|
|
any_playable_country = {
|
|
|
|
has_country_flag = gray_owner
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
desc = {
|
|
|
|
trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
owner = {
|
|
|
|
is_synthetic_empire = no
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
text = "graygoo.400.a.desc"
|
|
|
|
}
|
|
|
|
desc = {
|
2023-06-08 13:11:05 +08:00
|
|
|
trigger = {
|
|
|
|
owner = {
|
|
|
|
is_synthetic_empire = yes
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
text = "graygoo.400.b.desc"
|
|
|
|
}
|
|
|
|
picture = GFX_evt_ship_in_orbit_2
|
|
|
|
show_sound = event_radio_chatter
|
|
|
|
is_triggered_only = yes
|
|
|
|
immediate = {
|
2023-06-08 13:11:05 +08:00
|
|
|
from = {
|
|
|
|
save_event_target_as = gray_homeworld
|
|
|
|
}
|
2023-06-06 11:32:36 +08:00
|
|
|
rg_timeline_attract_field_init = yes
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
option = {
|
|
|
|
name = graygoo.400.a
|
|
|
|
hidden_effect = {
|
|
|
|
owner = {
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = graygoo.401
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Gray 1
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.401
|
|
|
|
title = "TRANSMISSION"
|
|
|
|
desc = {
|
2023-06-08 13:11:05 +08:00
|
|
|
trigger = {
|
|
|
|
NOT = {
|
|
|
|
has_authority = auth_machine_intelligence
|
|
|
|
}
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
text = "graygoo.401.a.desc"
|
|
|
|
}
|
|
|
|
desc = {
|
2023-06-08 13:11:05 +08:00
|
|
|
trigger = {
|
|
|
|
has_authority = auth_machine_intelligence
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
text = "graygoo.401.b.desc"
|
|
|
|
}
|
|
|
|
is_triggered_only = yes
|
|
|
|
diplomatic = yes
|
|
|
|
picture_event_data = {
|
2023-06-03 12:02:56 +08:00
|
|
|
portrait = event_target:rg_gray_country_leader
|
2023-05-29 11:59:27 +08:00
|
|
|
planet_background = event_target:gray_homeworld
|
2023-05-23 11:11:33 +08:00
|
|
|
room = "ethic_spaceship_room"
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
immediate = {
|
|
|
|
rg_gray_country_init = yes #创建国家
|
2023-06-06 11:32:36 +08:00
|
|
|
rg_timeline_attract_field_init = yes
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
option = {
|
|
|
|
name = graygoo.401.a
|
|
|
|
trigger = {
|
|
|
|
NOR = {
|
|
|
|
has_authority = auth_machine_intelligence
|
|
|
|
has_authority = auth_hive_mind
|
|
|
|
}
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = graygoo.402
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
option = {
|
|
|
|
name = graygoo.401.b
|
|
|
|
trigger = {
|
|
|
|
has_authority = auth_machine_intelligence
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = graygoo.402
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
option = {
|
|
|
|
name = graygoo.401.c
|
|
|
|
trigger = {
|
|
|
|
has_authority = auth_hive_mind
|
|
|
|
}
|
|
|
|
hidden_effect = {
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = graygoo.402
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Gray 2
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.402
|
|
|
|
title = "TRANSMISSION"
|
|
|
|
desc = {
|
2023-06-08 13:11:05 +08:00
|
|
|
trigger = {
|
|
|
|
NOT = {
|
|
|
|
has_authority = auth_machine_intelligence
|
|
|
|
}
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
text = "graygoo.402.a.desc"
|
|
|
|
}
|
|
|
|
desc = {
|
2023-06-08 13:11:05 +08:00
|
|
|
trigger = {
|
|
|
|
has_authority = auth_machine_intelligence
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
text = "graygoo.402.b.desc"
|
|
|
|
}
|
|
|
|
diplomatic = yes
|
|
|
|
picture_event_data = {
|
2023-06-03 12:02:56 +08:00
|
|
|
portrait = event_target:rg_gray_country_leader
|
2023-05-29 11:59:27 +08:00
|
|
|
planet_background = event_target:gray_homeworld
|
2023-05-23 11:11:33 +08:00
|
|
|
room = "ethic_spaceship_room"
|
|
|
|
}
|
|
|
|
is_triggered_only = yes
|
|
|
|
option = {
|
|
|
|
name = graygoo.402.a
|
|
|
|
hidden_effect = {
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = graygoo.403
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Gray 3
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.403
|
|
|
|
title = "TRANSMISSION"
|
|
|
|
desc = "graygoo.403.desc"
|
|
|
|
diplomatic = yes
|
|
|
|
picture_event_data = {
|
2023-06-03 12:02:56 +08:00
|
|
|
portrait = event_target:rg_gray_country_leader
|
2023-05-29 11:59:27 +08:00
|
|
|
planet_background = event_target:gray_homeworld
|
2023-05-23 11:11:33 +08:00
|
|
|
room = "ethic_spaceship_room"
|
|
|
|
}
|
|
|
|
is_triggered_only = yes
|
|
|
|
option = {
|
|
|
|
name = graygoo.403.a
|
|
|
|
hidden_effect = {
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = graygoo.404
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Gray 4
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.404
|
|
|
|
title = "TRANSMISSION"
|
|
|
|
desc = "graygoo.404.desc"
|
|
|
|
diplomatic = yes
|
|
|
|
picture_event_data = {
|
2023-06-03 12:02:56 +08:00
|
|
|
portrait = event_target:rg_gray_country_leader
|
2023-05-29 11:59:27 +08:00
|
|
|
planet_background = event_target:gray_homeworld
|
2023-05-23 11:11:33 +08:00
|
|
|
room = "ethic_spaceship_room"
|
|
|
|
}
|
|
|
|
is_triggered_only = yes
|
|
|
|
option = {
|
|
|
|
name = graygoo.404.a
|
|
|
|
hidden_effect = {
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = graygoo.405
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Gray 5
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.405
|
|
|
|
title = "TRANSMISSION"
|
|
|
|
desc = "graygoo.405.desc"
|
|
|
|
diplomatic = yes
|
|
|
|
picture_event_data = {
|
2023-06-03 12:02:56 +08:00
|
|
|
portrait = event_target:rg_gray_country_leader
|
2023-05-29 11:59:27 +08:00
|
|
|
planet_background = event_target:gray_homeworld
|
2023-05-23 11:11:33 +08:00
|
|
|
room = "ethic_spaceship_room"
|
|
|
|
}
|
|
|
|
is_triggered_only = yes
|
|
|
|
option = {
|
|
|
|
name = graygoo.405.a
|
|
|
|
hidden_effect = {
|
|
|
|
owner = {
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = graygoo.406
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
option = {
|
|
|
|
name = graygoo.405.b
|
|
|
|
response_text = graygoo.405.b.response
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Gray 6
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.406
|
|
|
|
title = "TRANSMISSION"
|
|
|
|
desc = "graygoo.406.desc"
|
|
|
|
diplomatic = yes
|
|
|
|
picture_event_data = {
|
2023-06-03 12:02:56 +08:00
|
|
|
portrait = event_target:rg_gray_country_leader
|
2023-05-29 11:59:27 +08:00
|
|
|
planet_background = event_target:gray_homeworld
|
|
|
|
room = ship_room
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
event_window_type = leader_recruit
|
|
|
|
is_triggered_only = yes
|
|
|
|
option = {
|
|
|
|
name = graygoo.406.a
|
|
|
|
response_text = graygoo.406.a.response
|
|
|
|
is_dialog_only = yes
|
|
|
|
}
|
|
|
|
option = {
|
|
|
|
name = graygoo.406.b
|
|
|
|
response_text = graygoo.406.b.response
|
|
|
|
is_dialog_only = yes
|
|
|
|
}
|
|
|
|
option = {
|
|
|
|
name = graygoo.405.b
|
|
|
|
tag = dismiss_leader
|
|
|
|
response_text = graygoo.405.b.response
|
2023-06-03 12:02:56 +08:00
|
|
|
owner = {
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.4051
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
option = {
|
|
|
|
name = graygoo.406.c
|
|
|
|
response_text = graygoo.406.c.response
|
|
|
|
default_hide_option = yes
|
|
|
|
tag = hire_leader
|
|
|
|
hidden_effect = {
|
2023-10-28 20:58:38 +08:00
|
|
|
# create_message = {
|
|
|
|
# type = MESSAGE_RECRUITED_LEADER
|
|
|
|
# localization = MESSAGE_RECRUITED_LEADER_DESC
|
|
|
|
# days = @toast_message_days
|
|
|
|
# target = event_target:gray_governor
|
|
|
|
# variable = {
|
|
|
|
# type = name
|
|
|
|
# localization = LEADER
|
|
|
|
# scope = event_target:gray_governor
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
owner = {
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader_dialog.4063
|
2023-05-29 21:23:34 +08:00
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = graygoo.499
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Create Gray
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.499
|
|
|
|
hide_window = yes
|
|
|
|
is_triggered_only = yes
|
|
|
|
trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
NOT = {
|
|
|
|
exists = event_target:gray_owner
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
is_ai = no
|
|
|
|
}
|
|
|
|
immediate = {
|
2023-06-03 00:02:37 +08:00
|
|
|
set_global_flag = rg_kac_499
|
2023-06-06 11:32:36 +08:00
|
|
|
rg_timeline_attract_field_init = yes
|
2023-06-08 13:11:05 +08:00
|
|
|
if = {
|
|
|
|
# 非正常触发补事件
|
2023-06-03 18:26:49 +08:00
|
|
|
limit = {
|
|
|
|
NOT = {
|
|
|
|
exists = event_target:rg_gray_country
|
|
|
|
}
|
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
rg_gray_country_init = yes #创建国家
|
2023-06-03 18:26:49 +08:00
|
|
|
}
|
2023-05-29 21:23:34 +08:00
|
|
|
rg_gray_country_after_init = yes
|
2024-09-22 19:32:38 +08:00
|
|
|
set_country_flag = machine_age_nanites_studied
|
2023-06-03 20:17:15 +08:00
|
|
|
create_message = {
|
|
|
|
type = MESSAGE_RECRUITED_LEADER
|
2023-06-10 17:35:23 +08:00
|
|
|
localization = "rg_event.2.desc"
|
2023-06-03 20:17:15 +08:00
|
|
|
days = @toast_message_days
|
|
|
|
target = event_target:rg_gray_country_leader
|
|
|
|
variable = {
|
|
|
|
type = name
|
|
|
|
localization = LEADER
|
|
|
|
scope = event_target:rg_gray_country_leader
|
|
|
|
}
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Main Menu (Initial)
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.500
|
2023-05-29 20:45:32 +08:00
|
|
|
hide_window = yes
|
2023-05-23 11:11:33 +08:00
|
|
|
is_triggered_only = yes
|
|
|
|
trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
from = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_constship_active
|
2023-11-17 03:46:51 +08:00
|
|
|
OR = {
|
|
|
|
has_country_flag = gray_official_active
|
2024-09-22 19:32:38 +08:00
|
|
|
has_country_flag = gray_governor_active #旧版flag
|
2023-11-17 03:46:51 +08:00
|
|
|
}
|
2023-05-23 11:11:33 +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-29 20:45:32 +08:00
|
|
|
immediate = {
|
2023-05-30 09:33:22 +08:00
|
|
|
if = {
|
|
|
|
limit = {
|
2024-09-22 19:32:38 +08:00
|
|
|
RG_OR_has_wsg_mod_trigger = yes
|
2023-05-30 09:33:22 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_graygoo.500
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else = {
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.500
|
|
|
|
}
|
2023-05-30 09:33:22 +08:00
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Main Menu (Governor)
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.501
|
2023-05-29 20:45:32 +08:00
|
|
|
hide_window = yes
|
2023-05-23 11:11:33 +08:00
|
|
|
is_triggered_only = yes
|
|
|
|
trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
from = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
is_same_value = event_target:gray_owner
|
2023-11-17 03:46:51 +08:00
|
|
|
OR = {
|
|
|
|
has_country_flag = gray_official_active
|
2024-09-22 19:32:38 +08:00
|
|
|
has_country_flag = gray_governor_active #旧版flag
|
2023-11-17 03:46:51 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
NOR = {
|
|
|
|
has_country_flag = gray_reforming
|
2023-05-23 11:11:33 +08:00
|
|
|
has_country_flag = gray_diplomacy_engaged
|
|
|
|
}
|
|
|
|
exists = event_target:gray_governor
|
|
|
|
}
|
|
|
|
immediate = {
|
2023-05-30 09:33:22 +08:00
|
|
|
if = {
|
|
|
|
limit = {
|
2024-09-22 19:32:38 +08:00
|
|
|
RG_OR_has_wsg_mod_trigger = yes
|
2023-05-30 09:33:22 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_graygoo.501
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else = {
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.501
|
|
|
|
}
|
2023-05-30 09:33:22 +08:00
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Main Menu (Warship)
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.502
|
2023-05-29 20:45:32 +08:00
|
|
|
hide_window = yes
|
2023-05-23 11:11:33 +08:00
|
|
|
is_triggered_only = yes
|
|
|
|
trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
from = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-23 11:11:33 +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-23 11:11:33 +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-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
immediate = {
|
2023-05-30 09:33:22 +08:00
|
|
|
if = {
|
|
|
|
limit = {
|
2024-09-22 19:32:38 +08:00
|
|
|
RG_OR_has_wsg_mod_trigger = yes
|
2023-05-30 09:33:22 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_graygoo.502
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else = {
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.502
|
|
|
|
}
|
2023-05-30 09:33:22 +08:00
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Main Menu (Army)
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.503
|
2023-05-29 20:45:32 +08:00
|
|
|
hide_window = yes
|
2023-05-23 11:11:33 +08:00
|
|
|
is_triggered_only = yes
|
|
|
|
trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
from = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-23 11:11:33 +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-23 11:11:33 +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-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
immediate = {
|
2023-05-30 09:33:22 +08:00
|
|
|
if = {
|
|
|
|
limit = {
|
2024-09-22 19:32:38 +08:00
|
|
|
RG_OR_has_wsg_mod_trigger = yes
|
2023-05-30 09:33:22 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_graygoo.503
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else = {
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.503
|
|
|
|
}
|
2023-05-30 09:33:22 +08:00
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Main Menu (Gray Reforming)
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.504
|
2023-05-30 09:33:22 +08:00
|
|
|
hide_window = yes
|
2023-05-23 11:11:33 +08:00
|
|
|
is_triggered_only = yes
|
|
|
|
trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
from = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
is_same_value = event_target:gray_owner
|
|
|
|
has_country_flag = gray_reforming
|
|
|
|
}
|
2023-05-30 09:33:22 +08:00
|
|
|
immediate = {
|
|
|
|
if = {
|
|
|
|
limit = {
|
2024-09-22 19:32:38 +08:00
|
|
|
RG_OR_has_wsg_mod_trigger = yes
|
2023-05-30 09:33:22 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_graygoo.504
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else = {
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.504
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Main Menu (const)
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.505
|
2023-05-29 20:45:32 +08:00
|
|
|
hide_window = yes
|
2023-05-23 11:11:33 +08:00
|
|
|
is_triggered_only = yes
|
|
|
|
trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
from = {
|
|
|
|
OR = {
|
|
|
|
is_country_type = gray
|
|
|
|
is_same_value = ROOT
|
|
|
|
}
|
|
|
|
}
|
2023-05-23 11:11:33 +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-23 11:11:33 +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-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
immediate = {
|
2023-05-30 09:33:22 +08:00
|
|
|
if = {
|
|
|
|
limit = {
|
2024-09-22 19:32:38 +08:00
|
|
|
RG_OR_has_wsg_mod_trigger = yes
|
2023-05-30 09:33:22 +08:00
|
|
|
}
|
2023-06-08 13:11:05 +08:00
|
|
|
country_event = {
|
|
|
|
id = rg_graygoo.505
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else = {
|
|
|
|
country_event = {
|
|
|
|
id = rg_grayleader.505
|
|
|
|
}
|
2023-05-30 09:33:22 +08:00
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Gray destroyed or disbanded
|
|
|
|
event = {
|
|
|
|
id = graygoo.510
|
|
|
|
hide_window = yes
|
|
|
|
is_triggered_only = yes
|
|
|
|
trigger = {
|
2023-06-08 13:11:05 +08:00
|
|
|
any_country = {
|
|
|
|
is_country_type = gray
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
exists = event_target:gray_owner
|
|
|
|
event_target:gray_owner = {
|
|
|
|
OR = {
|
|
|
|
AND = {
|
|
|
|
has_country_flag = gray_army_active
|
|
|
|
NOT = {
|
2023-06-08 13:11:05 +08:00
|
|
|
any_owned_army = {
|
|
|
|
army_type = gray_army
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
AND = {
|
|
|
|
has_country_flag = gray_warship_active
|
2023-06-08 13:11:05 +08:00
|
|
|
NOT = {
|
|
|
|
exists = event_target:gray_warship
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
AND = {
|
2024-05-15 22:50:36 +08:00
|
|
|
has_country_flag = gray_official_active
|
2023-06-08 13:11:05 +08:00
|
|
|
NOT = {
|
2024-05-15 22:50:36 +08:00
|
|
|
exists = event_target:gray_official
|
2023-06-08 13:11:05 +08:00
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
AND = {
|
|
|
|
has_country_flag = gray_constship_active
|
2023-06-08 13:11:05 +08:00
|
|
|
NOT = {
|
|
|
|
exists = event_target:global_gray_constship
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
immediate = {
|
|
|
|
event_target:gray_owner = {
|
2024-09-22 19:32:38 +08:00
|
|
|
remove_country_flag = gray_official_active #新版flag
|
|
|
|
remove_country_flag = gray_governor_active #旧版flag #总督
|
2023-06-08 13:11:05 +08:00
|
|
|
remove_country_flag = gray_warship_active #旗舰
|
|
|
|
remove_country_flag = gray_army_active #陆军
|
|
|
|
remove_country_flag = gray_constship_active #科舰
|
2023-05-23 11:11:33 +08:00
|
|
|
set_country_flag = gray_reforming
|
|
|
|
add_modifier = {
|
|
|
|
modifier = "gray_scattered"
|
|
|
|
days = 3600
|
|
|
|
}
|
2024-09-22 19:32:38 +08:00
|
|
|
country_event = {
|
|
|
|
id = graygoo.511
|
|
|
|
}
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.512
|
|
|
|
days = 3600
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Gray regenerating
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.511
|
|
|
|
title = "graygoo.511.name"
|
|
|
|
desc = "graygoo.511.desc"
|
|
|
|
picture = GFX_evt_circuitry_modification
|
|
|
|
show_sound = event_radio_chatter
|
|
|
|
is_triggered_only = yes
|
|
|
|
option = {
|
|
|
|
name = graygoo.511.a
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Gray Returns
|
|
|
|
country_event = {
|
|
|
|
id = graygoo.512
|
|
|
|
title = "graygoo.500.title"
|
|
|
|
desc = "graygoo.512.a.desc"
|
|
|
|
desc = "graygoo.512.b.desc"
|
|
|
|
desc = "graygoo.512.c.desc"
|
2024-05-15 22:50:36 +08:00
|
|
|
event_window_type = leader_story
|
|
|
|
picture = GFX_evt_gray_gooed_planet
|
|
|
|
picture_event_data = {
|
|
|
|
portrait = event_target:rg_gray_country_leader
|
|
|
|
room = root
|
|
|
|
}
|
2023-05-23 11:11:33 +08:00
|
|
|
is_triggered_only = yes
|
|
|
|
immediate = {
|
|
|
|
remove_country_flag = gray_reforming
|
|
|
|
}
|
|
|
|
option = {
|
|
|
|
name = graygoo.512.a
|
|
|
|
}
|
|
|
|
}
|