realgray-stellaris-mod/common/megastructures/RG_oribital_ring.txt

312 lines
6.0 KiB
Plaintext
Raw Normal View History

RG_orbital_ring = {
entity = ""
construction_entity = "orbital_ring_construction_entity"
portrait = "GFX_megastructure_construction_background"
place_entity_on_planet_plane = yes
2023-06-08 13:11:05 +08:00
entity_offset = {
x = 0
y = 0
}
scales_with_planet = yes
show_galactic_map_icon = no
show_in_outliner = no
build_time = 720
resources = {
category = megastructures
cost = {
alloys = 1000
influence = 50
}
}
construction_blocks_and_blocked_by = none
2023-06-08 13:11:05 +08:00
potential = {
has_technology = tech_gray_noway
}
possible = {
exists = starbase
custom_tooltip = {
fail_text = "requires_inside_border"
is_inside_border = from
}
}
placement_rules = {
planet_possible = {
custom_tooltip = {
fail_text = "requires_surveyed_planet"
2023-06-08 13:11:05 +08:00
is_surveyed = {
# prevent leaking habitability information
who = prev.from
status = yes
}
}
custom_tooltip = {
fail_text = "requires_no_anomaly"
2023-06-08 13:11:05 +08:00
NOT = {
has_anomaly = yes
}
}
custom_tooltip = {
fail_text = "requires_colonized_planet_orbital_ring"
# is_colony = yes
exists = owner
exists = controller
2023-06-08 13:11:05 +08:00
controller = {
is_same_value = prev.owner
}
}
custom_tooltip = {
fail_text = "requires_not_hostile_or_primitive"
NOR = {
planet_is_hostile_or_crisis = yes
AND = {
exists = owner
owner = {
is_country_type = primitive
}
}
}
}
custom_tooltip = {
fail_text = "requires_no_existing_megastructure"
#can_build_megastructure_on_planet = yes
NOR = {
has_planet_flag = megastructure
AND = {
has_planet_flag = has_megastructure
# Special exception so you can build an orbital ring even if you have MSI's warship as a habitat.
NOT = {
has_planet_flag = has_payback_habitat
}
}
has_planet_flag = ruined_orbital_ring_planet
solar_system = {
has_star_flag = ring_world_built
}
is_artificial = yes
}
}
custom_tooltip = {
fail_text = "requires_no_orbital_debris"
NOR = {
has_planet_flag = has_orbital_debris
}
}
if = {
limit = {
2023-06-08 13:11:05 +08:00
from = {
is_ai = yes
}
}
num_pops >= 25
}
}
}
# root = system
# from = country
ai_weight = {
factor = 5
modifier = {
factor = 3
solar_system = {
exists = owner
is_same_value = owner.capital_scope.solar_system
}
}
modifier = {
factor = 2
any_neighbor_system = {
exists = owner
is_same_value = owner.capital_scope.solar_system
}
}
modifier = {
factor = 0.1
any_neighbor_system = {
exists = owner
2023-06-08 13:11:05 +08:00
owner = {
NOT = {
is_same_value = from
}
}
}
}
modifier = {
factor = 3
any_system_colony = {
num_pops >= 50
2023-06-08 13:11:05 +08:00
NOT = {
exists = orbital_defence
}
}
}
}
2023-06-08 13:11:05 +08:00
on_build_start = {
}
on_build_cancel = {
}
on_build_complete = {
fromfrom.planet = {
set_planet_flag = has_megastructure
save_event_target_as = orbital_ring_planet
if = {
2023-06-08 13:11:05 +08:00
limit = {
has_orbital_station = yes
}
orbital_station = {
dismantle = yes
}
}
create_starbase = {
size = orbital_ring_tier_1
owner = FROM
#module = <starbase_module>
#building = <starbase_building>
2023-06-08 13:11:05 +08:00
effect = {
}
}
}
remove_megastructure = fromfrom
from = {
2023-06-08 13:11:05 +08:00
country_event = {
id = tutorial.2121
}
}
}
}
orbital_ring_ruined = {
2023-06-08 13:11:05 +08:00
entity = "orbital_ring_01_destroyed_entity"
construction_entity = "orbital_ring_construction_entity"
portrait = "GFX_megastructure_construction_background"
place_entity_on_planet_plane = yes
2023-06-08 13:11:05 +08:00
entity_offset = {
x = 0
y = 0
}
scales_with_planet = yes
2023-06-08 13:11:05 +08:00
potential = {
always = no
}
is_ruined_orbital_ring = yes
}
orbital_ring_restored = {
entity = ""
construction_entity = "orbital_ring_construction_entity"
portrait = "GFX_megastructure_construction_background"
place_entity_on_planet_plane = yes
2023-06-08 13:11:05 +08:00
entity_offset = {
x = 0
y = 0
}
scales_with_planet = yes
show_galactic_map_icon = no
show_in_outliner = no
build_time = 720
resources = {
category = megastructures
cost = {
alloys = 500
influence = 50
}
}
2023-06-08 13:11:05 +08:00
upgrade_from = {
orbital_ring_ruined
}
possible = {
2023-06-08 13:11:05 +08:00
from = {
has_technology = tech_orbital_ring_tier_1
}
custom_tooltip = {
fail_text = "requires_outpost"
exists = starbase
}
custom_tooltip = {
fail_text = "requires_inside_border"
is_inside_border = from
}
custom_tooltip = {
fail_text = "requires_no_anomaly"
any_system_planet = {
has_planet_flag = ruined_orbital_ring_planet
2023-06-08 13:11:05 +08:00
NOT = {
has_anomaly = yes
}
}
}
custom_tooltip = {
fail_text = "requires_colonized_planet_orbital_ring"
any_system_colony = {
has_planet_flag = ruined_orbital_ring_planet
is_colony = yes
exists = owner
exists = controller
2023-06-08 13:11:05 +08:00
owner = {
is_same_value = from
}
controller = {
is_same_value = from
}
}
}
}
2023-06-08 13:11:05 +08:00
on_build_start = {
}
on_build_cancel = {
}
on_build_complete = {
random_system_planet = {
2023-06-08 13:11:05 +08:00
limit = {
has_planet_flag = ruined_orbital_ring_planet
}
set_planet_flag = has_megastructure
save_event_target_as = orbital_ring_planet
if = {
2023-06-08 13:11:05 +08:00
limit = {
has_orbital_station = yes
}
orbital_station = {
dismantle = yes
}
}
2024-09-17 13:32:31 +08:00
From = {
create_ship_design = {
2024-09-22 20:17:00 +08:00
design = "RG_ORBITAL_RING_TIER_1_STARBASE"
2024-09-17 13:32:31 +08:00
}
add_ship_design = last_created_design
}
create_starbase = {
2024-09-17 13:32:31 +08:00
size = RG_orbital_ring_tier_1
owner = FROM
#module = <starbase_module>
#building = <starbase_building>
2023-06-08 13:11:05 +08:00
effect = {
}
}
2024-09-17 13:32:31 +08:00
From = {
remove_ship_design = last_created_design
}
}
every_system_ambient_object = {
limit = {
OR = {
is_ambient_object_type = medium_debris_01_object
is_ambient_object_type = medium_debris_02_object
}
distance = {
source = fromfrom
max_distance <= 100
same_solar_system = yes
}
}
destroy_ambient_object = this
}
remove_megastructure = fromfrom
from = {
2023-06-08 13:11:05 +08:00
country_event = {
id = tutorial.2121
}
}
}
2023-06-08 13:11:05 +08:00
}