《恆星戰役》修改巨型建築上限方法
在《恆星戰役》中,巨型建築耗時極長,但是建立完成收益也很高,為了更好的獲取資源,就需要建設多個巨型建築,但是同一時刻內只能允許建造一個巨型建築,所以我們就需要“黑科技”。
通過everything的檔案內關鍵詞搜索,具體接觸修建限制的方案如下:
1、首先打開megastructure檔案夾,定位各個巨型建築的檔案。比如戴森球就是01_dyson_sphere。
2、具體語句解釋:
dyson_sphere_0 = {
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 #修建時間
build_cost = {
minerals = 10000 #修建成本 (新版本是 alloys,合金。不過大同小異。)
influence = 300
}
maintenance = {
energy = 5 #維護費用
}
potential = {
has_ascension_perk = ap_galactic_wonders #potential 詞條是必須有銀河奇跡的飛升才能修建
}
possible = {
custom_tooltip = {
fail_text = "requires_inside_border" #必須在本實力控制範圍內。用“#”注釋掉這句和下面幾句就可以給外星人修戴森球了
is_inside_border = from
}
custom_tooltip = {
fail_text = "requires_no_existing_dyson_sphere" #限制只有一個戴森球
from = { NOT = { has_country_flag = built_dyson_sphere } }
} #注釋掉上面幾行就能修更多球。
custom_tooltip = {
fail_text = "requires_surveyed_system"
NOT = {
any_planet = {
is_surveyed = {
who = prev.from
status = no
}
}
}
}
custom_tooltip = {
fail_text = "requires_no_habitable_planets"
NOT = {
any_planet = {
AND = {
OR = {
habitable_planet = yes
habitable_structure = yes
}
NOT = { has_planet_flag = habitat }
}
}
}
}
custom_tooltip = {
fail_text = "requires_no_black_hole_neutron_star_pulsar"
NOT = {
is_star_class = sc_black_hole
is_star_class = sc_neutron_star
is_star_class = sc_pulsar
}
}
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" #限制不能有已存在的巨型建築,如果注釋掉這個(這一段,整個大括號裡的)custom_tooltip,就能把戴森球跟研究空間站、軌道棲所修在一個星系裡。
#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_no_orbital_station"
has_orbital_station = no
}
}
}
# root = system
# from = country
ai_weight = {
factor = 15
modifier = {
factor = 0.1
starbase = { NOT = { has_starbase_size >= starbase_starfortress } }
}
modifier = {
factor = 0.1
any_neighbor_system = {
NOT = {
owner = { is_same_value = from }
}
}
}
}
on_build_start = {}
on_build_cancel = {}
on_build_complete = {
set_star_flag = dyson_sphere_built
from = { set_country_flag = built_dyson_sphere }
}
}