2023-06-11 12:54:26 +08:00
|
|
|
#普通的母舰
|
|
|
|
rg_warship_init_mod1 = {
|
|
|
|
create_fleet = {
|
|
|
|
name = "NAME_Gray"
|
|
|
|
settings = {
|
|
|
|
can_upgrade = no
|
|
|
|
can_disband = no
|
|
|
|
can_change_composition = no
|
|
|
|
can_change_leader = yes
|
|
|
|
uses_naval_capacity = no
|
|
|
|
spawn_debris = no
|
|
|
|
}
|
|
|
|
effect = {
|
|
|
|
set_owner = prev
|
|
|
|
create_ship = {
|
|
|
|
name = "NAME_Gray"
|
2023-06-12 15:14:31 +08:00
|
|
|
# design = "NAME_Gray_Warship_rg"
|
|
|
|
random_existing_design = RG_graygoo_mothership
|
2023-06-11 12:54:26 +08:00
|
|
|
prefix = no
|
|
|
|
upgradable = yes
|
2023-06-21 13:08:31 +08:00
|
|
|
effect = {
|
|
|
|
set_fleet_flag = gray_fleet_ship
|
|
|
|
save_global_event_target_as = gray_warship_ship
|
|
|
|
}
|
2023-06-11 12:54:26 +08:00
|
|
|
}
|
|
|
|
set_fleet_stance = aggressive
|
|
|
|
set_location = {
|
|
|
|
target = event_target:global_gray_location
|
|
|
|
distance = 0
|
|
|
|
angle = random
|
|
|
|
}
|
|
|
|
set_fleet_flag = gray_fleet
|
|
|
|
save_global_event_target_as = gray_warship
|
|
|
|
assign_leader = event_target:gray_leader_admiral
|
|
|
|
if = {
|
|
|
|
limit = {
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
|
|
|
add_modifier = {
|
|
|
|
modifier = remove_fleet_maintenance
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#纳米旗舰
|
|
|
|
rg_warship_init_mod2 = {
|
|
|
|
create_fleet = {
|
|
|
|
name = "NAME_Gray"
|
|
|
|
settings = {
|
|
|
|
can_upgrade = no
|
|
|
|
can_disband = no
|
|
|
|
can_change_composition = no
|
|
|
|
can_change_leader = yes
|
|
|
|
uses_naval_capacity = no
|
|
|
|
spawn_debris = no
|
|
|
|
}
|
|
|
|
effect = {
|
|
|
|
set_owner = prev
|
|
|
|
create_ship = {
|
|
|
|
name = "NAME_Gray"
|
|
|
|
random_existing_design = RG_graygoo_capitalship
|
|
|
|
prefix = no
|
|
|
|
upgradable = yes
|
2023-06-21 13:08:31 +08:00
|
|
|
effect = {
|
|
|
|
set_fleet_flag = gray_fleet_ship
|
|
|
|
save_global_event_target_as = gray_warship_ship
|
|
|
|
}
|
2023-06-11 12:54:26 +08:00
|
|
|
}
|
|
|
|
set_fleet_stance = aggressive
|
|
|
|
set_location = {
|
|
|
|
target = event_target:global_gray_location
|
|
|
|
distance = 0
|
|
|
|
angle = random
|
|
|
|
}
|
|
|
|
set_fleet_flag = gray_fleet
|
|
|
|
save_global_event_target_as = gray_warship
|
|
|
|
assign_leader = event_target:gray_leader_admiral
|
|
|
|
if = {
|
|
|
|
limit = {
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
|
|
|
add_modifier = {
|
|
|
|
modifier = remove_fleet_maintenance
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#纳米主宰
|
|
|
|
rg_warship_init_mod3 = {
|
|
|
|
create_fleet = {
|
|
|
|
name = "NAME_Gray"
|
|
|
|
settings = {
|
|
|
|
can_upgrade = no
|
|
|
|
can_disband = no
|
|
|
|
can_change_composition = no
|
|
|
|
can_change_leader = yes
|
|
|
|
uses_naval_capacity = no
|
|
|
|
spawn_debris = no
|
|
|
|
}
|
|
|
|
effect = {
|
|
|
|
set_owner = prev
|
|
|
|
create_ship = {
|
|
|
|
name = "NAME_Gray"
|
2023-06-12 15:03:29 +08:00
|
|
|
# design = "NAME_gray_juggernautship"
|
|
|
|
random_existing_design = RG_gray_juggernaut
|
2023-06-11 12:54:26 +08:00
|
|
|
prefix = no
|
|
|
|
upgradable = yes
|
2023-06-21 13:08:31 +08:00
|
|
|
effect = {
|
|
|
|
set_fleet_flag = gray_fleet_ship
|
|
|
|
save_global_event_target_as = gray_warship_ship
|
|
|
|
}
|
2023-06-11 12:54:26 +08:00
|
|
|
}
|
|
|
|
set_fleet_stance = aggressive
|
|
|
|
set_location = {
|
|
|
|
target = event_target:global_gray_location
|
|
|
|
distance = 0
|
|
|
|
angle = random
|
|
|
|
}
|
|
|
|
set_fleet_flag = gray_fleet
|
|
|
|
save_global_event_target_as = gray_warship
|
|
|
|
if = {
|
|
|
|
limit = {
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
|
|
|
add_modifier = {
|
|
|
|
modifier = remove_fleet_maintenance
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#略有磨损的母舰
|
|
|
|
rg_warship_init_mod0 = {
|
|
|
|
create_fleet = {
|
|
|
|
name = "NAME_Gray"
|
|
|
|
settings = {
|
|
|
|
can_upgrade = no
|
|
|
|
can_disband = no
|
|
|
|
can_change_composition = no
|
|
|
|
can_change_leader = yes
|
|
|
|
uses_naval_capacity = no
|
|
|
|
spawn_debris = no
|
|
|
|
}
|
|
|
|
effect = {
|
|
|
|
set_owner = prev
|
|
|
|
create_ship = {
|
|
|
|
name = "NAME_Gray"
|
|
|
|
design = "NAME_Gray_Warship_base"
|
|
|
|
prefix = no
|
|
|
|
upgradable = yes
|
2023-06-21 13:08:31 +08:00
|
|
|
effect = {
|
|
|
|
set_fleet_flag = gray_fleet_ship
|
|
|
|
save_global_event_target_as = gray_warship_ship
|
|
|
|
}
|
2023-06-11 12:54:26 +08:00
|
|
|
}
|
|
|
|
set_fleet_stance = aggressive
|
|
|
|
set_location = {
|
|
|
|
target = event_target:global_gray_location
|
|
|
|
distance = 0
|
|
|
|
angle = random
|
|
|
|
}
|
|
|
|
set_fleet_flag = gray_fleet
|
|
|
|
save_global_event_target_as = gray_warship
|
|
|
|
assign_leader = event_target:gray_leader_admiral
|
|
|
|
if = {
|
|
|
|
limit = {
|
|
|
|
has_global_flag = kdc_event_mod_active
|
|
|
|
}
|
|
|
|
add_modifier = {
|
|
|
|
modifier = remove_fleet_maintenance
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-06-24 15:07:12 +08:00
|
|
|
|
|
|
|
rg_juggernaut_habitat_init = {
|
|
|
|
capital_scope = {
|
|
|
|
save_event_target_as = rg_capital_home_planet
|
|
|
|
}
|
|
|
|
spawn_planet = {
|
|
|
|
class = pc_habitat
|
|
|
|
location = root.home_planet
|
|
|
|
orbit_location = yes
|
|
|
|
orbit_angle_offset = 45
|
|
|
|
orbit_distance_offset = 9.899
|
|
|
|
size = 20
|
|
|
|
has_ring = no
|
|
|
|
|
|
|
|
init_effect = {
|
|
|
|
set_name = "NAME_rg_gray_habitat_base"
|
|
|
|
set_planet_entity = {
|
2023-06-27 22:45:33 +08:00
|
|
|
entity = "grey_tempesttw_juggernaut_entity"
|
2023-06-24 15:07:12 +08:00
|
|
|
}
|
|
|
|
set_surveyed = {
|
|
|
|
surveyed = yes
|
|
|
|
surveyor = FROM
|
|
|
|
}
|
|
|
|
set_all_comms_surveyed = yes
|
|
|
|
clear_blockers = yes
|
|
|
|
|
|
|
|
set_planet_flag = megastructure
|
|
|
|
set_planet_flag = habitat
|
|
|
|
set_planet_flag = advanced_habitat
|
|
|
|
set_planet_flag = advanced_habitat_2
|
|
|
|
set_planet_flag = rg_gray_habitat
|
|
|
|
save_global_event_target_as = rg_gray_habitat_target
|
|
|
|
}
|
|
|
|
}
|
|
|
|
event_target:spawn_planet = {
|
|
|
|
set_planet_flag = has_megastructure
|
|
|
|
# set_planet_flag = has_payback_habitat
|
|
|
|
}
|
|
|
|
event_target:rg_capital_home_planet = {
|
|
|
|
while = {
|
|
|
|
count = 1
|
|
|
|
random_owned_pop = {
|
|
|
|
resettle_pop = {
|
|
|
|
pop = this
|
|
|
|
planet = event_target:rg_gray_habitat_target
|
|
|
|
}
|
|
|
|
unemploy_pop = yes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|