《群星》修改巨型建筑上限方法
- 來(lái)源:群星吧
- 作者:hallorap
- 編輯:楓小痕
在《群星》中,巨型建筑耗時(shí)極長(zhǎng),但是建立完成收益也很高,為了更好的獲取資源,就需要建設(shè)多個(gè)巨型建筑,但是同一時(shí)刻內(nèi)只能允許建造一個(gè)巨型建筑,所以我們就需要“黑科技”。
通過(guò)everything的文件內(nèi)關(guān)鍵詞搜索,具體接觸修建限制的方案如下:
1、首先打開(kāi)megastructure文件夾,定位各個(gè)巨型建筑的文件。比如戴森球就是01_dyson_sphere。
2、具體語(yǔ)句解釋?zhuān)?
dyson_sphere_0 = {
entity = "construction_platform_entity"
construction_entity = "construction_platform_entity"
portrait = "GFX_megastructure_construction_background"
place_entity_on_planet_plane = no 修建的巨型建筑是否跟星球在一個(gè)平面上(沒(méi)啥卵用)
entity_offset = { x = -7 y = -7 }
build_time = 1800 #修建時(shí)間
build_cost = {
minerals = 10000 #修建成本 (新版本是 alloys,合金。不過(guò)大同小異。)
influence = 300
}
maintenance = {
energy = 5 #維護(hù)費(fèi)用
}
potential = {
has_ascension_perk = ap_galactic_wonders #potential 詞條是必須有銀河奇跡的飛升才能修建
}
possible = {
custom_tooltip = {
fail_text = "requires_inside_border" #必須在本實(shí)力控制范圍內(nèi)。用“#”注釋掉這句和下面幾句就可以給外星人修戴森球了
is_inside_border = from
}
custom_tooltip = {
fail_text = "requires_no_existing_dyson_sphere" #限制只有一個(gè)戴森球
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" #限制不能有已存在的巨型建筑,如果注釋掉這個(gè)(這一段,整個(gè)大括號(hào)里的)custom_tooltip,就能把戴森球跟研究空間站、軌道棲所修在一個(gè)星系里。
#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
}#必須圍繞恒星修建。注釋掉這個(gè),就能?chē)@著氣態(tài)巨行星和小行星之類(lèi)的其他星體修戴森球。(這就有點(diǎn)兒魔改了。。。一個(gè)星系里全是戴森球。。。畫(huà)美不看。。。)
custom_tooltip = {
fail_text = "requires_no_anomaly"
NOT = { has_anomaly = yes }
}#必須沒(méi)有異常
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 }
}
}
玩家點(diǎn)評(píng) (0人參與,0條評(píng)論)
熱門(mén)評(píng)論
全部評(píng)論