群星怎么修改巨型建筑上限 修改巨型建筑上限方法介绍
在《群星》中,巨型建筑耗时极长,但是建立完成收益也很高,为了更好的获取资源,就需要建设多个巨型建筑,但是同一时刻内只能允许建造一个巨型建筑,所以我们就需要“黑科技”。
通过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 }
}
}