Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # see README.txt for example
- #construction_blocks_others = no
- ring_world_fully_habitable_50 = {
- entity = "construction_platform_entity"
- construction_entity = "construction_platform_entity"
- portrait = "GFX_megastructure_construction_background"
- place_entity_on_planet_plane = no
- entity_offset = { x = -7 y = -7 }
- build_time = 1800
- resources = {
- category = megastructures
- cost = {
- alloys = 5000
- influence = 300
- }
- upkeep = {
- energy = 5
- }
- }
- prerequisites = { "tech_ring_world" }
- possible = {
- exists = starbase
- custom_tooltip = {
- fail_text = "requires_inside_border"
- is_inside_border = from
- }
- custom_tooltip = {
- fail_text = "requires_surveyed_system"
- NOT = {
- any_system_planet = {
- is_surveyed = {
- who = prev.from
- status = no
- }
- }
- }
- }
- custom_tooltip = {
- fail_text = "requires_no_habitable_planets"
- NOT = {
- any_system_planet = {
- colonizeable_planet = yes
- }
- }
- }
- custom_tooltip = {
- fail_text = "requires_no_black_hole"
- NOT = { is_star_class = sc_black_hole }
- }
- custom_tooltip = {
- fail_text = "requires_no_binary_trinary"
- NOR = {
- is_star_class = sc_binary_1
- is_star_class = sc_binary_2
- is_star_class = sc_binary_3
- is_star_class = sc_binary_4
- is_star_class = sc_binary_5
- is_star_class = sc_binary_6
- is_star_class = sc_binary_7
- is_star_class = sc_binary_8
- is_star_class = sc_binary_9
- is_star_class = sc_binary_10
- is_star_class = sc_trinary_1
- is_star_class = sc_trinary_2
- is_star_class = sc_trinary_3
- is_star_class = sc_trinary_4
- }
- }
- custom_tooltip = {
- fail_text = "requires_no_existing_megastructure"
- #NOT = { has_any_megastructure = yes }
- has_no_non_gate_megastructure = yes
- }
- }
- placement_rules = {
- planet_possible = {
- custom_tooltip = {
- fail_text = "must_build_around_star"
- is_star = yes
- }
- custom_tooltip = {
- fail_text = "requires_no_anomaly"
- NOT = { has_anomaly = yes }
- }
- custom_tooltip = {
- fail_text = "requires_planets_for_material"
- hidden:solar_system = { any_planet = { NOT = { is_star = yes } } }
- }
- }
- }
- ai_weight = {
- factor = 10
- modifier = {
- factor = 0.1
- starbase = { NOT = { has_starbase_size >= starbase_starfortress } }
- }
- modifier = {
- factor = 0.1
- any_neighbor_system = {
- exists = owner
- NOT = {
- owner = { is_same_value = from }
- }
- }
- }
- }
- on_build_start = {}
- on_build_cancel = {}
- on_build_complete = {
- set_star_flag = ring_world_built
- }
- }
- # Temporarily used for creating specific habitable or structural sections.
- ring_world_2_fully_habitable_50_intermediate = {
- entity = ""
- construction_entity = "ringworld_seam_entity_01_full_entity"
- portrait = "GFX_megastructure_construction_background"
- build_time = 4800
- resources = {
- category = megastructures
- cost = {
- alloys = 10000
- }
- }
- upgrade_from = {
- ring_world_fully_habitable_50
- }
- prerequisites = { "tech_ring_world" }
- on_build_start = {}
- on_build_cancel = {}
- on_build_complete = {
- every_system_planet = {
- limit = { is_star = no }
- remove_planet = yes
- }
- set_asteroid_belt = {
- radius = 0
- }
- remove_megastructure = fromfrom
- spawn_megastructure = {
- name = "NAME_Ring_Section_A"
- type = "ring_world_fully_habitable_2_50"
- orbit_angle = 0
- orbit_distance = 45
- owner = from
- graphical_culture = fromfrom
- location = star
- }
- spawn_megastructure = {
- name = "NAME_Ring_Section_B"
- type = "ring_world_fully_habitable_2_50"
- orbit_angle = 90
- orbit_distance = 45
- owner = from
- graphical_culture = fromfrom
- location = star
- }
- spawn_megastructure = {
- name = "NAME_Ring_Section_C"
- type = "ring_world_fully_habitable_2_50"
- orbit_angle = 180
- orbit_distance = 45
- owner = from
- graphical_culture = fromfrom
- location = star
- }
- spawn_megastructure = {
- name = "NAME_Ring_Section_D"
- type = "ring_world_fully_habitable_2_50"
- orbit_angle = 270
- orbit_distance = 45
- owner = from
- graphical_culture = fromfrom
- location = star
- }
- }
- }
- ring_world_fully_habitable_2_50 = {
- entity = "ringworld_3x_seams_entity"
- portrait = "GFX_megastructure_construction_background"
- # used from script only
- upgrade_desc = hide
- potential = { always = no }
- upgrade_from = {
- ring_world_2_fully_habitable_50_intermediate
- }
- }
- ring_world_3_fully_habitable_50_intermediate = {
- entity = ""
- construction_entity = "ringworld_phase_3_construction_entity"
- portrait = "GFX_megastructure_construction_background"
- build_time = 3600
- resources = {
- category = megastructures
- cost = {
- alloys = 10000
- }
- }
- upgrade_from = {
- ring_world_fully_habitable_2_50
- }
- prerequisites = { "tech_ring_world" }
- show_prereqs = yes
- prereq_name = "RING_WORLD_SHOW_NAME"
- on_build_complete = {
- from = {
- set_country_flag = has_built_or_repaired_megastructure
- }
- spawn_planet = {
- class = "pc_fully_ringworld_habitable_50"
- location = fromfrom
- orbit_angle_offset = 30
- init_effect = {
- set_name = "NAME_Habitation_Sector_A"
- set_planet_entity = {
- entity = "ringworld_habitable_entity_01_entity"
- graphical_culture = fromfrom
- }
- surveyed = {
- set_surveyed = yes
- surveyor = FROM
- }
- set_all_comms_surveyed = yes
- clear_blockers = yes
- save_event_target_as = ring_section1
- trigger_megastructure_icon = yes
- set_planet_flag = megastructure
- }
- }
- spawn_planet = {
- class = "pc_fully_ringworld_habitable_50"
- location = fromfrom
- orbit_angle_offset = 0
- init_effect = {
- set_name = "NAME_Habitation_Sector_A"
- set_planet_entity = {
- entity = "ringworld_habitable_entity_01_entity"
- graphical_culture = fromfrom
- }
- surveyed = {
- set_surveyed = yes
- surveyor = FROM
- }
- set_all_comms_surveyed = yes
- clear_blockers = yes
- save_event_target_as = ring_section2
- trigger_megastructure_icon = yes
- set_planet_flag = megastructure
- }
- }
- spawn_planet = {
- class = "pc_fully_ringworld_habitable_50"
- location = fromfrom
- orbit_angle_offset = -30
- init_effect = {
- set_name = "NAME_Habitation_Sector_A"
- set_planet_entity = {
- entity = "ringworld_habitable_entity_01_entity"
- graphical_culture = fromfrom
- }
- surveyed = {
- set_surveyed = yes
- surveyor = FROM
- }
- set_all_comms_surveyed = yes
- clear_blockers = yes
- save_event_target_as = ring_section3
- trigger_megastructure_icon = yes
- set_planet_flag = megastructure
- }
- }
- fromfrom.planet = {
- set_planet_flag = has_megastructure
- }
- remove_megastructure = fromfrom
- if = {
- limit = {
- NOT = { has_star_flag = ring_section_1 }
- }
- set_star_flag = ring_section_1
- event_target:ring_section1 = { set_name = "Habitation Sector A-1" }
- event_target:ring_section2 = { set_name = "Habitation Sector A-2" }
- event_target:ring_section3 = { set_name = "Habitation Sector A-3" }
- break = yes
- }
- if = {
- limit = {
- has_star_flag = ring_section_1
- NOT = { has_star_flag = ring_section_2 }
- }
- set_star_flag = ring_section_2
- event_target:ring_section1 = { set_name = "Habitation Sector B-1" }
- event_target:ring_section2 = { set_name = "Habitation Sector B-2" }
- event_target:ring_section3 = { set_name = "Habitation Sector B-3" }
- break = yes
- }
- if = {
- limit = {
- has_star_flag = ring_section_2
- NOT = { has_star_flag = ring_section_3 }
- }
- set_star_flag = ring_section_3
- event_target:ring_section1 = { set_name = "Habitation Sector C-1" }
- event_target:ring_section2 = { set_name = "Habitation Sector C-2" }
- event_target:ring_section3 = { set_name = "Habitation Sector C-3" }
- break = yes
- }
- if = {
- limit = { has_star_flag = ring_section_3 }
- remove_star_flag = ring_section_1
- remove_star_flag = ring_section_2
- remove_star_flag = ring_section_3
- event_target:ring_section1 = { set_name = "Habitation Sector D-1" }
- event_target:ring_section2 = { set_name = "Habitation Sector D-2" }
- event_target:ring_section3 = { set_name = "Habitation Sector D-3" }
- break = yes
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment