### Khan ### create_1st_khan_fleet = { create_fleet = { name = "NAME_Chosen_of_the_Great_Khan" effect = { set_owner = event_target:raider_khanate while = { count = 12 create_ship = { name = random design = "NAME_Outrider" prefix = no graphical_culture = "pirate_01" } } while = { count = 9 create_ship = { name = random design = "NAME_Lancer" prefix = no graphical_culture = "pirate_01" } } while = { count = 4 create_ship = { name = random design = "NAME_Void_Champion" prefix = no graphical_culture = "pirate_01" } } while = { count = 1 create_ship = { name = random design = "NAME_Ancestral_Glory" prefix = no graphical_culture = "pirate_01" } } assign_leader = last_created_leader set_fleet_flag = khan_fleet set_location = { target = event_target:marauder_rally_point distance = 45 angle = random } } settings = { can_upgrade = no can_disband = no can_change_composition = no can_change_leader = no uses_naval_capacity = no } } } create_2nd_khan_fleet = { create_fleet = { name = "NAME_Chosen_of_the_Great_Khan" effect = { set_owner = event_target:raider_khanate while = { count = 12 create_ship = { name = random design = "NAME_Outrider" prefix = no graphical_culture = "pirate_01" } } while = { count = 9 create_ship = { name = random design = "NAME_Lancer" prefix = no graphical_culture = "pirate_01" } } while = { count = 4 create_ship = { name = random design = "NAME_Void_Champion" prefix = no graphical_culture = "pirate_01" } } while = { count = 1 create_ship = { name = random design = "NAME_Ancestral_Glory" prefix = no graphical_culture = "pirate_01" } } set_leader = exiled_khan set_fleet_flag = khan_fleet set_location = { target = event_target:marauder_rally_point distance = 45 angle = random } } settings = { can_upgrade = no can_disband = no can_change_composition = no can_change_leader = no uses_naval_capacity = no } } } ### Diadochi ### assign_first_diadochi_planets = { random_system_within_border = { limit = { is_potential_diadochi_system = yes any_system_colony = { has_owner = yes is_owned_by = root } } set_star_flag = first_diadochi_system save_event_target_as = first_diadochi_origin } effect_on_blob = { center = event_target:first_diadochi_origin owned_planets_percentage = 0.25 planet_limit = { solar_system = { is_potential_diadochi_system = yes } } effect = { set_star_flag = first_diadochi_system } } } create_first_diadochi = { if = { limit = { exists = event_target:first_diadochi_origin } create_country = { name_list = random species = event_target:marauder_species type = default authority = auth_imperial civics = { civic = civic_diadochi civic = random } origin = "origin_khan_successor" ethos = { ethic = ethic_fanatic_militarist ethic = ethic_xenophobe } ignore_initial_colony_error = yes } last_created_country = { save_event_target_as = first_diadochi set_country_flag = diadochi_1 set_country_flag = diadochi set_name = random } # Flip Starbases every_system_within_border = { limit = { has_star_flag = first_diadochi_system exists = starbase } starbase = { set_owner = event_target:first_diadochi } } # Flip Planets every_owned_planet = { limit = { solar_system = { has_star_flag = first_diadochi_system } } set_owner = event_target:first_diadochi set_controller = event_target:first_diadochi } event_target:first_diadochi = { add_resource = { minerals = 20000 energy = 20000 alloys = 20000 consumer_goods = 20000 food = 20000 influence = 1000 } copy_techs_from = { target = root } every_owned_starbase = { set_starbase_size = starbase_outpost } spawn_diadochi_shipyard = yes spawn_diadochi_starhold = yes spawn_diadochi_starhold = yes # Survey Own Space every_planet_within_border = { set_surveyed = { surveyed = yes surveyor = event_target:first_diadochi } } # Survey Rest of Marauder's Space root = { every_planet_within_border = { set_surveyed = { surveyed = yes surveyor = event_target:first_diadochi } } } # Mining and Research Stations every_planet_within_border = { limit = { has_deposit_for = shipclass_mining_station has_mining_station = no } create_mining_station = { owner = event_target:first_diadochi } } every_planet_within_border = { limit = { has_deposit_for = shipclass_research_station has_research_station = no } create_research_station = { owner = event_target:first_diadochi } } ### Units create_ship_design = { design = "NAME_Pirate_Transport" } add_ship_design = last_created_design create_ship_design = { design = "NAME_Clan_Builder" } add_ship_design = last_created_design random_owned_planet = { save_event_target_as = unit_spawn_point } # Fleet create_leader = { class = commander species = owner_main_species name = random skill = 3 leader_age_min = 25 leader_age_max = 45 traits = { 0 = leader_trait_mercenary_warrior } } create_fleet = { effect = { set_owner = event_target:first_diadochi while = { count = 11 create_ship = { name = random design = "NAME_Outrider" prefix = no graphical_culture = "pirate_01" } } while = { count = 5 create_ship = { name = random design = "NAME_Lancer" prefix = no graphical_culture = "pirate_01" } } while = { count = 4 create_ship = { name = random design = "NAME_Void_Champion" prefix = no graphical_culture = "pirate_01" } } while = { count = 1 create_ship = { name = random design = "NAME_Ancestral_Glory" prefix = no graphical_culture = "pirate_01" } } assign_leader = last_created_leader set_location = { target = event_target:unit_spawn_point distance = 45 angle = random } } settings = { uses_naval_capacity = no } } # Armies create_leader = { class = commander species = owner_main_species name = random skill = 3 } create_fleet = { effect = { set_owner = event_target:first_diadochi while = { count = 12 create_army_transport = { ship_name = "NAME_Pirate_Transport" graphical_culture = "mammalian_01" army_type = "assault_army" species = event_target:first_diadochi } } set_location = { target = event_target:unit_spawn_point distance = 20 angle = random } } } last_created_army = { assign_leader = last_created_leader } # Constructor create_fleet = { effect = { set_owner = event_target:first_diadochi create_ship = { name = random design = "NAME_Clan_Builder" } set_location = { target = event_target:unit_spawn_point distance = 20 angle = random } } } } # Establish Communications every_country = { limit = { OR = { has_communications = root has_government = gov_diadochi } } establish_communications_no_message = event_target:first_diadochi } } } assign_second_diadochi_planets = { random_system_within_border = { limit = { is_potential_diadochi_system = yes any_system_colony = { has_owner = yes is_owned_by = root } } set_star_flag = second_diadochi_system save_event_target_as = second_diadochi_origin } effect_on_blob = { center = event_target:second_diadochi_origin owned_planets_percentage = 0.33 planet_limit = { solar_system = { is_potential_diadochi_system = yes } } effect = { set_star_flag = second_diadochi_system } } } create_second_diadochi = { if = { limit = { exists = event_target:second_diadochi_origin } create_country = { name_list = random species = event_target:marauder_species type = default authority = auth_imperial civics = { civic = civic_diadochi civic = random } origin = "origin_khan_successor" ethos = { ethic = ethic_fanatic_militarist ethic = ethic_xenophobe } ignore_initial_colony_error = yes } last_created_country = { save_event_target_as = second_diadochi set_country_flag = diadochi_2 set_country_flag = diadochi set_name = random } # Flip Starbases every_system_within_border = { limit = { has_star_flag = second_diadochi_system exists = starbase } starbase = { set_owner = event_target:second_diadochi } } # Flip Planets every_owned_planet = { limit = { solar_system = { has_star_flag = second_diadochi_system } } set_owner = event_target:second_diadochi set_controller = event_target:second_diadochi } event_target:second_diadochi = { add_resource = { minerals = 20000 energy = 20000 alloys = 20000 consumer_goods = 20000 food = 20000 influence = 1000 } copy_techs_from = { target = root } every_owned_starbase = { set_starbase_size = starbase_outpost } spawn_diadochi_shipyard = yes spawn_diadochi_starhold = yes spawn_diadochi_starhold = yes # Survey Own Space every_planet_within_border = { set_surveyed = { surveyed = yes surveyor = event_target:second_diadochi } } # Survey Rest of Marauder's Space root = { every_planet_within_border = { set_surveyed = { surveyed = yes surveyor = event_target:second_diadochi } } } # Mining and Research Stations every_planet_within_border = { limit = { has_deposit_for = shipclass_mining_station has_mining_station = no } create_mining_station = { owner = event_target:second_diadochi } } every_planet_within_border = { limit = { has_deposit_for = shipclass_research_station has_research_station = no } create_research_station = { owner = event_target:second_diadochi } } ### Units create_ship_design = { design = "NAME_Pirate_Transport" } add_ship_design = last_created_design create_ship_design = { design = "NAME_Clan_Builder" } add_ship_design = last_created_design random_owned_planet = { save_event_target_as = unit_spawn_point } # Fleet create_leader = { class = commander species = owner_main_species name = random skill = 3 leader_age_min = 25 leader_age_max = 45 traits = { 0 = leader_trait_mercenary_warrior } } create_fleet = { effect = { set_owner = event_target:second_diadochi while = { count = 11 create_ship = { name = random design = "NAME_Outrider" prefix = no graphical_culture = "pirate_01" } } while = { count = 5 create_ship = { name = random design = "NAME_Lancer" prefix = no graphical_culture = "pirate_01" } } while = { count = 4 create_ship = { name = random design = "NAME_Void_Champion" prefix = no graphical_culture = "pirate_01" } } while = { count = 1 create_ship = { name = random design = "NAME_Ancestral_Glory" prefix = no graphical_culture = "pirate_01" } } assign_leader = last_created_leader set_location = { target = event_target:unit_spawn_point distance = 45 angle = random } } settings = { uses_naval_capacity = no } } # Armies create_leader = { class = commander species = owner_main_species name = random skill = 3 } create_fleet = { effect = { set_owner = event_target:second_diadochi while = { count = 12 create_army_transport = { ship_name = "NAME_Pirate_Transport" graphical_culture = "mammalian_01" army_type = "assault_army" species = event_target:second_diadochi } } set_location = { target = event_target:unit_spawn_point distance = 20 angle = random } } } last_created_army = { assign_leader = last_created_leader } # Constructor create_fleet = { effect = { set_owner = event_target:second_diadochi create_ship = { name = random design = "NAME_Clan_Builder" } set_location = { target = event_target:unit_spawn_point distance = 20 angle = random } } } } # Establish Communications every_country = { limit = { OR = { has_communications = root has_government = gov_diadochi } } establish_communications_no_message = event_target:second_diadochi } } } assign_third_diadochi_planets = { random_system_within_border = { limit = { is_potential_diadochi_system = yes any_system_colony = { has_owner = yes is_owned_by = root } } set_star_flag = third_diadochi_system save_event_target_as = third_diadochi_origin } effect_on_blob = { center = event_target:third_diadochi_origin owned_planets_percentage = 0.5 planet_limit = { solar_system = { is_potential_diadochi_system = yes } } effect = { set_star_flag = third_diadochi_system } } } create_third_diadochi = { if = { limit = { exists = event_target:third_diadochi_origin } create_country = { name_list = random species = event_target:marauder_species type = default authority = auth_imperial civics = { civic = civic_diadochi civic = random } origin = "origin_khan_successor" ethos = { ethic = ethic_fanatic_militarist ethic = ethic_xenophobe } ignore_initial_colony_error = yes } last_created_country = { save_event_target_as = third_diadochi set_country_flag = diadochi_3 set_country_flag = diadochi set_name = random } # Flip Starbases every_system_within_border = { limit = { has_star_flag = third_diadochi_system exists = starbase } starbase = { set_owner = event_target:third_diadochi } } # Flip Planets every_owned_planet = { limit = { solar_system = { has_star_flag = third_diadochi_system } } set_owner = event_target:third_diadochi set_controller = event_target:third_diadochi } event_target:third_diadochi = { add_resource = { minerals = 20000 energy = 20000 alloys = 20000 consumer_goods = 20000 food = 20000 influence = 1000 } copy_techs_from = { target = root } every_owned_starbase = { set_starbase_size = starbase_outpost } spawn_diadochi_shipyard = yes spawn_diadochi_starhold = yes spawn_diadochi_starhold = yes # Survey Own Space every_planet_within_border = { set_surveyed = { surveyed = yes surveyor = event_target:third_diadochi } } # Survey Rest of Marauder's Space root = { every_planet_within_border = { set_surveyed = { surveyed = yes surveyor = event_target:third_diadochi } } } # Mining and Research Stations every_planet_within_border = { limit = { has_deposit_for = shipclass_mining_station has_mining_station = no } create_mining_station = { owner = event_target:third_diadochi } } every_planet_within_border = { limit = { has_deposit_for = shipclass_research_station has_research_station = no } create_research_station = { owner = event_target:third_diadochi } } ### Units create_ship_design = { design = "NAME_Pirate_Transport" } add_ship_design = last_created_design create_ship_design = { design = "NAME_Clan_Builder" } add_ship_design = last_created_design random_owned_planet = { save_event_target_as = unit_spawn_point } # Fleet create_leader = { class = commander species = owner_main_species name = random skill = 3 leader_age_min = 25 leader_age_max = 45 traits = { 0 = leader_trait_mercenary_warrior } } create_fleet = { effect = { set_owner = event_target:third_diadochi while = { count = 11 create_ship = { name = random design = "NAME_Outrider" prefix = no graphical_culture = "pirate_01" } } while = { count = 5 create_ship = { name = random design = "NAME_Lancer" prefix = no graphical_culture = "pirate_01" } } while = { count = 4 create_ship = { name = random design = "NAME_Void_Champion" prefix = no graphical_culture = "pirate_01" } } while = { count = 1 create_ship = { name = random design = "NAME_Ancestral_Glory" prefix = no graphical_culture = "pirate_01" } } assign_leader = last_created_leader set_location = { target = event_target:unit_spawn_point distance = 45 angle = random } } settings = { uses_naval_capacity = no } } # Armies create_leader = { class = commander species = owner_main_species name = random skill = 3 } create_fleet = { effect = { set_owner = event_target:third_diadochi while = { count = 12 create_army_transport = { ship_name = "NAME_Pirate_Transport" graphical_culture = "mammalian_01" army_type = "assault_army" species = event_target:third_diadochi } } set_location = { target = event_target:unit_spawn_point distance = 20 angle = random } } } last_created_army = { assign_leader = last_created_leader } # Constructor create_fleet = { effect = { set_owner = event_target:third_diadochi create_ship = { name = random design = "NAME_Clan_Builder" } set_location = { target = event_target:unit_spawn_point distance = 20 angle = random } } } } # Establish Communications every_country = { limit = { OR = { has_communications = root has_government = gov_diadochi } } establish_communications_no_message = event_target:third_diadochi } } } assign_fourth_diadochi_planets = { random_system_within_border = { limit = { is_potential_diadochi_system = yes any_system_colony = { has_owner = yes is_owned_by = root } } set_star_flag = fourth_diadochi_system save_event_target_as = fourth_diadochi_origin } effect_on_blob = { center = event_target:fourth_diadochi_origin owned_planets_percentage = 1 planet_limit = { solar_system = { is_potential_diadochi_system = yes } } effect = { set_star_flag = fourth_diadochi_system } } } create_fourth_diadochi = { if = { limit = { exists = event_target:fourth_diadochi_origin } create_country = { name_list = random species = event_target:marauder_species type = default authority = auth_imperial civics = { civic = civic_diadochi civic = random } origin = "origin_khan_successor" ethos = { ethic = ethic_fanatic_militarist ethic = ethic_xenophobe } ignore_initial_colony_error = yes } last_created_country = { save_event_target_as = fourth_diadochi set_country_flag = diadochi_4 set_country_flag = diadochi set_name = random } # Flip Starbases every_system_within_border = { limit = { has_star_flag = fourth_diadochi_system exists = starbase } starbase = { set_owner = event_target:fourth_diadochi } } # Flip Planets every_owned_planet = { limit = { solar_system = { has_star_flag = fourth_diadochi_system } } set_owner = event_target:fourth_diadochi set_controller = event_target:fourth_diadochi } event_target:fourth_diadochi = { add_resource = { minerals = 20000 energy = 20000 alloys = 20000 consumer_goods = 20000 food = 20000 influence = 1000 } copy_techs_from = { target = root } every_owned_starbase = { set_starbase_size = starbase_outpost } spawn_diadochi_shipyard = yes spawn_diadochi_starhold = yes spawn_diadochi_starhold = yes # Survey Own Space every_planet_within_border = { set_surveyed = { surveyed = yes surveyor = event_target:fourth_diadochi } } # Survey Rest of Marauder's Space root = { every_planet_within_border = { set_surveyed = { surveyed = yes surveyor = event_target:fourth_diadochi } } } # Mining and Research Stations every_planet_within_border = { limit = { has_deposit_for = shipclass_mining_station has_mining_station = no } create_mining_station = { owner = event_target:fourth_diadochi } } every_planet_within_border = { limit = { has_deposit_for = shipclass_research_station has_research_station = no } create_research_station = { owner = event_target:fourth_diadochi } } ### Units create_ship_design = { design = "NAME_Pirate_Transport" } add_ship_design = last_created_design create_ship_design = { design = "NAME_Clan_Builder" } add_ship_design = last_created_design random_owned_planet = { save_event_target_as = unit_spawn_point } # Fleet create_leader = { class = commander species = owner_main_species name = random skill = 3 leader_age_min = 25 leader_age_max = 45 traits = { 0 = leader_trait_mercenary_warrior } } create_fleet = { effect = { set_owner = event_target:fourth_diadochi while = { count = 11 create_ship = { name = random design = "NAME_Outrider" prefix = no graphical_culture = "pirate_01" } } while = { count = 5 create_ship = { name = random design = "NAME_Lancer" prefix = no graphical_culture = "pirate_01" } } while = { count = 4 create_ship = { name = random design = "NAME_Void_Champion" prefix = no graphical_culture = "pirate_01" } } while = { count = 1 create_ship = { name = random design = "NAME_Ancestral_Glory" prefix = no graphical_culture = "pirate_01" } } assign_leader = last_created_leader set_location = { target = event_target:unit_spawn_point distance = 45 angle = random } } settings = { uses_naval_capacity = no } } # Armies create_leader = { class = commander species = owner_main_species name = random skill = 3 } create_fleet = { effect = { set_owner = event_target:fourth_diadochi while = { count = 12 create_army_transport = { ship_name = "NAME_Pirate_Transport" graphical_culture = "mammalian_01" army_type = "assault_army" species = event_target:fourth_diadochi } } set_location = { target = event_target:unit_spawn_point distance = 20 angle = random } } } last_created_army = { assign_leader = last_created_leader } # Constructor create_fleet = { effect = { set_owner = event_target:fourth_diadochi create_ship = { name = random design = "NAME_Clan_Builder" } set_location = { target = event_target:unit_spawn_point distance = 20 angle = random } } } } # Establish Communications every_country = { limit = { OR = { has_communications = root has_government = gov_diadochi } } establish_communications_no_message = event_target:fourth_diadochi } } } spawn_diadochi_shipyard = { if = { limit = { any_owned_starbase = { has_starbase_size = starbase_outpost } } random_owned_starbase = { limit = { has_starbase_size = starbase_outpost } weights = { base = 0 modifier = { add = 10 solar_system = { any_system_planet = { is_colony = yes is_under_colonization = no } } } modifier = { factor = 100 solar_system = { is_capital_system = yes } } } set_starbase_size = starbase_starhold set_starbase_module = { slot = 1 module = shipyard } set_starbase_module = { slot = 2 module = shipyard } set_starbase_module = { slot = 3 module = shipyard } set_starbase_module = { slot = 4 module = shipyard } } } } spawn_diadochi_starhold = { if = { limit = { any_owned_starbase = { has_starbase_size = starbase_outpost } } random_owned_starbase = { limit = { has_starbase_size = starbase_outpost } weights = { base = 1 modifier = { add = 1 solar_system = { is_inside_nebula = yes } } modifier = { factor = 3 solar_system = { is_bottleneck_system = yes } } modifier = { factor = 10 solar_system = { any_system_planet = { is_colony = yes is_under_colonization = no } } } } set_starbase_size = starbase_starhold } } } assign_diadochi_systems = { while = { count = 100 limit = { any_system_within_border = { is_potential_diadochi_system = yes } } if = { limit = { exists = event_target:first_diadochi_origin } event_target:first_diadochi_origin = { closest_system = { limit = { is_potential_diadochi_system = yes } max_steps = 20 set_star_flag = first_diadochi_system } } } if = { limit = { exists = event_target:second_diadochi_origin } event_target:second_diadochi_origin = { closest_system = { limit = { is_potential_diadochi_system = yes } max_steps = 20 set_star_flag = second_diadochi_system } } } if = { limit = { exists = event_target:third_diadochi_origin } event_target:third_diadochi_origin = { closest_system = { limit = { is_potential_diadochi_system = yes } max_steps = 20 set_star_flag = third_diadochi_system } } } if = { limit = { exists = event_target:fourth_diadochi_origin } event_target:fourth_diadochi_origin = { closest_system = { limit = { is_potential_diadochi_system = yes } max_steps = 20 set_star_flag = fourth_diadochi_system } } } } } set_diadochi_claims = { if = { limit = { any_country = { has_country_flag = diadochi_1 } } random_country = { limit = { has_country_flag = diadochi_1 } every_system = { limit = { exists = owner owner = { has_country_flag = diadochi NOT = { has_country_flag = diadochi_1 } } } add_claims = { who = prev num_of_claims = 1 show_notification = yes } } } } if = { limit = { any_country = { has_country_flag = diadochi_2 } } random_country = { limit = { has_country_flag = diadochi_2 } every_system = { limit = { exists = owner owner = { has_country_flag = diadochi NOT = { has_country_flag = diadochi_2 } } } add_claims = { who = prev num_of_claims = 1 show_notification = yes } } } } if = { limit = { any_country = { has_country_flag = diadochi_3 } } random_country = { limit = { has_country_flag = diadochi_3 } every_system = { limit = { exists = owner owner = { has_country_flag = diadochi NOT = { has_country_flag = diadochi_3 } } } add_claims = { who = prev num_of_claims = 1 show_notification = yes } } } } if = { limit = { any_country = { has_country_flag = diadochi_4 } } random_country = { limit = { has_country_flag = diadochi_4 } every_system = { limit = { exists = owner owner = { has_country_flag = diadochi NOT = { has_country_flag = diadochi_4 } } } add_claims = { who = prev num_of_claims = 1 show_notification = yes } } } } } ### Marauders ### create_marauder_starbase = { create_starbase = { size = "starbase_marauder" owner = event_target:marauder_starbase_owner } } create_marauder_fleet = { create_leader = { class = commander species = owner_main_species name = random skill = 3 leader_age_min = 25 leader_age_max = 45 traits = { 0 = leader_trait_mercenary_warrior } } create_fleet = { effect = { set_owner = event_target:raider_khanate while = { count = 11 create_ship = { name = random design = "NAME_Outrider" prefix = no graphical_culture = "pirate_01" } } while = { count = 5 create_ship = { name = random design = "NAME_Lancer" prefix = no graphical_culture = "pirate_01" } } while = { count = 4 create_ship = { name = random design = "NAME_Void_Champion" prefix = no graphical_culture = "pirate_01" } } while = { count = 1 create_ship = { name = random design = "NAME_Ancestral_Glory" prefix = no graphical_culture = "pirate_01" } } assign_leader = last_created_leader set_location = { target = event_target:marauder_rally_point distance = 45 angle = random } } settings = { uses_naval_capacity = no can_upgrade = no can_change_composition = no } } } create_marauder_armies = { create_leader = { class = commander species = owner_main_species name = random skill = 3 } create_fleet = { effect = { set_owner = event_target:raider_khanate while = { count = 20 create_army_transport = { ship_name = "NAME_Pirate_Transport" graphical_culture = "mammalian_01" army_type = "assault_army" species = event_target:raider_khanate } } set_location = { target = event_target:marauder_rally_point distance = 20 angle = random } } } last_created_army = { assign_leader = last_created_leader } } create_marauder_constructors = { if = { limit = { event_target:raider_khanate = { count_controlled_ship = { limit = { is_ship_size = constructor } count < 5 } } } create_fleet = { effect = { set_owner = event_target:raider_khanate create_ship = { name = random design = "NAME_Clan_Builder" } set_location = { target = event_target:marauder_rally_point distance = 20 angle = random } } } } } create_small_marauder_auxiliaries = { create_leader = { class = commander species = event_target:satrapy_species name = random leader_age_min = 34 leader_age_max = 45 } create_fleet = { name = { key = "NAME_Horde_Auxiliary_Fleet" variable_string = "\\[satrapy_species.GetName\\]" } effect = { set_owner = event_target:raider_khanate set_fleet_flag = horde_auxuliaries while = { count = 6 create_ship = { name = random design = "NAME_Outrider" prefix = no graphical_culture = "pirate_01" } } while = { count = 2 create_ship = { name = random design = "NAME_Lancer" prefix = no graphical_culture = "pirate_01" } } while = { count = 1 create_ship = { name = random design = "NAME_Void_Champion" prefix = no graphical_culture = "pirate_01" } } assign_leader = last_created_leader set_location = { target = root distance = 10 angle = random } } settings = { can_upgrade = no can_disband = no can_change_composition = no can_change_leader = no uses_naval_capacity = no } } } create_medium_marauder_auxiliaries = { create_leader = { class = commander species = event_target:satrapy_species name = random leader_age_min = 34 leader_age_max = 45 } create_fleet = { name = { key = "NAME_Horde_Auxiliary_Fleet" variable_string = "\\[satrapy_species.GetName\\]" } effect = { set_owner = event_target:raider_khanate set_fleet_flag = horde_auxuliaries while = { count = 11 create_ship = { name = random design = "NAME_Outrider" prefix = no graphical_culture = "pirate_01" } } while = { count = 5 create_ship = { name = random design = "NAME_Lancer" prefix = no graphical_culture = "pirate_01" } } while = { count = 4 create_ship = { name = random design = "NAME_Void_Champion" prefix = no graphical_culture = "pirate_01" } } while = { count = 1 create_ship = { name = random design = "NAME_Ancestral_Glory" prefix = no graphical_culture = "pirate_01" } } assign_leader = last_created_leader set_location = { target = root distance = 10 angle = random } } settings = { can_upgrade = no can_disband = no can_change_composition = no can_change_leader = no uses_naval_capacity = no } } } create_large_marauder_auxiliaries = { create_leader = { class = commander species = event_target:satrapy_species name = random leader_age_min = 34 leader_age_max = 45 } create_fleet = { name = { key = "NAME_Horde_Auxiliary_Fleet" variable_string = "\\[satrapy_species.GetName\\]" } effect = { set_owner = event_target:raider_khanate set_fleet_flag = horde_auxuliaries while = { count = 15 create_ship = { name = random design = "NAME_Outrider" prefix = no graphical_culture = "pirate_01" } } while = { count = 8 create_ship = { name = random design = "NAME_Lancer" prefix = no graphical_culture = "pirate_01" } } while = { count = 5 create_ship = { name = random design = "NAME_Void_Champion" prefix = no graphical_culture = "pirate_01" } } while = { count = 1 create_ship = { name = random design = "NAME_Ancestral_Glory" prefix = no graphical_culture = "pirate_01" } } assign_leader = last_created_leader set_location = { target = root distance = 10 angle = random } } settings = { can_upgrade = no can_disband = no can_change_composition = no can_change_leader = no uses_naval_capacity = no } } } create_very_large_marauder_auxiliaries = { create_leader = { class = commander species = event_target:satrapy_species name = random } last_created_leader = { set_age = 37 } create_fleet = { name = { key = "NAME_Horde_Auxiliary_Fleet" variable_string = "\\[satrapy_species.GetName\\]" } effect = { set_owner = event_target:raider_khanate set_fleet_flag = horde_auxuliaries while = { count = 16 create_ship = { name = random design = "NAME_Outrider" prefix = no graphical_culture = "pirate_01" } } while = { count = 12 create_ship = { name = random design = "NAME_Lancer" prefix = no graphical_culture = "pirate_01" } } while = { count = 8 create_ship = { name = random design = "NAME_Void_Champion" prefix = no graphical_culture = "pirate_01" } } while = { count = 1 create_ship = { name = random design = "NAME_Ancestral_Glory" prefix = no graphical_culture = "pirate_01" } } assign_leader = last_created_leader set_location = { target = root distance = 10 angle = random } } settings = { can_upgrade = no can_disband = no can_change_composition = no can_change_leader = no uses_naval_capacity = no } } } create_marauder_successor_fleet = { random_owned_planet = { save_event_target_as = fleet_position } create_leader = { class = commander species = owner_main_species name = random skill = 3 leader_age_min = 25 leader_age_max = 45 traits = { 0 = leader_trait_mercenary_warrior } } create_fleet = { effect = { set_owner = prev while = { count = 11 create_ship = { name = random design = "NAME_Outrider" prefix = no graphical_culture = "pirate_01" } } while = { count = 5 create_ship = { name = random design = "NAME_Lancer" prefix = no graphical_culture = "pirate_01" } } while = { count = 4 create_ship = { name = random design = "NAME_Void_Champion" prefix = no graphical_culture = "pirate_01" } } while = { count = 1 create_ship = { name = random design = "NAME_Ancestral_Glory" prefix = no graphical_culture = "pirate_01" } } assign_leader = last_created_leader set_location = { target = event_target:fleet_position distance = 45 angle = random } } settings = { uses_naval_capacity = no can_upgrade = no can_change_composition = no } } }