Changes inline_script 整合graygoo事件

This commit is contained in:
ProjectKoi-Kalo\Kalo
2024-09-23 14:19:38 +08:00
parent eba8762c7e
commit c8aa8db70d
18 changed files with 2843 additions and 4131 deletions

View File

@@ -6,34 +6,6 @@
#
############################
namespace = graygoo
# Entering Empty Cluster
ship_event = {
id = graygoo.550
title = "graygoo.550.name"
desc = "graygoo.550.desc"
picture = GFX_evt_ruined_system
show_sound = event_radio_chatter
is_triggered_only = yes
trigger = {
NOR = {
has_global_flag = gray_goo_crisis_set
has_global_flag = dragon_season
has_global_flag = gray_goo_empire_set
has_global_flag = rg_l_cluster
}
from = {
has_star_flag = lcluster1
}
owner = {
NOT = {
has_country_flag = origin_gray_country
}
}
}
option = {
name = graygoo.550.a
}
}
# Invasion begins
country_event = {
@@ -357,54 +329,6 @@ country_event = {
}
}
# The Dessanu Consonance
country_event = {
id = graygoo.110
title = "distar.10951.name"
desc = "graygoo.110.desc"
picture = GFX_evt_l-gateway
show_sound = event_radio_chatter
is_triggered_only = yes
after = {
hidden_effect = {
every_playable_country = {
limit = {
OR = {
has_special_project = RG_LCLUSTER_PROJECT
has_event_chain = l_cluster_chain
}
NOT = {
is_same_value = root
}
}
country_event = {
id = graygoo.111
}
}
every_playable_country = {
limit = {
NOR = {
has_event_chain = l_cluster_chain
has_special_project = RG_LCLUSTER_PROJECT
is_same_value = root
}
}
country_event = {
id = graygoo.112
}
}
}
}
option = {
name = graygoo.10.a
hidden_effect = {
country_event = {
id = graygoo.115
}
}
}
}
# Reinforcements 1
country_event = {
id = graygoo.3
@@ -764,6 +688,54 @@ country_event = {
}
}
# The Dessanu Consonance
country_event = {
id = graygoo.110
title = "distar.10951.name"
desc = "graygoo.110.desc"
picture = GFX_evt_l-gateway
show_sound = event_radio_chatter
is_triggered_only = yes
after = {
hidden_effect = {
every_playable_country = {
limit = {
OR = {
has_special_project = RG_LCLUSTER_PROJECT
has_event_chain = l_cluster_chain
}
NOT = {
is_same_value = root
}
}
country_event = {
id = graygoo.111
}
}
every_playable_country = {
limit = {
NOR = {
has_event_chain = l_cluster_chain
has_special_project = RG_LCLUSTER_PROJECT
is_same_value = root
}
}
country_event = {
id = graygoo.112
}
}
}
}
option = {
name = graygoo.10.a
hidden_effect = {
country_event = {
id = graygoo.115
}
}
}
}
# Factory Destroyed (Dessanu)
country_event = {
id = graygoo.180
@@ -822,3 +794,673 @@ country_event = {
destroy_country = yes
}
}
# Encountered Gray
ship_event = {
id = graygoo.400
title = "graygoo.400.name"
trigger = {
NOT = {
any_playable_country = {
has_country_flag = gray_owner
}
}
}
desc = {
trigger = {
owner = {
is_synthetic_empire = no
}
}
text = "graygoo.400.a.desc"
}
desc = {
trigger = {
owner = {
is_synthetic_empire = yes
}
}
text = "graygoo.400.b.desc"
}
picture = GFX_evt_ship_in_orbit_2
show_sound = event_radio_chatter
is_triggered_only = yes
immediate = {
from = {
save_event_target_as = gray_homeworld
}
rg_timeline_attract_field_init = yes
}
option = {
name = graygoo.400.a
hidden_effect = {
owner = {
country_event = {
id = graygoo.401
}
}
}
}
}
# Gray 1
country_event = {
id = graygoo.401
title = "TRANSMISSION"
desc = {
trigger = {
NOT = {
has_authority = auth_machine_intelligence
}
}
text = "graygoo.401.a.desc"
}
desc = {
trigger = {
has_authority = auth_machine_intelligence
}
text = "graygoo.401.b.desc"
}
is_triggered_only = yes
diplomatic = yes
picture_event_data = {
portrait = event_target:rg_gray_country_leader
planet_background = event_target:gray_homeworld
room = "ethic_spaceship_room"
}
immediate = {
rg_gray_country_init = yes #创建国家
rg_timeline_attract_field_init = yes
}
option = {
name = graygoo.401.a
trigger = {
NOR = {
has_authority = auth_machine_intelligence
has_authority = auth_hive_mind
}
}
hidden_effect = {
country_event = {
id = graygoo.402
}
}
}
option = {
name = graygoo.401.b
trigger = {
has_authority = auth_machine_intelligence
}
hidden_effect = {
country_event = {
id = graygoo.402
}
}
}
option = {
name = graygoo.401.c
trigger = {
has_authority = auth_hive_mind
}
hidden_effect = {
country_event = {
id = graygoo.402
}
}
}
}
# Gray 2
country_event = {
id = graygoo.402
title = "TRANSMISSION"
desc = {
trigger = {
NOT = {
has_authority = auth_machine_intelligence
}
}
text = "graygoo.402.a.desc"
}
desc = {
trigger = {
has_authority = auth_machine_intelligence
}
text = "graygoo.402.b.desc"
}
diplomatic = yes
picture_event_data = {
portrait = event_target:rg_gray_country_leader
planet_background = event_target:gray_homeworld
room = "ethic_spaceship_room"
}
is_triggered_only = yes
option = {
name = graygoo.402.a
hidden_effect = {
country_event = {
id = graygoo.403
}
}
}
}
# Gray 3
country_event = {
id = graygoo.403
title = "TRANSMISSION"
desc = "graygoo.403.desc"
diplomatic = yes
picture_event_data = {
portrait = event_target:rg_gray_country_leader
planet_background = event_target:gray_homeworld
room = "ethic_spaceship_room"
}
is_triggered_only = yes
option = {
name = graygoo.403.a
hidden_effect = {
country_event = {
id = graygoo.404
}
}
}
}
# Gray 4
country_event = {
id = graygoo.404
title = "TRANSMISSION"
desc = "graygoo.404.desc"
diplomatic = yes
picture_event_data = {
portrait = event_target:rg_gray_country_leader
planet_background = event_target:gray_homeworld
room = "ethic_spaceship_room"
}
is_triggered_only = yes
option = {
name = graygoo.404.a
hidden_effect = {
country_event = {
id = graygoo.405
}
}
}
}
# Gray 5
country_event = {
id = graygoo.405
title = "TRANSMISSION"
desc = "graygoo.405.desc"
diplomatic = yes
picture_event_data = {
portrait = event_target:rg_gray_country_leader
planet_background = event_target:gray_homeworld
room = "ethic_spaceship_room"
}
is_triggered_only = yes
option = {
name = graygoo.405.a
hidden_effect = {
owner = {
country_event = {
id = graygoo.406
}
}
}
}
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 = {
portrait = event_target:rg_gray_country_leader
planet_background = event_target:gray_homeworld
room = ship_room
}
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
owner = {
country_event = {
id = rg_grayleader_dialog.4051
}
}
}
option = {
name = graygoo.406.c
response_text = graygoo.406.c.response
default_hide_option = yes
tag = hire_leader
hidden_effect = {
# 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
}
}
country_event = {
id = graygoo.499
}
}
}
}
# Create Gray
country_event = {
id = graygoo.499
hide_window = yes
is_triggered_only = yes
trigger = {
NOT = {
exists = event_target:gray_owner
}
is_ai = no
}
inline_script = {
script = events/rg_graygoo/rg_graygoo.499
}
}
# Main Menu (Initial)
country_event = {
id = graygoo.500
hide_window = yes
is_triggered_only = yes
trigger = {
from = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
is_same_value = event_target:gray_owner
NOR = {
RG_gray_scientist_active_trigger = yes
RG_gray_official_active_trigger = yes
RG_gray_warship_active_trigger = yes
RG_gray_army_active_trigger = yes
has_country_flag = gray_reforming
has_country_flag = gray_diplomacy_engaged
}
}
immediate = {
if = {
limit = {
RG_OR_has_wsg_mod_trigger = yes
}
country_event = {
id = rg_graygoo.500
}
}
else = {
country_event = {
id = rg_grayleader.500
}
}
}
}
# Main Menu (Governor)
country_event = {
id = graygoo.501
hide_window = yes
is_triggered_only = yes
trigger = {
from = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
is_same_value = event_target:gray_owner
RG_gray_official_active_trigger = yes
NOR = {
has_country_flag = gray_reforming
has_country_flag = gray_diplomacy_engaged
}
exists = event_target:gray_governor
}
immediate = {
if = {
limit = {
RG_OR_has_wsg_mod_trigger = yes
}
country_event = {
id = rg_graygoo.501
}
}
else = {
country_event = {
id = rg_grayleader.501
}
}
}
}
# Main Menu (Warship)
country_event = {
id = graygoo.502
hide_window = yes
is_triggered_only = yes
trigger = {
from = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
is_same_value = event_target:gray_owner
RG_gray_warship_active_trigger = yes
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 = {
if = {
limit = {
RG_OR_has_wsg_mod_trigger = yes
}
country_event = {
id = rg_graygoo.502
}
}
else = {
country_event = {
id = rg_grayleader.502
}
}
}
}
# Main Menu (Army)
country_event = {
id = graygoo.503
hide_window = yes
is_triggered_only = yes
trigger = {
from = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
RG_gray_army_active_trigger = yes
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 = {
if = {
limit = {
RG_OR_has_wsg_mod_trigger = yes
}
country_event = {
id = rg_graygoo.503
}
}
else = {
country_event = {
id = rg_grayleader.503
}
}
}
}
# Main Menu (Gray Reforming)
country_event = {
id = graygoo.504
hide_window = yes
is_triggered_only = yes
trigger = {
from = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
is_same_value = event_target:gray_owner
has_country_flag = gray_reforming
}
immediate = {
if = {
limit = {
RG_OR_has_wsg_mod_trigger = yes
}
country_event = {
id = rg_graygoo.504
}
}
else = {
country_event = {
id = rg_grayleader.504
}
}
}
}
# Main Menu (const)
country_event = {
id = graygoo.505
hide_window = yes
is_triggered_only = yes
trigger = {
from = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
is_same_value = event_target:gray_owner
RG_gray_scientist_active_trigger = yes
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 = {
if = {
limit = {
RG_OR_has_wsg_mod_trigger = yes
}
country_event = {
id = rg_graygoo.505
}
}
else = {
country_event = {
id = rg_grayleader.505
}
}
}
}
# Gray destroyed or disbanded
event = {
id = graygoo.510
hide_window = yes
is_triggered_only = yes
trigger = {
any_country = {
is_country_type = gray
}
exists = event_target:gray_owner
event_target:gray_owner = {
OR = {
AND = {
RG_gray_army_active_trigger = yes
NOT = {
any_owned_army = {
army_type = gray_army
}
}
}
AND = {
RG_gray_warship_active_trigger = yes
NOT = {
exists = event_target:gray_warship
}
}
AND = {
has_country_flag = gray_official_active
NOT = {
exists = event_target:gray_official
}
}
AND = {
RG_gray_scientist_active_trigger = yes
NOT = {
exists = event_target:global_gray_constship
}
}
}
}
}
immediate = {
event_target:gray_owner = {
remove_country_flag = gray_official_active #新版flag
remove_country_flag = gray_governor_active #旧版flag #总督
remove_country_flag = gray_warship_active #旗舰
remove_country_flag = gray_army_active #陆军
remove_country_flag = gray_constship_active #科舰
set_country_flag = gray_reforming
add_modifier = {
modifier = "gray_scattered"
days = 3600
}
country_event = {
id = graygoo.511
}
country_event = {
id = graygoo.512
days = 3600
}
}
}
}
# 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"
event_window_type = leader_story
picture = GFX_evt_gray_gooed_planet
picture_event_data = {
portrait = event_target:rg_gray_country_leader
room = root
}
is_triggered_only = yes
immediate = {
remove_country_flag = gray_reforming
}
option = {
name = graygoo.512.a
}
}
# Entering Empty Cluster
ship_event = {
id = graygoo.550
title = "graygoo.550.name"
desc = "graygoo.550.desc"
picture = GFX_evt_ruined_system
show_sound = event_radio_chatter
is_triggered_only = yes
trigger = {
NOR = {
has_global_flag = gray_goo_crisis_set
has_global_flag = dragon_season
has_global_flag = gray_goo_empire_set
has_global_flag = rg_l_cluster
}
from = {
has_star_flag = lcluster1
}
owner = {
NOT = {
has_country_flag = origin_gray_country
}
}
}
option = {
name = graygoo.550.a
}
}

View File

@@ -1,677 +0,0 @@
############################
#
# 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 = {
owner = {
is_synthetic_empire = no
}
}
text = "graygoo.400.a.desc"
}
desc = {
trigger = {
owner = {
is_synthetic_empire = yes
}
}
text = "graygoo.400.b.desc"
}
picture = GFX_evt_ship_in_orbit_2
show_sound = event_radio_chatter
is_triggered_only = yes
immediate = {
from = {
save_event_target_as = gray_homeworld
}
rg_timeline_attract_field_init = yes
}
option = {
name = graygoo.400.a
hidden_effect = {
owner = {
country_event = {
id = graygoo.401
}
}
}
}
}
# Gray 1
country_event = {
id = graygoo.401
title = "TRANSMISSION"
desc = {
trigger = {
NOT = {
has_authority = auth_machine_intelligence
}
}
text = "graygoo.401.a.desc"
}
desc = {
trigger = {
has_authority = auth_machine_intelligence
}
text = "graygoo.401.b.desc"
}
is_triggered_only = yes
diplomatic = yes
picture_event_data = {
portrait = event_target:rg_gray_country_leader
planet_background = event_target:gray_homeworld
room = "ethic_spaceship_room"
}
immediate = {
rg_gray_country_init = yes #创建国家
rg_timeline_attract_field_init = yes
}
option = {
name = graygoo.401.a
trigger = {
NOR = {
has_authority = auth_machine_intelligence
has_authority = auth_hive_mind
}
}
hidden_effect = {
country_event = {
id = graygoo.402
}
}
}
option = {
name = graygoo.401.b
trigger = {
has_authority = auth_machine_intelligence
}
hidden_effect = {
country_event = {
id = graygoo.402
}
}
}
option = {
name = graygoo.401.c
trigger = {
has_authority = auth_hive_mind
}
hidden_effect = {
country_event = {
id = graygoo.402
}
}
}
}
# Gray 2
country_event = {
id = graygoo.402
title = "TRANSMISSION"
desc = {
trigger = {
NOT = {
has_authority = auth_machine_intelligence
}
}
text = "graygoo.402.a.desc"
}
desc = {
trigger = {
has_authority = auth_machine_intelligence
}
text = "graygoo.402.b.desc"
}
diplomatic = yes
picture_event_data = {
portrait = event_target:rg_gray_country_leader
planet_background = event_target:gray_homeworld
room = "ethic_spaceship_room"
}
is_triggered_only = yes
option = {
name = graygoo.402.a
hidden_effect = {
country_event = {
id = graygoo.403
}
}
}
}
# Gray 3
country_event = {
id = graygoo.403
title = "TRANSMISSION"
desc = "graygoo.403.desc"
diplomatic = yes
picture_event_data = {
portrait = event_target:rg_gray_country_leader
planet_background = event_target:gray_homeworld
room = "ethic_spaceship_room"
}
is_triggered_only = yes
option = {
name = graygoo.403.a
hidden_effect = {
country_event = {
id = graygoo.404
}
}
}
}
# Gray 4
country_event = {
id = graygoo.404
title = "TRANSMISSION"
desc = "graygoo.404.desc"
diplomatic = yes
picture_event_data = {
portrait = event_target:rg_gray_country_leader
planet_background = event_target:gray_homeworld
room = "ethic_spaceship_room"
}
is_triggered_only = yes
option = {
name = graygoo.404.a
hidden_effect = {
country_event = {
id = graygoo.405
}
}
}
}
# Gray 5
country_event = {
id = graygoo.405
title = "TRANSMISSION"
desc = "graygoo.405.desc"
diplomatic = yes
picture_event_data = {
portrait = event_target:rg_gray_country_leader
planet_background = event_target:gray_homeworld
room = "ethic_spaceship_room"
}
is_triggered_only = yes
option = {
name = graygoo.405.a
hidden_effect = {
owner = {
country_event = {
id = graygoo.406
}
}
}
}
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 = {
portrait = event_target:rg_gray_country_leader
planet_background = event_target:gray_homeworld
room = ship_room
}
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
owner = {
country_event = {
id = rg_grayleader_dialog.4051
}
}
}
option = {
name = graygoo.406.c
response_text = graygoo.406.c.response
default_hide_option = yes
tag = hire_leader
hidden_effect = {
# 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
}
}
country_event = {
id = graygoo.499
}
}
}
}
# Create Gray
country_event = {
id = graygoo.499
hide_window = yes
is_triggered_only = yes
trigger = {
NOT = {
exists = event_target:gray_owner
}
is_ai = no
}
immediate = {
rg_timeline_attract_field_init = yes
if = {
# 非正常触发补事件
limit = {
NOT = {
exists = event_target:rg_gray_country
}
}
rg_gray_country_init = yes #创建国家
}
rg_gray_country_after_init = yes
set_country_flag = machine_age_nanites_studied
create_message = {
type = MESSAGE_RECRUITED_LEADER
localization = "rg_event.2.desc"
days = @toast_message_days
target = event_target:rg_gray_country_leader
variable = {
type = name
localization = LEADER
scope = event_target:rg_gray_country_leader
}
}
}
}
# Main Menu (Initial)
country_event = {
id = graygoo.500
hide_window = yes
is_triggered_only = yes
trigger = {
from = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
is_same_value = event_target:gray_owner
NOR = {
RG_gray_scientist_active_trigger = yes
OR = {
has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag
}
RG_gray_warship_active_trigger = yes
RG_gray_army_active_trigger = yes
has_country_flag = gray_reforming
has_country_flag = gray_diplomacy_engaged
}
}
immediate = {
if = {
limit = {
RG_OR_has_wsg_mod_trigger = yes
}
country_event = {
id = rg_graygoo.500
}
}
else = {
country_event = {
id = rg_grayleader.500
}
}
}
}
# Main Menu (Governor)
country_event = {
id = graygoo.501
hide_window = yes
is_triggered_only = yes
trigger = {
from = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
is_same_value = event_target:gray_owner
OR = {
has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag
}
NOR = {
has_country_flag = gray_reforming
has_country_flag = gray_diplomacy_engaged
}
exists = event_target:gray_governor
}
immediate = {
if = {
limit = {
RG_OR_has_wsg_mod_trigger = yes
}
country_event = {
id = rg_graygoo.501
}
}
else = {
country_event = {
id = rg_grayleader.501
}
}
}
}
# Main Menu (Warship)
country_event = {
id = graygoo.502
hide_window = yes
is_triggered_only = yes
trigger = {
from = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
is_same_value = event_target:gray_owner
RG_gray_warship_active_trigger = yes
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 = {
if = {
limit = {
RG_OR_has_wsg_mod_trigger = yes
}
country_event = {
id = rg_graygoo.502
}
}
else = {
country_event = {
id = rg_grayleader.502
}
}
}
}
# Main Menu (Army)
country_event = {
id = graygoo.503
hide_window = yes
is_triggered_only = yes
trigger = {
from = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
RG_gray_army_active_trigger = yes
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 = {
if = {
limit = {
RG_OR_has_wsg_mod_trigger = yes
}
country_event = {
id = rg_graygoo.503
}
}
else = {
country_event = {
id = rg_grayleader.503
}
}
}
}
# Main Menu (Gray Reforming)
country_event = {
id = graygoo.504
hide_window = yes
is_triggered_only = yes
trigger = {
from = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
is_same_value = event_target:gray_owner
has_country_flag = gray_reforming
}
immediate = {
if = {
limit = {
RG_OR_has_wsg_mod_trigger = yes
}
country_event = {
id = rg_graygoo.504
}
}
else = {
country_event = {
id = rg_grayleader.504
}
}
}
}
# Main Menu (const)
country_event = {
id = graygoo.505
hide_window = yes
is_triggered_only = yes
trigger = {
from = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
is_same_value = event_target:gray_owner
RG_gray_scientist_active_trigger = yes
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 = {
if = {
limit = {
RG_OR_has_wsg_mod_trigger = yes
}
country_event = {
id = rg_graygoo.505
}
}
else = {
country_event = {
id = rg_grayleader.505
}
}
}
}
# Gray destroyed or disbanded
event = {
id = graygoo.510
hide_window = yes
is_triggered_only = yes
trigger = {
any_country = {
is_country_type = gray
}
exists = event_target:gray_owner
event_target:gray_owner = {
OR = {
AND = {
RG_gray_army_active_trigger = yes
NOT = {
any_owned_army = {
army_type = gray_army
}
}
}
AND = {
RG_gray_warship_active_trigger = yes
NOT = {
exists = event_target:gray_warship
}
}
AND = {
has_country_flag = gray_official_active
NOT = {
exists = event_target:gray_official
}
}
AND = {
RG_gray_scientist_active_trigger = yes
NOT = {
exists = event_target:global_gray_constship
}
}
}
}
}
immediate = {
event_target:gray_owner = {
remove_country_flag = gray_official_active #新版flag
remove_country_flag = gray_governor_active #旧版flag #总督
remove_country_flag = gray_warship_active #旗舰
remove_country_flag = gray_army_active #陆军
remove_country_flag = gray_constship_active #科舰
set_country_flag = gray_reforming
add_modifier = {
modifier = "gray_scattered"
days = 3600
}
country_event = {
id = graygoo.511
}
country_event = {
id = graygoo.512
days = 3600
}
}
}
}
# 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"
event_window_type = leader_story
picture = GFX_evt_gray_gooed_planet
picture_event_data = {
portrait = event_target:rg_gray_country_leader
room = root
}
is_triggered_only = yes
immediate = {
remove_country_flag = gray_reforming
}
option = {
name = graygoo.512.a
}
}

View File

@@ -0,0 +1,575 @@
namespace = rg_grayleader
# Check list (Initial)
# 快速返回首页的按钮。
country_event = {
id = rg_grayleader.1
hide_window = yes
is_triggered_only = yes
trigger = {
fromfrom = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
is_same_value = event_target:gray_owner
}
immediate = {
if = {
limit = {
#500.initial
fromfrom = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
is_same_value = event_target:gray_owner
NOR = {
RG_gray_scientist_active_trigger = yes
has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag
has_country_flag = gray_warship_active
RG_gray_army_active_trigger = yes
has_country_flag = gray_reforming
has_country_flag = gray_diplomacy_engaged
}
}
country_event = {
id = rg_grayleader.500
}
}
else_if = {
#501.governor
limit = {
fromfrom = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
is_same_value = event_target:gray_owner
OR = {
has_country_flag = gray_official_active
has_country_flag = gray_governor_active #旧版flag
}
NOR = {
has_country_flag = gray_reforming
has_country_flag = gray_diplomacy_engaged
}
exists = event_target:gray_governor
}
country_event = {
id = rg_grayleader.501
}
}
else_if = {
#502.warship
limit = {
fromfrom = {
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
}
}
country_event = {
id = rg_grayleader.502
}
}
else_if = {
#503.army
limit = {
fromfrom = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
RG_gray_army_active_trigger = yes
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
}
}
}
}
}
country_event = {
id = rg_grayleader.503
}
}
else_if = {
#505.scienceship
limit = {
fromfrom = {
OR = {
is_country_type = gray
is_same_value = ROOT
}
}
is_same_value = event_target:gray_owner
RG_gray_scientist_active_trigger = yes
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
}
}
country_event = {
id = rg_grayleader.505
}
}
else_if = {
#504.gale
limit = {
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
}
}
}
}
# 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:rg_gray_country_leader
planet_background = root.capital_scope
room = "ethic_spaceship_room"
}
is_triggered_only = yes
inline_script = {
script = events/rg_graygoo/rg_graygoo.500
}
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_official_planet
room = root
}
is_triggered_only = yes
inline_script = {
script = events/rg_graygoo/rg_graygoo.501
}
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
inline_script = {
script = events/rg_graygoo/rg_graygoo.502
}
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
inline_script = {
script = events/rg_graygoo/rg_graygoo.503
}
option = {
name = graygoo.500.prepage
tag = dismiss_leader
hidden_effect = {
country_event = {
id = rg_grayleader.1
}
}
}
}
# Main Menu (Gray Reforming)
country_event = {
id = rg_grayleader.504
title = "graygoo.500.title"
desc = "graygoo.504.desc"
diplomatic = yes
is_triggered_only = yes
inline_script = {
script = events/rg_graygoo/rg_graygoo.504
}
}
# 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
inline_script = {
script = events/rg_graygoo/rg_graygoo.505
}
option = {
name = graygoo.500.prepage
tag = dismiss_leader
hidden_effect = {
country_event = {
id = rg_grayleader.1
}
}
}
}
# help Menu (Initial)
country_event = {
id = rg_grayleader.4
title = "graygoo.500.title"
desc = "rg_event.4.a.desc"
event_window_type = leader_recruit
picture_event_data = {
portrait = event_target:gray_governor
room = "ethic_spaceship_room"
}
is_triggered_only = yes
inline_script = {
script = events/rg_graygoo/rg_graygoo.4
}
option = {
name = graygoo.500.prepage
tag = dismiss_leader
hidden_effect = {
country_event = {
id = rg_grayleader.1
}
}
}
}
country_event = {
id = rg_grayleader.5
title = "graygoo.500.title"
desc = "rg_event.5.a.desc"
desc = "rg_event.5.b.desc"
desc = "rg_event.5.c.desc"
event_window_type = leader_recruit
picture_event_data = {
portrait = event_target:gray_governor
room = "ethic_spaceship_room"
}
is_triggered_only = yes
inline_script = {
script = events/rg_graygoo/rg_graygoo.5
}
option = {
name = graygoo.500.prepage
tag = dismiss_leader
hidden_effect = {
country_event = {
id = rg_grayleader.1
}
}
}
}
# 私房钱榨干了
country_event = {
id = rg_grayleader.6
title = "graygoo.500.title"
desc = "rg_event.6.a.desc"
desc = "rg_event.6.b.desc"
event_window_type = leader_recruit
picture_event_data = {
portrait = event_target:gray_governor
room = "ethic_spaceship_room"
}
is_triggered_only = yes
inline_script = {
script = events/rg_graygoo/rg_graygoo.6
}
option = {
name = graygoo.500.prepage
tag = dismiss_leader
hidden_effect = {
country_event = {
id = rg_grayleader.1
}
}
}
}
# 衣柜事件
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:rg_gray_country_leader
planet_background = root.capital_scope
}
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
}
country_event = {
id = rg_mss_gray.10
}
}
}
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:rg_gray_country_leader
planet_background = root.capital_scope
}
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
}
}
}
}

File diff suppressed because it is too large Load Diff

84
events/RG_mss_gray.txt Normal file
View File

@@ -0,0 +1,84 @@
namespace = rg_mss_gray
country_event = {
id = rg_mss_gray.10
title = mss_gray.10.t
desc = mss_gray.10.d
trigger = {
exists = event_target:gray_owner
is_same_value = event_target:gray_owner
}
diplomatic = yes
is_triggered_only = yes
# fire_only_once = yes
immediate = {
event_target:gray_country = {
create_leader = {
class = official
species = event_target:gray_owner
effect = {
change_leader_portrait = ms_ldr_gray_default
save_event_target_as = mss_temp_gray
set_leader_flag = ms_temp_gray
}
}
}
ms_set_gray_portrait = { P = ms_ldr_gray_default }
}
picture = GFX_evt_gray_goo_ships
picture_event_data = {
portrait = event_target:mss_temp_gray
room = specialist_bulwark_room
planet_background = pc_gray_goo
}
show_sound = event_faceoff_in_space
option = {
name = mss_gray.portrait.random
is_dialog_only = yes response_text = mss_gray.portrait.response.random
ms_set_gray_portrait = { P = ms_ldr_gray_random }
}
option = {
name = mss_gray.portrait.random.wingless
is_dialog_only = yes response_text = mss_gray.portrait.response.random
ms_set_gray_portrait = { P = ms_ldr_gray_random_wingless }
}
option = {
name = mss_gray.portrait.default
is_dialog_only = yes response_text = mss_gray.portrait.response.default
ms_set_gray_portrait = { P = ms_ldr_gray_default }
}
option = {
name = mss_gray.portrait.default.wingless
is_dialog_only = yes response_text = mss_gray.portrait.response.default
ms_set_gray_portrait = { P = ms_ldr_gray_default_wingless }
}
option = {
name = mss_gray.portrait.classic
is_dialog_only = yes response_text = mss_gray.portrait.response.classic
ms_set_gray_portrait = { P = ms_ldr_gray_classic }
}
option = {
name = mss_gray.portrait.classic.wingless
is_dialog_only = yes response_text = mss_gray.portrait.response.classic
ms_set_gray_portrait = { P = ms_ldr_gray_classic_wingless }
}
option = {
name = mss_gray.10.yes
custom_tooltip = mss_gray.10.yes.tt
hidden_effect = {
set_country_flag = mss_enable_gray_maid
country_event = { id = mss_gray.20 }
}
}
option = {
name = mss_gray.10.no
custom_tooltip = mss_gray.10.no.tt
}
after = {
custom_tooltip = MS_LABEL_SPECIES
hidden_effect = {
event_target:mss_temp_gray = {
kill_leader = { show_notification = no }
}
}
}
}

File diff suppressed because it is too large Load Diff