1056 lines
21 KiB
Plaintext
1056 lines
21 KiB
Plaintext
|
|
create_graygoo_ships_1 = {
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Nanite_Mothership"
|
|
graphical_culture = "pirate_01"
|
|
}
|
|
while = {
|
|
count = 5
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Nanite_Interdictor"
|
|
graphical_culture = "pirate_01"
|
|
}
|
|
}
|
|
}
|
|
|
|
create_graygoo_roamers_1 = {
|
|
create_fleet = {
|
|
name = "NAME_Tempest_Fleet"
|
|
effect = {
|
|
set_owner = event_target:graygoo_country
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Nanite_Mothership"
|
|
graphical_culture = "pirate_01"
|
|
}
|
|
while = {
|
|
count = 5
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Nanite_Interdictor"
|
|
graphical_culture = "pirate_01"
|
|
}
|
|
}
|
|
set_location = event_target:nanite_factory
|
|
set_formation_scale = 2
|
|
set_fleet_stance = aggressive
|
|
set_aggro_range_measure_from = self
|
|
set_aggro_range = 500
|
|
|
|
queue_actions = {
|
|
repeat = {
|
|
find_random_system = {
|
|
trigger = {
|
|
id = "graygoo_roamers_1.trigger.1"
|
|
has_star_flag = lcluster
|
|
}
|
|
found_system = {
|
|
move_to = THIS
|
|
}
|
|
}
|
|
find_closest_planet = {
|
|
trigger = {
|
|
id = "graygoo_roamers_1.trigger.2"
|
|
is_planet_class = "pc_gray_goo"
|
|
}
|
|
found_planet = {
|
|
orbit_planet = THIS
|
|
wait = {
|
|
duration = 50
|
|
random = 25
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
create_graygoo_roamers_2 = {
|
|
create_fleet = {
|
|
name = "NAME_Tempest_Fleet"
|
|
effect = {
|
|
set_owner = event_target:graygoo_country
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Nanite_Mothership"
|
|
graphical_culture = "pirate_01"
|
|
}
|
|
while = {
|
|
count = 5
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Nanite_Interdictor"
|
|
graphical_culture = "pirate_01"
|
|
}
|
|
}
|
|
set_location = event_target:start_1
|
|
set_formation_scale = 2
|
|
set_fleet_stance = aggressive
|
|
set_aggro_range_measure_from = self
|
|
set_aggro_range = 500
|
|
|
|
queue_actions = {
|
|
repeat = {
|
|
find_random_system = {
|
|
trigger = {
|
|
id = "graygoo_roamers_2.trigger.1"
|
|
has_star_flag = lcluster
|
|
}
|
|
found_system = {
|
|
move_to = THIS
|
|
}
|
|
}
|
|
find_closest_planet = {
|
|
trigger = {
|
|
id = "graygoo_roamers_2.trigger.2"
|
|
is_planet_class = "pc_gray_goo"
|
|
}
|
|
found_planet = {
|
|
orbit_planet = THIS
|
|
wait = {
|
|
duration = 50
|
|
random = 25
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
create_graygoo_roamers_3 = {
|
|
create_fleet = {
|
|
name = "NAME_Tempest_Fleet"
|
|
effect = {
|
|
set_owner = event_target:graygoo_country
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Nanite_Mothership"
|
|
graphical_culture = "pirate_01"
|
|
}
|
|
while = {
|
|
count = 5
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Nanite_Interdictor"
|
|
graphical_culture = "pirate_01"
|
|
}
|
|
}
|
|
set_location = event_target:start_2
|
|
set_formation_scale = 2
|
|
set_fleet_stance = aggressive
|
|
set_aggro_range_measure_from = self
|
|
set_aggro_range = 500
|
|
|
|
queue_actions = {
|
|
repeat = {
|
|
find_random_system = {
|
|
trigger = {
|
|
id = "graygoo_roamers_3.trigger.1"
|
|
has_star_flag = lcluster
|
|
}
|
|
found_system = {
|
|
move_to = THIS
|
|
}
|
|
}
|
|
find_closest_planet = {
|
|
trigger = {
|
|
id = "graygoo_roamers_3.trigger.2"
|
|
is_planet_class = "pc_gray_goo"
|
|
}
|
|
found_planet = {
|
|
orbit_planet = THIS
|
|
wait = {
|
|
duration = 50
|
|
random = 25
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
create_graygoo_roamers_4 = {
|
|
create_fleet = {
|
|
name = "NAME_Tempest_Fleet"
|
|
effect = {
|
|
set_owner = event_target:graygoo_country
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Nanite_Mothership"
|
|
graphical_culture = "pirate_01"
|
|
}
|
|
while = {
|
|
count = 5
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Nanite_Interdictor"
|
|
graphical_culture = "pirate_01"
|
|
}
|
|
}
|
|
set_location = event_target:start_3
|
|
set_formation_scale = 2
|
|
set_fleet_stance = aggressive
|
|
set_aggro_range_measure_from = self
|
|
set_aggro_range = 500
|
|
|
|
queue_actions = {
|
|
repeat = {
|
|
find_random_system = {
|
|
trigger = {
|
|
id = "graygoo_roamers_4.trigger.1"
|
|
has_star_flag = lcluster
|
|
}
|
|
found_system = {
|
|
move_to = THIS
|
|
}
|
|
}
|
|
find_closest_planet = {
|
|
trigger = {
|
|
id = "graygoo_roamers_4.trigger.2"
|
|
is_planet_class = "pc_gray_goo"
|
|
}
|
|
found_planet = {
|
|
orbit_planet = THIS
|
|
wait = {
|
|
duration = 50
|
|
random = 25
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
create_graygoo_roamers_5 = {
|
|
create_fleet = {
|
|
name = "NAME_Tempest_Fleet"
|
|
effect = {
|
|
set_owner = event_target:graygoo_country
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Nanite_Mothership"
|
|
graphical_culture = "pirate_01"
|
|
}
|
|
while = {
|
|
count = 5
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Nanite_Interdictor"
|
|
graphical_culture = "pirate_01"
|
|
}
|
|
}
|
|
set_location = event_target:start_4
|
|
set_formation_scale = 2
|
|
set_fleet_stance = aggressive
|
|
set_aggro_range_measure_from = self
|
|
set_aggro_range = 500
|
|
|
|
queue_actions = {
|
|
repeat = {
|
|
find_random_system = {
|
|
trigger = {
|
|
id = "graygoo_roamers_5.trigger.1"
|
|
has_star_flag = lcluster
|
|
}
|
|
found_system = {
|
|
move_to = THIS
|
|
}
|
|
}
|
|
find_closest_planet = {
|
|
trigger = {
|
|
id = "graygoo_roamers_5.trigger.2"
|
|
is_planet_class = "pc_gray_goo"
|
|
}
|
|
found_planet = {
|
|
orbit_planet = THIS
|
|
wait = {
|
|
duration = 50
|
|
random = 25
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
create_graygoo_roamers_6 = {
|
|
create_fleet = {
|
|
name = "NAME_Tempest_Fleet"
|
|
effect = {
|
|
set_owner = event_target:graygoo_country
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Nanite_Mothership"
|
|
graphical_culture = "pirate_01"
|
|
}
|
|
while = {
|
|
count = 5
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Nanite_Interdictor"
|
|
graphical_culture = "pirate_01"
|
|
}
|
|
}
|
|
set_location = event_target:start_5
|
|
set_formation_scale = 2
|
|
set_fleet_stance = aggressive
|
|
set_aggro_range_measure_from = self
|
|
set_aggro_range = 500
|
|
|
|
queue_actions = {
|
|
repeat = {
|
|
find_random_system = {
|
|
trigger = {
|
|
id = "graygoo_roamers_6.trigger.1"
|
|
has_star_flag = lcluster
|
|
}
|
|
found_system = {
|
|
move_to = THIS
|
|
}
|
|
}
|
|
find_closest_planet = {
|
|
trigger = {
|
|
id = "graygoo_roamers_6.trigger.2"
|
|
is_planet_class = "pc_gray_goo"
|
|
}
|
|
found_planet = {
|
|
orbit_planet = THIS
|
|
wait = {
|
|
duration = 50
|
|
random = 25
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
create_graygoo_roamers_7 = {
|
|
create_fleet = {
|
|
name = "NAME_Tempest_Fleet"
|
|
effect = {
|
|
set_owner = event_target:graygoo_country
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Nanite_Mothership"
|
|
graphical_culture = "pirate_01"
|
|
}
|
|
while = {
|
|
count = 5
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Nanite_Interdictor"
|
|
graphical_culture = "pirate_01"
|
|
}
|
|
}
|
|
set_location = event_target:start_6
|
|
set_formation_scale = 2
|
|
set_fleet_stance = aggressive
|
|
set_aggro_range_measure_from = self
|
|
set_aggro_range = 500
|
|
|
|
queue_actions = {
|
|
repeat = {
|
|
find_random_system = {
|
|
trigger = {
|
|
id = "graygoo_roamers_7.trigger.1"
|
|
has_star_flag = lcluster
|
|
}
|
|
found_system = {
|
|
move_to = THIS
|
|
}
|
|
}
|
|
find_closest_planet = {
|
|
trigger = {
|
|
id = "graygoo_roamers_7.trigger.2"
|
|
is_planet_class = "pc_gray_goo"
|
|
}
|
|
found_planet = {
|
|
orbit_planet = THIS
|
|
wait = {
|
|
duration = 50
|
|
random = 25
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
### Create Dessanu ships
|
|
create_dessanu_roamers_1 = {
|
|
event_target:graygoo_country = {
|
|
create_leader = {
|
|
class = admiral
|
|
species = owner_main_species
|
|
name = random
|
|
skill = 3
|
|
leader_age_min = 25
|
|
leader_age_max = 45
|
|
traits = {
|
|
trait = random_trait
|
|
}
|
|
}
|
|
}
|
|
create_fleet = {
|
|
name = "NAME_Dessanu_Fleet_2"
|
|
effect = {
|
|
set_owner = event_target:graygoo_country
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Dessanu_Mothership"
|
|
}
|
|
while = {
|
|
count = 5
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Dessanu_Interdictor"
|
|
}
|
|
}
|
|
set_location = event_target:nanite_factory
|
|
set_formation_scale = 2
|
|
set_fleet_stance = aggressive
|
|
set_aggro_range_measure_from = self
|
|
set_aggro_range = 500
|
|
assign_leader = last_created_leader
|
|
|
|
queue_actions = {
|
|
repeat = {
|
|
find_random_system = {
|
|
trigger = {
|
|
id = "dessanu_roamers_1.trigger.1"
|
|
has_star_flag = lcluster
|
|
}
|
|
found_system = {
|
|
move_to = THIS
|
|
}
|
|
}
|
|
find_closest_planet = {
|
|
trigger = {
|
|
id = "dessanu_roamers_1.trigger.2"
|
|
is_planet_class = "pc_gray_goo"
|
|
}
|
|
found_planet = {
|
|
orbit_planet = THIS
|
|
wait = {
|
|
duration = 50
|
|
random = 25
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
settings = {
|
|
uses_naval_capacity = no
|
|
}
|
|
}
|
|
}
|
|
|
|
create_dessanu_roamers_2 = {
|
|
event_target:graygoo_country = {
|
|
create_leader = {
|
|
class = admiral
|
|
species = owner_main_species
|
|
name = random
|
|
skill = 3
|
|
leader_age_min = 25
|
|
leader_age_max = 45
|
|
traits = {
|
|
trait = random_trait
|
|
}
|
|
}
|
|
}
|
|
create_fleet = {
|
|
name = "NAME_Dessanu_Fleet_2"
|
|
effect = {
|
|
set_owner = event_target:graygoo_country
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Dessanu_Mothership"
|
|
}
|
|
while = {
|
|
count = 5
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Dessanu_Interdictor"
|
|
}
|
|
}
|
|
set_location = event_target:start_1
|
|
set_formation_scale = 2
|
|
set_fleet_stance = aggressive
|
|
set_aggro_range_measure_from = self
|
|
set_aggro_range = 500
|
|
assign_leader = last_created_leader
|
|
|
|
queue_actions = {
|
|
repeat = {
|
|
find_random_system = {
|
|
trigger = {
|
|
id = "dessanu_roamers_2.trigger.1"
|
|
has_star_flag = lcluster
|
|
}
|
|
found_system = {
|
|
move_to = THIS
|
|
}
|
|
}
|
|
find_closest_planet = {
|
|
trigger = {
|
|
id = "dessanu_roamers_2.trigger.2"
|
|
is_planet_class = "pc_gray_goo"
|
|
}
|
|
found_planet = {
|
|
orbit_planet = THIS
|
|
wait = {
|
|
duration = 50
|
|
random = 25
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
settings = {
|
|
uses_naval_capacity = no
|
|
}
|
|
}
|
|
}
|
|
|
|
create_dessanu_roamers_3 = {
|
|
event_target:graygoo_country = {
|
|
create_leader = {
|
|
class = admiral
|
|
species = owner_main_species
|
|
name = random
|
|
skill = 3
|
|
leader_age_min = 25
|
|
leader_age_max = 45
|
|
traits = {
|
|
trait = random_trait
|
|
}
|
|
}
|
|
}
|
|
create_fleet = {
|
|
name = "NAME_Dessanu_Fleet_2"
|
|
effect = {
|
|
set_owner = event_target:graygoo_country
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Dessanu_Mothership"
|
|
}
|
|
while = {
|
|
count = 5
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Dessanu_Interdictor"
|
|
}
|
|
}
|
|
set_location = event_target:start_2
|
|
set_formation_scale = 2
|
|
set_fleet_stance = aggressive
|
|
set_aggro_range_measure_from = self
|
|
set_aggro_range = 500
|
|
assign_leader = last_created_leader
|
|
|
|
queue_actions = {
|
|
repeat = {
|
|
find_random_system = {
|
|
trigger = {
|
|
id = "dessanu_roamers_3.trigger.1"
|
|
has_star_flag = lcluster
|
|
}
|
|
found_system = {
|
|
move_to = THIS
|
|
}
|
|
}
|
|
find_closest_planet = {
|
|
trigger = {
|
|
id = "dessanu_roamers_3.trigger.2"
|
|
is_planet_class = "pc_gray_goo"
|
|
}
|
|
found_planet = {
|
|
orbit_planet = THIS
|
|
wait = {
|
|
duration = 50
|
|
random = 25
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
settings = {
|
|
uses_naval_capacity = no
|
|
}
|
|
}
|
|
}
|
|
|
|
create_dessanu_roamers_4 = {
|
|
event_target:graygoo_country = {
|
|
create_leader = {
|
|
class = admiral
|
|
species = owner_main_species
|
|
name = random
|
|
skill = 3
|
|
leader_age_min = 25
|
|
leader_age_max = 45
|
|
traits = {
|
|
trait = random_trait
|
|
}
|
|
}
|
|
}
|
|
create_fleet = {
|
|
name = "NAME_Dessanu_Fleet_2"
|
|
effect = {
|
|
set_owner = event_target:graygoo_country
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Dessanu_Mothership"
|
|
}
|
|
while = {
|
|
count = 5
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Dessanu_Interdictor"
|
|
}
|
|
}
|
|
set_location = event_target:start_3
|
|
set_formation_scale = 2
|
|
set_fleet_stance = aggressive
|
|
set_aggro_range_measure_from = self
|
|
set_aggro_range = 500
|
|
assign_leader = last_created_leader
|
|
|
|
queue_actions = {
|
|
repeat = {
|
|
find_random_system = {
|
|
trigger = {
|
|
id = "dessanu_roamers_4.trigger.1"
|
|
has_star_flag = lcluster
|
|
}
|
|
found_system = {
|
|
move_to = THIS
|
|
}
|
|
}
|
|
find_closest_planet = {
|
|
trigger = {
|
|
id = "dessanu_roamers_4.trigger.2"
|
|
is_planet_class = "pc_gray_goo"
|
|
}
|
|
found_planet = {
|
|
orbit_planet = THIS
|
|
wait = {
|
|
duration = 50
|
|
random = 25
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
settings = {
|
|
uses_naval_capacity = no
|
|
}
|
|
}
|
|
}
|
|
|
|
create_dessanu_roamers_5 = {
|
|
event_target:graygoo_country = {
|
|
create_leader = {
|
|
class = admiral
|
|
species = owner_main_species
|
|
name = random
|
|
skill = 3
|
|
leader_age_min = 25
|
|
leader_age_max = 45
|
|
traits = {
|
|
trait = random_trait
|
|
}
|
|
}
|
|
}
|
|
create_fleet = {
|
|
name = "NAME_Dessanu_Fleet_2"
|
|
effect = {
|
|
set_owner = event_target:graygoo_country
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Dessanu_Mothership"
|
|
}
|
|
while = {
|
|
count = 5
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Dessanu_Interdictor"
|
|
}
|
|
}
|
|
set_location = event_target:start_4
|
|
set_formation_scale = 2
|
|
set_fleet_stance = aggressive
|
|
set_aggro_range_measure_from = self
|
|
set_aggro_range = 500
|
|
assign_leader = last_created_leader
|
|
|
|
queue_actions = {
|
|
repeat = {
|
|
find_random_system = {
|
|
trigger = {
|
|
id = "dessanu_roamers_5.trigger.1"
|
|
has_star_flag = lcluster
|
|
}
|
|
found_system = {
|
|
move_to = THIS
|
|
}
|
|
}
|
|
find_closest_planet = {
|
|
trigger = {
|
|
id = "dessanu_roamers_5.trigger.2"
|
|
is_planet_class = "pc_gray_goo"
|
|
}
|
|
found_planet = {
|
|
orbit_planet = THIS
|
|
wait = {
|
|
duration = 50
|
|
random = 25
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
settings = {
|
|
uses_naval_capacity = no
|
|
}
|
|
}
|
|
}
|
|
|
|
create_dessanu_roamers_6 = {
|
|
event_target:graygoo_country = {
|
|
create_leader = {
|
|
class = admiral
|
|
species = owner_main_species
|
|
name = random
|
|
skill = 3
|
|
leader_age_min = 25
|
|
leader_age_max = 45
|
|
traits = {
|
|
trait = random_trait
|
|
}
|
|
}
|
|
}
|
|
create_fleet = {
|
|
name = "NAME_Dessanu_Fleet_2"
|
|
effect = {
|
|
set_owner = event_target:graygoo_country
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Dessanu_Mothership"
|
|
}
|
|
while = {
|
|
count = 5
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Dessanu_Interdictor"
|
|
}
|
|
}
|
|
set_location = event_target:start_5
|
|
set_formation_scale = 2
|
|
set_fleet_stance = aggressive
|
|
set_aggro_range_measure_from = self
|
|
set_aggro_range = 500
|
|
assign_leader = last_created_leader
|
|
|
|
queue_actions = {
|
|
repeat = {
|
|
find_random_system = {
|
|
trigger = {
|
|
id = "dessanu_roamers_6.trigger.1"
|
|
has_star_flag = lcluster
|
|
}
|
|
found_system = {
|
|
move_to = THIS
|
|
}
|
|
}
|
|
find_closest_planet = {
|
|
trigger = {
|
|
id = "dessanu_roamers_6.trigger.2"
|
|
is_planet_class = "pc_gray_goo"
|
|
}
|
|
found_planet = {
|
|
orbit_planet = THIS
|
|
wait = {
|
|
duration = 50
|
|
random = 25
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
settings = {
|
|
uses_naval_capacity = no
|
|
}
|
|
}
|
|
}
|
|
|
|
create_dessanu_roamers_7 = {
|
|
event_target:graygoo_country = {
|
|
create_leader = {
|
|
class = admiral
|
|
species = owner_main_species
|
|
name = random
|
|
skill = 3
|
|
leader_age_min = 25
|
|
leader_age_max = 45
|
|
traits = {
|
|
trait = random_trait
|
|
}
|
|
}
|
|
}
|
|
create_fleet = {
|
|
name = "NAME_Dessanu_Fleet_2"
|
|
effect = {
|
|
set_owner = event_target:graygoo_country
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Dessanu_Mothership"
|
|
}
|
|
while = {
|
|
count = 5
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Dessanu_Interdictor"
|
|
}
|
|
}
|
|
set_location = event_target:start_6
|
|
set_formation_scale = 2
|
|
set_fleet_stance = aggressive
|
|
set_aggro_range_measure_from = self
|
|
set_aggro_range = 500
|
|
assign_leader = last_created_leader
|
|
|
|
queue_actions = {
|
|
repeat = {
|
|
find_random_system = {
|
|
trigger = {
|
|
id = "dessanu_roamers_7.trigger.1"
|
|
has_star_flag = lcluster
|
|
}
|
|
found_system = {
|
|
move_to = THIS
|
|
}
|
|
}
|
|
find_closest_planet = {
|
|
trigger = {
|
|
id = "dessanu_roamers_7.trigger.2"
|
|
is_planet_class = "pc_gray_goo"
|
|
}
|
|
found_planet = {
|
|
orbit_planet = THIS
|
|
wait = {
|
|
duration = 50
|
|
random = 25
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
settings = {
|
|
uses_naval_capacity = no
|
|
}
|
|
}
|
|
}
|
|
|
|
create_dessanu_ships_1 = {
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Dessanu_Mothership"
|
|
}
|
|
while = {
|
|
count = 5
|
|
create_ship = {
|
|
name = random
|
|
design = "NAME_Dessanu_Interdictor"
|
|
}
|
|
}
|
|
}
|
|
#创造灰风总督
|
|
create_gray_governor = {
|
|
if = {
|
|
limit = { has_country_flag = gray_warship_active }
|
|
remove_country_flag = gray_warship_active
|
|
event_target:huifeng_leader_admiral = { kill_leader = { show_notification = no } }
|
|
event_target:gray_warship_ship = { delete_ship = this } #删除灰风母舰
|
|
}
|
|
if = {
|
|
limit = { has_country_flag = gray_army_active }
|
|
remove_country_flag = gray_army_active
|
|
every_owned_army = {
|
|
limit = { army_type = gray_army }
|
|
remove_army = yes
|
|
}
|
|
}
|
|
set_country_flag = gray_governor_active
|
|
create_leader = { #创建灰风总督
|
|
class = governor
|
|
species = root
|
|
name = NAME_Gray
|
|
event_leader = yes
|
|
skill = 10
|
|
set_age = 0
|
|
traits = {
|
|
trait = leader_trait_governor_gray
|
|
}
|
|
}
|
|
last_created_leader = {
|
|
save_global_event_target_as = gray_governor
|
|
change_leader_portrait = GrayTempest
|
|
set_leader_flag = has_gained_level_trait
|
|
set_leader_flag = "灰风领袖"
|
|
}
|
|
}
|
|
#创建飞船·灰风母舰
|
|
create_gray_warship = {
|
|
if = {
|
|
limit = { has_country_flag = gray_governor_active }
|
|
remove_country_flag = gray_governor_active
|
|
event_target:gray_governor = {
|
|
kill_leader = { show_notification = no }
|
|
}
|
|
}
|
|
if = {
|
|
limit = { has_country_flag = gray_army_active }
|
|
if = {
|
|
limit = {
|
|
any_owned_army = {
|
|
army_type = gray_army
|
|
exists = planet
|
|
}
|
|
}
|
|
random_owned_army = {
|
|
limit = { army_type = gray_army }
|
|
planet = { save_event_target_as = gray_warship_location }
|
|
}
|
|
}
|
|
else = {
|
|
random_owned_army = {
|
|
limit = { army_type = gray_army }
|
|
fleet = { save_event_target_as = gray_warship_location }
|
|
}
|
|
}
|
|
}
|
|
else = {
|
|
capital_scope = { save_event_target_as = gray_warship_location }
|
|
}
|
|
set_country_flag = gray_warship_active
|
|
create_fleet = {
|
|
name = "NAME_Gray"
|
|
settings = {
|
|
can_upgrade = yes #是否可以升级
|
|
can_change_composition = yes #是否可以改变舰队结构
|
|
can_change_leader = no #是否可以更换领袖
|
|
uses_naval_capacity = yes #使用舰队容量
|
|
spawn_debris = no #产生残骸
|
|
}
|
|
effect = {
|
|
set_owner = root
|
|
create_ship = {
|
|
name = "NAME_Gray"
|
|
design = "NAME_Gray_Warship"
|
|
prefix = no
|
|
upgradable = yes #可以升级
|
|
effect = {
|
|
save_global_event_target_as = gray_warship_ship
|
|
}
|
|
}
|
|
save_global_event_target_as = gray_warship
|
|
set_location = event_target:gray_warship_location
|
|
add_modifier = {
|
|
modifier = "gray_warship"
|
|
days = -1
|
|
}
|
|
owner = {
|
|
create_leader = {
|
|
class = admiral
|
|
species = root
|
|
name = "灰风"
|
|
skill = 10
|
|
set_age = 0
|
|
traits = {
|
|
trait =
|
|
}
|
|
effect = {
|
|
save_global_event_target_as = huifeng_leader_admiral
|
|
last_created_leader = {
|
|
set_leader_flag = "灰风领袖"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
assign_leader = event_target:huifeng_leader_admiral
|
|
}
|
|
}
|
|
if = {
|
|
limit = { has_country_flag = gray_army_active }
|
|
remove_country_flag = gray_army_active
|
|
every_owned_army = {
|
|
limit = { army_type = gray_army }
|
|
remove_army = yes
|
|
}
|
|
}
|
|
}
|
|
#创造灰风地面单位
|
|
create_gray_army = {
|
|
if = {
|
|
limit = { has_country_flag = gray_governor_active }
|
|
remove_country_flag = gray_governor_active
|
|
event_target:gray_governor = { kill_leader = { show_notification = no } }
|
|
}
|
|
if = {
|
|
limit = { has_country_flag = gray_warship_active }
|
|
event_target:gray_warship = { save_event_target_as = gray_transport_location }
|
|
}
|
|
else = {
|
|
capital_scope = { save_event_target_as = gray_transport_location }
|
|
}
|
|
set_country_flag = gray_army_active
|
|
create_fleet = {
|
|
name = "NAME_Gray"
|
|
effect = {
|
|
set_owner = root
|
|
create_army_transport = {
|
|
ship_name = "NAME_Gray"
|
|
#graphical_culture = "root"
|
|
army_name = "NAME_Gray"
|
|
army_type = "gray_army"
|
|
}
|
|
set_location = {
|
|
target = event_target:gray_transport_location
|
|
distance = 0
|
|
angle = random
|
|
}
|
|
}
|
|
}
|
|
if = {
|
|
limit = { has_country_flag = gray_warship_active }
|
|
remove_country_flag = gray_warship_active
|
|
event_target:huifeng_leader_admiral = { kill_leader = { show_notification = no } }
|
|
event_target:gray_warship_ship = { delete_ship = this }
|
|
}
|
|
} |